Skip to content

Commit 3cab803

Browse files
authored
remove read write file tools and imports (#5480)
1 parent 366d38b commit 3cab803

8 files changed

Lines changed: 0 additions & 654 deletions

File tree

packages/components/nodes/documentloaders/Playwright/Playwright.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { test } from 'linkifyjs'
1010
import { omit } from 'lodash'
1111
import { handleEscapeCharacters, INodeOutputsValue, webCrawl, xmlScrape } from '../../../src'
1212
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
13-
import { isSafeBrowserExecutable } from '../../../src/validator'
1413

1514
class Playwright_DocumentLoaders implements INode {
1615
label: string
@@ -193,9 +192,6 @@ class Playwright_DocumentLoaders implements INode {
193192
let docs = []
194193

195194
const executablePath = process.env.PLAYWRIGHT_EXECUTABLE_PATH
196-
if (!isSafeBrowserExecutable(executablePath)) {
197-
throw new Error(`Invalid or unsafe browser executable path: ${executablePath || 'undefined'}. `)
198-
}
199195

200196
const config: PlaywrightWebBaseLoaderOptions = {
201197
launchOptions: {

packages/components/nodes/documentloaders/Puppeteer/Puppeteer.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { omit } from 'lodash'
66
import { PuppeteerLifeCycleEvent } from 'puppeteer'
77
import { handleEscapeCharacters, INodeOutputsValue, webCrawl, xmlScrape } from '../../../src'
88
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
9-
import { isSafeBrowserExecutable } from '../../../src/validator'
109

1110
class Puppeteer_DocumentLoaders implements INode {
1211
label: string
@@ -184,9 +183,6 @@ class Puppeteer_DocumentLoaders implements INode {
184183
let docs: Document[] = []
185184

186185
const executablePath = process.env.PUPPETEER_EXECUTABLE_PATH
187-
if (!isSafeBrowserExecutable(executablePath)) {
188-
throw new Error(`Invalid or unsafe browser executable path: ${executablePath || 'undefined'}. `)
189-
}
190186

191187
const config: PuppeteerWebBaseLoaderOptions = {
192188
launchOptions: {

packages/components/nodes/tools/ReadFile/ReadFile.ts

Lines changed: 0 additions & 147 deletions
This file was deleted.

packages/components/nodes/tools/ReadFile/readfile.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/components/nodes/tools/WriteFile/WriteFile.ts

Lines changed: 0 additions & 149 deletions
This file was deleted.

packages/components/nodes/tools/WriteFile/writefile.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)