firecrawl 4.6.2 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-NUNHQNOR.js → chunk-SP54QQ5D.js} +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -2
- package/dist/{package-UKVPOOY5.js → package-MR6WWGRM.js} +1 -1
- package/package.json +1 -1
- package/src/v2/methods/map.ts +1 -0
- package/src/v2/types.ts +2 -0
|
@@ -8,7 +8,7 @@ var require_package = __commonJS({
|
|
|
8
8
|
"package.json"(exports, module) {
|
|
9
9
|
module.exports = {
|
|
10
10
|
name: "@mendable/firecrawl-js",
|
|
11
|
-
version: "4.
|
|
11
|
+
version: "4.8.0",
|
|
12
12
|
description: "JavaScript SDK for Firecrawl API",
|
|
13
13
|
main: "dist/index.js",
|
|
14
14
|
types: "dist/index.d.ts",
|
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_package = __commonJS({
|
|
|
35
35
|
"package.json"(exports2, module2) {
|
|
36
36
|
module2.exports = {
|
|
37
37
|
name: "@mendable/firecrawl-js",
|
|
38
|
-
version: "4.
|
|
38
|
+
version: "4.8.0",
|
|
39
39
|
description: "JavaScript SDK for Firecrawl API",
|
|
40
40
|
main: "dist/index.js",
|
|
41
41
|
types: "dist/index.d.ts",
|
|
@@ -390,6 +390,7 @@ function prepareMapPayload(url, options) {
|
|
|
390
390
|
if (options.sitemap != null) payload.sitemap = options.sitemap;
|
|
391
391
|
if (options.search != null) payload.search = options.search;
|
|
392
392
|
if (options.includeSubdomains != null) payload.includeSubdomains = options.includeSubdomains;
|
|
393
|
+
if (options.ignoreQueryParameters != null) payload.ignoreQueryParameters = options.ignoreQueryParameters;
|
|
393
394
|
if (options.limit != null) payload.limit = options.limit;
|
|
394
395
|
if (options.timeout != null) payload.timeout = options.timeout;
|
|
395
396
|
if (options.integration != null && options.integration.trim()) payload.integration = options.integration.trim();
|
package/dist/index.d.cts
CHANGED
|
@@ -112,6 +112,7 @@ interface ScrapeOptions {
|
|
|
112
112
|
blockAds?: boolean;
|
|
113
113
|
proxy?: 'basic' | 'stealth' | 'auto' | string;
|
|
114
114
|
maxAge?: number;
|
|
115
|
+
minAge?: number;
|
|
115
116
|
storeInCache?: boolean;
|
|
116
117
|
integration?: string;
|
|
117
118
|
}
|
|
@@ -428,6 +429,7 @@ interface MapOptions {
|
|
|
428
429
|
search?: string;
|
|
429
430
|
sitemap?: 'only' | 'include' | 'skip';
|
|
430
431
|
includeSubdomains?: boolean;
|
|
432
|
+
ignoreQueryParameters?: boolean;
|
|
431
433
|
limit?: number;
|
|
432
434
|
timeout?: number;
|
|
433
435
|
integration?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ interface ScrapeOptions {
|
|
|
112
112
|
blockAds?: boolean;
|
|
113
113
|
proxy?: 'basic' | 'stealth' | 'auto' | string;
|
|
114
114
|
maxAge?: number;
|
|
115
|
+
minAge?: number;
|
|
115
116
|
storeInCache?: boolean;
|
|
116
117
|
integration?: string;
|
|
117
118
|
}
|
|
@@ -428,6 +429,7 @@ interface MapOptions {
|
|
|
428
429
|
search?: string;
|
|
429
430
|
sitemap?: 'only' | 'include' | 'skip';
|
|
430
431
|
includeSubdomains?: boolean;
|
|
432
|
+
ignoreQueryParameters?: boolean;
|
|
431
433
|
limit?: number;
|
|
432
434
|
timeout?: number;
|
|
433
435
|
integration?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SP54QQ5D.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -270,6 +270,7 @@ function prepareMapPayload(url, options) {
|
|
|
270
270
|
if (options.sitemap != null) payload.sitemap = options.sitemap;
|
|
271
271
|
if (options.search != null) payload.search = options.search;
|
|
272
272
|
if (options.includeSubdomains != null) payload.includeSubdomains = options.includeSubdomains;
|
|
273
|
+
if (options.ignoreQueryParameters != null) payload.ignoreQueryParameters = options.ignoreQueryParameters;
|
|
273
274
|
if (options.limit != null) payload.limit = options.limit;
|
|
274
275
|
if (options.timeout != null) payload.timeout = options.timeout;
|
|
275
276
|
if (options.integration != null && options.integration.trim()) payload.integration = options.integration.trim();
|
|
@@ -1086,7 +1087,7 @@ var FirecrawlApp = class {
|
|
|
1086
1087
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
1087
1088
|
return process.env.npm_package_version;
|
|
1088
1089
|
}
|
|
1089
|
-
const packageJson = await import("./package-
|
|
1090
|
+
const packageJson = await import("./package-MR6WWGRM.js");
|
|
1090
1091
|
return packageJson.default.version;
|
|
1091
1092
|
} catch (error) {
|
|
1092
1093
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
package/package.json
CHANGED
package/src/v2/methods/map.ts
CHANGED
|
@@ -9,6 +9,7 @@ function prepareMapPayload(url: string, options?: MapOptions): Record<string, un
|
|
|
9
9
|
if (options.sitemap != null) payload.sitemap = options.sitemap;
|
|
10
10
|
if (options.search != null) payload.search = options.search;
|
|
11
11
|
if (options.includeSubdomains != null) payload.includeSubdomains = options.includeSubdomains;
|
|
12
|
+
if (options.ignoreQueryParameters != null) payload.ignoreQueryParameters = options.ignoreQueryParameters;
|
|
12
13
|
if (options.limit != null) payload.limit = options.limit;
|
|
13
14
|
if (options.timeout != null) payload.timeout = options.timeout;
|
|
14
15
|
if (options.integration != null && options.integration.trim()) payload.integration = options.integration.trim();
|
package/src/v2/types.ts
CHANGED
|
@@ -155,6 +155,7 @@ export interface ScrapeOptions {
|
|
|
155
155
|
blockAds?: boolean;
|
|
156
156
|
proxy?: 'basic' | 'stealth' | 'auto' | string;
|
|
157
157
|
maxAge?: number;
|
|
158
|
+
minAge?: number;
|
|
158
159
|
storeInCache?: boolean;
|
|
159
160
|
integration?: string;
|
|
160
161
|
}
|
|
@@ -512,6 +513,7 @@ export interface MapOptions {
|
|
|
512
513
|
search?: string;
|
|
513
514
|
sitemap?: 'only' | 'include' | 'skip';
|
|
514
515
|
includeSubdomains?: boolean;
|
|
516
|
+
ignoreQueryParameters?: boolean;
|
|
515
517
|
limit?: number;
|
|
516
518
|
timeout?: number;
|
|
517
519
|
integration?: string;
|