@mendable/firecrawl-js 4.8.1-beta.1 → 4.8.2
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/LICENSE +0 -0
- package/dist/{chunk-7SXC2XH4.js → chunk-3IN25WJ7.js} +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -5
- package/dist/{package-KCYUK6FL.js → package-UXOZB356.js} +1 -1
- package/jest.config.js +0 -0
- package/package.json +1 -1
- package/src/v1/index.ts +1 -0
- package/src/v2/types.ts +1 -0
- package/dump.rdb +0 -0
package/LICENSE
CHANGED
|
File without changes
|
|
@@ -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.8.
|
|
11
|
+
version: "4.8.2",
|
|
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.8.
|
|
38
|
+
version: "4.8.2",
|
|
39
39
|
description: "JavaScript SDK for Firecrawl API",
|
|
40
40
|
main: "dist/index.js",
|
|
41
41
|
types: "dist/index.d.ts",
|
|
@@ -110,15 +110,15 @@ var require_package = __commonJS({
|
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
// src/index.ts
|
|
113
|
-
var
|
|
114
|
-
__export(
|
|
113
|
+
var index_exports = {};
|
|
114
|
+
__export(index_exports, {
|
|
115
115
|
Firecrawl: () => Firecrawl,
|
|
116
116
|
FirecrawlAppV1: () => FirecrawlApp,
|
|
117
117
|
FirecrawlClient: () => FirecrawlClient,
|
|
118
118
|
SdkError: () => SdkError,
|
|
119
|
-
default: () =>
|
|
119
|
+
default: () => index_default
|
|
120
120
|
});
|
|
121
|
-
module.exports = __toCommonJS(
|
|
121
|
+
module.exports = __toCommonJS(index_exports);
|
|
122
122
|
|
|
123
123
|
// src/v2/utils/httpClient.ts
|
|
124
124
|
var import_axios = __toESM(require("axios"), 1);
|
|
@@ -2709,7 +2709,7 @@ var Firecrawl = class extends FirecrawlClient {
|
|
|
2709
2709
|
return this._v1;
|
|
2710
2710
|
}
|
|
2711
2711
|
};
|
|
2712
|
-
var
|
|
2712
|
+
var index_default = Firecrawl;
|
|
2713
2713
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2714
2714
|
0 && (module.exports = {
|
|
2715
2715
|
Firecrawl,
|
package/dist/index.d.cts
CHANGED
|
@@ -444,6 +444,7 @@ interface ExtractResponse$1 {
|
|
|
444
444
|
warning?: string;
|
|
445
445
|
sources?: Record<string, unknown>;
|
|
446
446
|
expiresAt?: string;
|
|
447
|
+
creditsUsed?: number;
|
|
447
448
|
}
|
|
448
449
|
interface AgentOptions$1 {
|
|
449
450
|
model: 'FIRE-1';
|
|
@@ -543,9 +544,9 @@ declare class HttpClient {
|
|
|
543
544
|
getApiKey(): string;
|
|
544
545
|
private request;
|
|
545
546
|
private sleep;
|
|
546
|
-
post<T = any>(endpoint: string, body: Record<string, unknown>, headers?: Record<string, string>): Promise<AxiosResponse<T, any>>;
|
|
547
|
-
get<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any>>;
|
|
548
|
-
delete<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any>>;
|
|
547
|
+
post<T = any>(endpoint: string, body: Record<string, unknown>, headers?: Record<string, string>): Promise<AxiosResponse<T, any, {}>>;
|
|
548
|
+
get<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any, {}>>;
|
|
549
|
+
delete<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any, {}>>;
|
|
549
550
|
prepareHeaders(idempotencyKey?: string): Record<string, string>;
|
|
550
551
|
}
|
|
551
552
|
|
|
@@ -1100,6 +1101,7 @@ interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
|
|
|
1100
1101
|
error?: string;
|
|
1101
1102
|
warning?: string;
|
|
1102
1103
|
sources?: string[];
|
|
1104
|
+
creditsUsed?: number;
|
|
1103
1105
|
}
|
|
1104
1106
|
/**
|
|
1105
1107
|
* Error response interface.
|
package/dist/index.d.ts
CHANGED
|
@@ -444,6 +444,7 @@ interface ExtractResponse$1 {
|
|
|
444
444
|
warning?: string;
|
|
445
445
|
sources?: Record<string, unknown>;
|
|
446
446
|
expiresAt?: string;
|
|
447
|
+
creditsUsed?: number;
|
|
447
448
|
}
|
|
448
449
|
interface AgentOptions$1 {
|
|
449
450
|
model: 'FIRE-1';
|
|
@@ -543,9 +544,9 @@ declare class HttpClient {
|
|
|
543
544
|
getApiKey(): string;
|
|
544
545
|
private request;
|
|
545
546
|
private sleep;
|
|
546
|
-
post<T = any>(endpoint: string, body: Record<string, unknown>, headers?: Record<string, string>): Promise<AxiosResponse<T, any>>;
|
|
547
|
-
get<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any>>;
|
|
548
|
-
delete<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any>>;
|
|
547
|
+
post<T = any>(endpoint: string, body: Record<string, unknown>, headers?: Record<string, string>): Promise<AxiosResponse<T, any, {}>>;
|
|
548
|
+
get<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any, {}>>;
|
|
549
|
+
delete<T = any>(endpoint: string, headers?: Record<string, string>): Promise<AxiosResponse<T, any, {}>>;
|
|
549
550
|
prepareHeaders(idempotencyKey?: string): Record<string, string>;
|
|
550
551
|
}
|
|
551
552
|
|
|
@@ -1100,6 +1101,7 @@ interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
|
|
|
1100
1101
|
error?: string;
|
|
1101
1102
|
warning?: string;
|
|
1102
1103
|
sources?: string[];
|
|
1104
|
+
creditsUsed?: number;
|
|
1103
1105
|
}
|
|
1104
1106
|
/**
|
|
1105
1107
|
* Error response interface.
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_package
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3IN25WJ7.js";
|
|
4
4
|
|
|
5
5
|
// src/v2/utils/httpClient.ts
|
|
6
6
|
import axios from "axios";
|
|
@@ -723,7 +723,7 @@ var loadPromise;
|
|
|
723
723
|
var loadNodeWebSocket = async () => {
|
|
724
724
|
if (!isNodeRuntime()) return void 0;
|
|
725
725
|
try {
|
|
726
|
-
const undici = await import("
|
|
726
|
+
const undici = await import("undici");
|
|
727
727
|
const ctor = undici.WebSocket ?? undici.default?.WebSocket;
|
|
728
728
|
return typeof ctor === "function" ? ctor : void 0;
|
|
729
729
|
} catch {
|
|
@@ -1164,7 +1164,7 @@ var FirecrawlApp = class {
|
|
|
1164
1164
|
if (typeof process !== "undefined" && process.env && process.env.npm_package_version) {
|
|
1165
1165
|
return process.env.npm_package_version;
|
|
1166
1166
|
}
|
|
1167
|
-
const packageJson = await import("./package-
|
|
1167
|
+
const packageJson = await import("./package-UXOZB356.js");
|
|
1168
1168
|
return packageJson.default.version;
|
|
1169
1169
|
} catch (error) {
|
|
1170
1170
|
const isTest = typeof process !== "undefined" && (process.env.JEST_WORKER_ID != null || false);
|
|
@@ -2591,11 +2591,11 @@ var Firecrawl = class extends FirecrawlClient {
|
|
|
2591
2591
|
return this._v1;
|
|
2592
2592
|
}
|
|
2593
2593
|
};
|
|
2594
|
-
var
|
|
2594
|
+
var index_default = Firecrawl;
|
|
2595
2595
|
export {
|
|
2596
2596
|
Firecrawl,
|
|
2597
2597
|
FirecrawlApp as FirecrawlAppV1,
|
|
2598
2598
|
FirecrawlClient,
|
|
2599
2599
|
SdkError,
|
|
2600
|
-
|
|
2600
|
+
index_default as default
|
|
2601
2601
|
};
|
package/jest.config.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/src/v1/index.ts
CHANGED
package/src/v2/types.ts
CHANGED
package/dump.rdb
DELETED
|
Binary file
|