@mendable/firecrawl 4.9.2 → 4.9.3
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-NR7V4IEX.js → chunk-46HSLP23.js} +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -2
- package/dist/{package-647PIJ6T.js → package-ZXN6LAWY.js} +1 -1
- package/package.json +1 -1
- package/src/v2/methods/agent.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.9.
|
|
11
|
+
version: "4.9.3",
|
|
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.9.
|
|
38
|
+
version: "4.9.3",
|
|
39
39
|
description: "JavaScript SDK for Firecrawl API",
|
|
40
40
|
main: "dist/index.js",
|
|
41
41
|
types: "dist/index.d.ts",
|
|
@@ -764,6 +764,7 @@ function prepareAgentPayload(args) {
|
|
|
764
764
|
}
|
|
765
765
|
if (args.integration && args.integration.trim()) body.integration = args.integration.trim();
|
|
766
766
|
if (args.maxCredits !== null && args.maxCredits !== void 0) body.maxCredits = args.maxCredits;
|
|
767
|
+
if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== void 0) body.strictConstrainToURLs = args.strictConstrainToURLs;
|
|
767
768
|
return body;
|
|
768
769
|
}
|
|
769
770
|
async function startAgent(http, args) {
|
package/dist/index.d.cts
CHANGED
|
@@ -587,6 +587,7 @@ declare function prepareAgentPayload(args: {
|
|
|
587
587
|
schema?: Record<string, unknown> | ZodTypeAny;
|
|
588
588
|
integration?: string;
|
|
589
589
|
maxCredits?: number;
|
|
590
|
+
strictConstrainToURLs?: boolean;
|
|
590
591
|
}): Record<string, unknown>;
|
|
591
592
|
declare function startAgent(http: HttpClient, args: Parameters<typeof prepareAgentPayload>[0]): Promise<AgentResponse>;
|
|
592
593
|
|
package/dist/index.d.ts
CHANGED
|
@@ -587,6 +587,7 @@ declare function prepareAgentPayload(args: {
|
|
|
587
587
|
schema?: Record<string, unknown> | ZodTypeAny;
|
|
588
588
|
integration?: string;
|
|
589
589
|
maxCredits?: number;
|
|
590
|
+
strictConstrainToURLs?: boolean;
|
|
590
591
|
}): Record<string, unknown>;
|
|
591
592
|
declare function startAgent(http: HttpClient, args: Parameters<typeof prepareAgentPayload>[0]): Promise<AgentResponse>;
|
|
592
593
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-46HSLP23.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -646,6 +646,7 @@ function prepareAgentPayload(args) {
|
|
|
646
646
|
}
|
|
647
647
|
if (args.integration && args.integration.trim()) body.integration = args.integration.trim();
|
|
648
648
|
if (args.maxCredits !== null && args.maxCredits !== void 0) body.maxCredits = args.maxCredits;
|
|
649
|
+
if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== void 0) body.strictConstrainToURLs = args.strictConstrainToURLs;
|
|
649
650
|
return body;
|
|
650
651
|
}
|
|
651
652
|
async function startAgent(http, args) {
|
|
@@ -1258,7 +1259,7 @@ var FirecrawlApp = class {
|
|
|
1258
1259
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
1259
1260
|
return process.env.npm_package_version;
|
|
1260
1261
|
}
|
|
1261
|
-
const packageJson = await import("./package-
|
|
1262
|
+
const packageJson = await import("./package-ZXN6LAWY.js");
|
|
1262
1263
|
return packageJson.default.version;
|
|
1263
1264
|
} catch (error) {
|
|
1264
1265
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
package/package.json
CHANGED
package/src/v2/methods/agent.ts
CHANGED
|
@@ -10,6 +10,7 @@ function prepareAgentPayload(args: {
|
|
|
10
10
|
schema?: Record<string, unknown> | ZodTypeAny;
|
|
11
11
|
integration?: string;
|
|
12
12
|
maxCredits?: number;
|
|
13
|
+
strictConstrainToURLs?: boolean;
|
|
13
14
|
}): Record<string, unknown> {
|
|
14
15
|
const body: Record<string, unknown> = {};
|
|
15
16
|
if (args.urls) body.urls = args.urls;
|
|
@@ -21,6 +22,7 @@ function prepareAgentPayload(args: {
|
|
|
21
22
|
}
|
|
22
23
|
if (args.integration && args.integration.trim()) body.integration = args.integration.trim();
|
|
23
24
|
if (args.maxCredits !== null && args.maxCredits !== undefined) body.maxCredits = args.maxCredits;
|
|
25
|
+
if (args.strictConstrainToURLs !== null && args.strictConstrainToURLs !== undefined) body.strictConstrainToURLs = args.strictConstrainToURLs;
|
|
24
26
|
return body;
|
|
25
27
|
}
|
|
26
28
|
|