@mendable/firecrawl-js
Advanced tools
| var __getOwnPropNames = Object.getOwnPropertyNames; | ||
| var __commonJS = (cb, mod) => function __require() { | ||
| return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
| }; | ||
| // package.json | ||
| var require_package = __commonJS({ | ||
| "package.json"(exports, module) { | ||
| module.exports = { | ||
| name: "@mendable/firecrawl-js", | ||
| version: "4.15.2", | ||
| description: "JavaScript SDK for Firecrawl API", | ||
| main: "dist/index.js", | ||
| types: "dist/index.d.ts", | ||
| exports: { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
| import: "./dist/index.js", | ||
| default: "./dist/index.cjs" | ||
| } | ||
| }, | ||
| type: "module", | ||
| scripts: { | ||
| build: "tsup", | ||
| "build-and-publish": "pnpm run build && pnpm publish --access public", | ||
| "publish-beta": "pnpm run build && pnpm publish --access public --tag beta", | ||
| test: "NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles", | ||
| "test:unit": "NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts" | ||
| }, | ||
| repository: { | ||
| type: "git", | ||
| url: "git+https://github.com/firecrawl/firecrawl.git" | ||
| }, | ||
| author: "Mendable.ai", | ||
| license: "MIT", | ||
| dependencies: { | ||
| axios: "^1.13.5", | ||
| "typescript-event-target": "^1.1.1", | ||
| zod: "^3.23.8", | ||
| "zod-to-json-schema": "^3.23.0" | ||
| }, | ||
| bugs: { | ||
| url: "https://github.com/firecrawl/firecrawl/issues" | ||
| }, | ||
| homepage: "https://github.com/firecrawl/firecrawl#readme", | ||
| devDependencies: { | ||
| "@jest/globals": "^30.2.0", | ||
| "@types/dotenv": "^8.2.0", | ||
| "@types/jest": "^30.0.0", | ||
| "@types/mocha": "^10.0.6", | ||
| "@types/node": "^20.12.12", | ||
| "@types/uuid": "^9.0.8", | ||
| dotenv: "^16.4.5", | ||
| jest: "^30.2.0", | ||
| "ts-jest": "^29.4.5", | ||
| tsup: "^8.5.0", | ||
| typescript: "^5.4.5", | ||
| uuid: "^9.0.1" | ||
| }, | ||
| keywords: [ | ||
| "firecrawl", | ||
| "mendable", | ||
| "crawler", | ||
| "web", | ||
| "scraper", | ||
| "api", | ||
| "sdk" | ||
| ], | ||
| engines: { | ||
| node: ">=22.0.0" | ||
| }, | ||
| pnpm: { | ||
| overrides: { | ||
| "@isaacs/brace-expansion@<=5.0.0": ">=5.0.1", | ||
| "minimatch@<10.2.3": ">=10.2.3", | ||
| "rollup@<4.59.0": ">=4.59.0" | ||
| } | ||
| } | ||
| }; | ||
| } | ||
| }); | ||
| export { | ||
| require_package | ||
| }; |
| import { | ||
| require_package | ||
| } from "./chunk-YCZ3SV75.js"; | ||
| export default require_package(); |
+8
-0
@@ -119,2 +119,3 @@ import * as zt from 'zod'; | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -379,2 +380,3 @@ interface WebhookConfig { | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -400,2 +402,3 @@ interface CrawlOptions { | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -425,2 +428,3 @@ interface CrawlResponse$1 { | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -453,2 +457,3 @@ interface BatchScrapeResponse$1 { | ||
| integration?: string; | ||
| origin?: string; | ||
| location?: LocationConfig$1; | ||
@@ -638,2 +643,3 @@ } | ||
| integration?: string; | ||
| origin?: string; | ||
| agent?: AgentOptions$1; | ||
@@ -652,2 +658,3 @@ }): Record<string, unknown>; | ||
| integration?: string; | ||
| origin?: string; | ||
| maxCredits?: number; | ||
@@ -669,2 +676,3 @@ strictConstrainToURLs?: boolean; | ||
| integration?: string; | ||
| origin?: string; | ||
| }): Promise<BrowserCreateResponse>; | ||
@@ -671,0 +679,0 @@ declare function browserExecute(http: HttpClient, sessionId: string, args: { |
+8
-0
@@ -119,2 +119,3 @@ import * as zt from 'zod'; | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -379,2 +380,3 @@ interface WebhookConfig { | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -400,2 +402,3 @@ interface CrawlOptions { | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -425,2 +428,3 @@ interface CrawlResponse$1 { | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -453,2 +457,3 @@ interface BatchScrapeResponse$1 { | ||
| integration?: string; | ||
| origin?: string; | ||
| location?: LocationConfig$1; | ||
@@ -638,2 +643,3 @@ } | ||
| integration?: string; | ||
| origin?: string; | ||
| agent?: AgentOptions$1; | ||
@@ -652,2 +658,3 @@ }): Record<string, unknown>; | ||
| integration?: string; | ||
| origin?: string; | ||
| maxCredits?: number; | ||
@@ -669,2 +676,3 @@ strictConstrainToURLs?: boolean; | ||
| integration?: string; | ||
| origin?: string; | ||
| }): Promise<BrowserCreateResponse>; | ||
@@ -671,0 +679,0 @@ declare function browserExecute(http: HttpClient, sessionId: string, args: { |
+1
-1
| { | ||
| "name": "@mendable/firecrawl-js", | ||
| "version": "4.15.1", | ||
| "version": "4.15.2", | ||
| "description": "JavaScript SDK for Firecrawl API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,2 +12,3 @@ import { type AgentResponse, type AgentStatusResponse, type AgentWebhookConfig } from "../types"; | ||
| integration?: string; | ||
| origin?: string; | ||
| maxCredits?: number; | ||
@@ -25,2 +26,3 @@ strictConstrainToURLs?: boolean; | ||
| if (args.integration && args.integration.trim()) body.integration = args.integration.trim(); | ||
| if (args.origin) body.origin = args.origin; | ||
| if (args.maxCredits !== null && args.maxCredits !== undefined) body.maxCredits = args.maxCredits; | ||
@@ -27,0 +29,0 @@ if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== undefined) body.strictConstrainToURLs = args.strictConstrainToURLs; |
@@ -28,2 +28,3 @@ import { | ||
| integration, | ||
| origin, | ||
| }: BatchScrapeOptions = {} | ||
@@ -43,2 +44,3 @@ ): Promise<BatchScrapeResponse> { | ||
| if (integration != null && integration.trim()) payload.integration = integration.trim(); | ||
| if (origin) payload.origin = origin; | ||
@@ -45,0 +47,0 @@ try { |
@@ -21,2 +21,3 @@ import type { | ||
| integration?: string; | ||
| origin?: string; | ||
| } = {} | ||
@@ -30,2 +31,3 @@ ): Promise<BrowserCreateResponse> { | ||
| if (args.integration != null) body.integration = args.integration; | ||
| if (args.origin) body.origin = args.origin; | ||
@@ -32,0 +34,0 @@ try { |
@@ -41,2 +41,3 @@ import { | ||
| if (request.integration != null && request.integration.trim()) data.integration = request.integration.trim(); | ||
| if (request.origin) data.origin = request.origin; | ||
| if (request.scrapeOptions) { | ||
@@ -43,0 +44,0 @@ ensureValidScrapeOptions(request.scrapeOptions); |
@@ -19,2 +19,3 @@ import { type ExtractResponse, type ScrapeOptions, type AgentOptions } from "../types"; | ||
| integration?: string; | ||
| origin?: string; | ||
| agent?: AgentOptions; | ||
@@ -34,2 +35,3 @@ }): Record<string, unknown> { | ||
| if (args.integration && args.integration.trim()) body.integration = args.integration.trim(); | ||
| if (args.origin) body.origin = args.origin; | ||
| if (args.agent) body.agent = args.agent; | ||
@@ -36,0 +38,0 @@ if (args.scrapeOptions) { |
@@ -16,2 +16,3 @@ import { type MapData, type MapOptions, type SearchResultWeb } from "../types"; | ||
| if (options.integration != null && options.integration.trim()) payload.integration = options.integration.trim(); | ||
| if (options.origin) payload.origin = options.origin; | ||
| if (options.location != null) payload.location = options.location; | ||
@@ -18,0 +19,0 @@ } |
@@ -21,2 +21,3 @@ import { type Document, type SearchData, type SearchRequest, type SearchResultWeb, type ScrapeOptions, type SearchResultNews, type SearchResultImages } from "../types"; | ||
| if (req.integration && req.integration.trim()) payload.integration = req.integration.trim(); | ||
| if (req.origin) payload.origin = req.origin; | ||
| if (req.scrapeOptions) { | ||
@@ -23,0 +24,0 @@ ensureValidScrapeOptions(req.scrapeOptions as ScrapeOptions); |
+5
-0
@@ -161,2 +161,3 @@ import type { ZodTypeAny } from 'zod'; | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -457,2 +458,3 @@ | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -479,2 +481,3 @@ | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -507,2 +510,3 @@ | ||
| integration?: string; | ||
| origin?: string; | ||
| } | ||
@@ -539,2 +543,3 @@ | ||
| integration?: string; | ||
| origin?: string; | ||
| location?: LocationConfig; | ||
@@ -541,0 +546,0 @@ } |
| var __getOwnPropNames = Object.getOwnPropertyNames; | ||
| var __commonJS = (cb, mod) => function __require() { | ||
| return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
| }; | ||
| // package.json | ||
| var require_package = __commonJS({ | ||
| "package.json"(exports, module) { | ||
| module.exports = { | ||
| name: "@mendable/firecrawl-js", | ||
| version: "4.15.1", | ||
| description: "JavaScript SDK for Firecrawl API", | ||
| main: "dist/index.js", | ||
| types: "dist/index.d.ts", | ||
| exports: { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
| import: "./dist/index.js", | ||
| default: "./dist/index.cjs" | ||
| } | ||
| }, | ||
| type: "module", | ||
| scripts: { | ||
| build: "tsup", | ||
| "build-and-publish": "pnpm run build && pnpm publish --access public", | ||
| "publish-beta": "pnpm run build && pnpm publish --access public --tag beta", | ||
| test: "NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles", | ||
| "test:unit": "NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts" | ||
| }, | ||
| repository: { | ||
| type: "git", | ||
| url: "git+https://github.com/firecrawl/firecrawl.git" | ||
| }, | ||
| author: "Mendable.ai", | ||
| license: "MIT", | ||
| dependencies: { | ||
| axios: "^1.13.5", | ||
| "typescript-event-target": "^1.1.1", | ||
| zod: "^3.23.8", | ||
| "zod-to-json-schema": "^3.23.0" | ||
| }, | ||
| bugs: { | ||
| url: "https://github.com/firecrawl/firecrawl/issues" | ||
| }, | ||
| homepage: "https://github.com/firecrawl/firecrawl#readme", | ||
| devDependencies: { | ||
| "@jest/globals": "^30.2.0", | ||
| "@types/dotenv": "^8.2.0", | ||
| "@types/jest": "^30.0.0", | ||
| "@types/mocha": "^10.0.6", | ||
| "@types/node": "^20.12.12", | ||
| "@types/uuid": "^9.0.8", | ||
| dotenv: "^16.4.5", | ||
| jest: "^30.2.0", | ||
| "ts-jest": "^29.4.5", | ||
| tsup: "^8.5.0", | ||
| typescript: "^5.4.5", | ||
| uuid: "^9.0.1" | ||
| }, | ||
| keywords: [ | ||
| "firecrawl", | ||
| "mendable", | ||
| "crawler", | ||
| "web", | ||
| "scraper", | ||
| "api", | ||
| "sdk" | ||
| ], | ||
| engines: { | ||
| node: ">=22.0.0" | ||
| }, | ||
| pnpm: { | ||
| overrides: { | ||
| "@isaacs/brace-expansion@<=5.0.0": ">=5.0.1", | ||
| "minimatch@<10.2.3": ">=10.2.3", | ||
| "rollup@<4.59.0": ">=4.59.0" | ||
| } | ||
| } | ||
| }; | ||
| } | ||
| }); | ||
| export { | ||
| require_package | ||
| }; |
| import { | ||
| require_package | ||
| } from "./chunk-6GGUNT5D.js"; | ||
| export default require_package(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 13 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 13 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
657653
0.23%16183
0.25%