@mendable/firecrawl-js 4.34.0 → 4.34.1
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-XLYNJU5P.js → chunk-DWBMD5N5.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +2 -2
- package/dist/{package-SEAEKBOR.js → package-XAWX5C5Y.js} +1 -1
- package/package.json +1 -1
- package/src/v2/methods/agent.ts +1 -1
- package/src/v2/types.ts +6 -1
|
@@ -12,7 +12,7 @@ var require_package = __commonJS({
|
|
|
12
12
|
"package.json"(exports, module) {
|
|
13
13
|
module.exports = {
|
|
14
14
|
name: "@mendable/firecrawl-js",
|
|
15
|
-
version: "4.34.
|
|
15
|
+
version: "4.34.1",
|
|
16
16
|
description: "JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",
|
|
17
17
|
main: "dist/index.js",
|
|
18
18
|
types: "dist/index.d.ts",
|
package/dist/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ var require_package = __commonJS({
|
|
|
39
39
|
"package.json"(exports2, module2) {
|
|
40
40
|
module2.exports = {
|
|
41
41
|
name: "@mendable/firecrawl-js",
|
|
42
|
-
version: "4.34.
|
|
42
|
+
version: "4.34.1",
|
|
43
43
|
description: "JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",
|
|
44
44
|
main: "dist/index.js",
|
|
45
45
|
types: "dist/index.d.ts",
|
package/dist/index.d.cts
CHANGED
|
@@ -1024,7 +1024,12 @@ interface AgentStatusResponse {
|
|
|
1024
1024
|
status: "processing" | "completed" | "failed";
|
|
1025
1025
|
error?: string;
|
|
1026
1026
|
data?: unknown;
|
|
1027
|
-
|
|
1027
|
+
/**
|
|
1028
|
+
* Server-provided model name. Widened past the request-side union on
|
|
1029
|
+
* purpose: new models ship without an SDK release, so pinning this to known
|
|
1030
|
+
* names makes every future model a type error at the call site.
|
|
1031
|
+
*/
|
|
1032
|
+
model?: "spark-1-pro" | "spark-1-mini" | "spark-2" | (string & {});
|
|
1028
1033
|
expiresAt: string;
|
|
1029
1034
|
creditsUsed?: number;
|
|
1030
1035
|
}
|
|
@@ -1387,7 +1392,7 @@ declare function prepareAgentPayload(args: {
|
|
|
1387
1392
|
origin?: string;
|
|
1388
1393
|
maxCredits?: number;
|
|
1389
1394
|
strictConstrainToURLs?: boolean;
|
|
1390
|
-
model?: "spark-1-pro" | "spark-1-mini";
|
|
1395
|
+
model?: "spark-1-pro" | "spark-1-mini" | "spark-2";
|
|
1391
1396
|
webhook?: string | AgentWebhookConfig;
|
|
1392
1397
|
threatProtection?: ThreatProtectionOptions;
|
|
1393
1398
|
auditMetadata?: AuditMetadata$1;
|
package/dist/index.d.ts
CHANGED
|
@@ -1024,7 +1024,12 @@ interface AgentStatusResponse {
|
|
|
1024
1024
|
status: "processing" | "completed" | "failed";
|
|
1025
1025
|
error?: string;
|
|
1026
1026
|
data?: unknown;
|
|
1027
|
-
|
|
1027
|
+
/**
|
|
1028
|
+
* Server-provided model name. Widened past the request-side union on
|
|
1029
|
+
* purpose: new models ship without an SDK release, so pinning this to known
|
|
1030
|
+
* names makes every future model a type error at the call site.
|
|
1031
|
+
*/
|
|
1032
|
+
model?: "spark-1-pro" | "spark-1-mini" | "spark-2" | (string & {});
|
|
1028
1033
|
expiresAt: string;
|
|
1029
1034
|
creditsUsed?: number;
|
|
1030
1035
|
}
|
|
@@ -1387,7 +1392,7 @@ declare function prepareAgentPayload(args: {
|
|
|
1387
1392
|
origin?: string;
|
|
1388
1393
|
maxCredits?: number;
|
|
1389
1394
|
strictConstrainToURLs?: boolean;
|
|
1390
|
-
model?: "spark-1-pro" | "spark-1-mini";
|
|
1395
|
+
model?: "spark-1-pro" | "spark-1-mini" | "spark-2";
|
|
1391
1396
|
webhook?: string | AgentWebhookConfig;
|
|
1392
1397
|
threatProtection?: ThreatProtectionOptions;
|
|
1393
1398
|
auditMetadata?: AuditMetadata$1;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWBMD5N5.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -2342,7 +2342,7 @@ var FirecrawlApp = class {
|
|
|
2342
2342
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
2343
2343
|
return process.env.npm_package_version;
|
|
2344
2344
|
}
|
|
2345
|
-
const packageJson = await import("./package-
|
|
2345
|
+
const packageJson = await import("./package-XAWX5C5Y.js");
|
|
2346
2346
|
return packageJson.default.version;
|
|
2347
2347
|
} catch (error) {
|
|
2348
2348
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mendable/firecrawl-js",
|
|
3
|
-
"version": "4.34.
|
|
3
|
+
"version": "4.34.1",
|
|
4
4
|
"description": "JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/src/v2/methods/agent.ts
CHANGED
|
@@ -12,7 +12,7 @@ function prepareAgentPayload(args: {
|
|
|
12
12
|
origin?: string;
|
|
13
13
|
maxCredits?: number;
|
|
14
14
|
strictConstrainToURLs?: boolean;
|
|
15
|
-
model?: "spark-1-pro" | "spark-1-mini";
|
|
15
|
+
model?: "spark-1-pro" | "spark-1-mini" | "spark-2";
|
|
16
16
|
webhook?: string | AgentWebhookConfig;
|
|
17
17
|
threatProtection?: ThreatProtectionOptions;
|
|
18
18
|
auditMetadata?: AuditMetadata;
|
package/src/v2/types.ts
CHANGED
|
@@ -1244,7 +1244,12 @@ export interface AgentStatusResponse {
|
|
|
1244
1244
|
status: "processing" | "completed" | "failed";
|
|
1245
1245
|
error?: string;
|
|
1246
1246
|
data?: unknown;
|
|
1247
|
-
|
|
1247
|
+
/**
|
|
1248
|
+
* Server-provided model name. Widened past the request-side union on
|
|
1249
|
+
* purpose: new models ship without an SDK release, so pinning this to known
|
|
1250
|
+
* names makes every future model a type error at the call site.
|
|
1251
|
+
*/
|
|
1252
|
+
model?: "spark-1-pro" | "spark-1-mini" | "spark-2" | (string & {});
|
|
1248
1253
|
expiresAt: string;
|
|
1249
1254
|
creditsUsed?: number;
|
|
1250
1255
|
}
|