@mendable/firecrawl 4.8.1 → 4.8.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.
@@ -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.1",
11
+ version: "4.8.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.8.1",
38
+ version: "4.8.3",
39
39
  description: "JavaScript SDK for Firecrawl API",
40
40
  main: "dist/index.js",
41
41
  types: "dist/index.d.ts",
@@ -150,7 +150,7 @@ var HttpClient = class {
150
150
  this.backoffFactor = options.backoffFactor ?? 0.5;
151
151
  this.instance = import_axios.default.create({
152
152
  baseURL: this.apiUrl,
153
- timeout: options.timeoutMs ?? 6e4,
153
+ timeout: options.timeoutMs ?? 3e5,
154
154
  headers: {
155
155
  "Content-Type": "application/json",
156
156
  Authorization: `Bearer ${this.apiKey}`
package/dist/index.d.cts CHANGED
@@ -287,6 +287,8 @@ interface DocumentMetadata {
287
287
  cacheState?: 'hit' | 'miss';
288
288
  cachedAt?: string;
289
289
  creditsUsed?: number;
290
+ concurrencyLimited?: boolean;
291
+ concurrencyQueueDurationMs?: number;
290
292
  error?: string;
291
293
  [key: string]: unknown;
292
294
  }
@@ -444,6 +446,7 @@ interface ExtractResponse$1 {
444
446
  warning?: string;
445
447
  sources?: Record<string, unknown>;
446
448
  expiresAt?: string;
449
+ creditsUsed?: number;
447
450
  }
448
451
  interface AgentOptions$1 {
449
452
  model: 'FIRE-1';
@@ -812,6 +815,9 @@ interface FirecrawlDocumentMetadata {
812
815
  proxyUsed?: "basic" | "stealth";
813
816
  cacheState?: "miss" | "hit";
814
817
  cachedAt?: string;
818
+ creditsUsed?: number;
819
+ concurrencyLimited?: boolean;
820
+ concurrencyQueueDurationMs?: number;
815
821
  [key: string]: any;
816
822
  }
817
823
  /**
@@ -1100,6 +1106,7 @@ interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
1100
1106
  error?: string;
1101
1107
  warning?: string;
1102
1108
  sources?: string[];
1109
+ creditsUsed?: number;
1103
1110
  }
1104
1111
  /**
1105
1112
  * Error response interface.
package/dist/index.d.ts CHANGED
@@ -287,6 +287,8 @@ interface DocumentMetadata {
287
287
  cacheState?: 'hit' | 'miss';
288
288
  cachedAt?: string;
289
289
  creditsUsed?: number;
290
+ concurrencyLimited?: boolean;
291
+ concurrencyQueueDurationMs?: number;
290
292
  error?: string;
291
293
  [key: string]: unknown;
292
294
  }
@@ -444,6 +446,7 @@ interface ExtractResponse$1 {
444
446
  warning?: string;
445
447
  sources?: Record<string, unknown>;
446
448
  expiresAt?: string;
449
+ creditsUsed?: number;
447
450
  }
448
451
  interface AgentOptions$1 {
449
452
  model: 'FIRE-1';
@@ -812,6 +815,9 @@ interface FirecrawlDocumentMetadata {
812
815
  proxyUsed?: "basic" | "stealth";
813
816
  cacheState?: "miss" | "hit";
814
817
  cachedAt?: string;
818
+ creditsUsed?: number;
819
+ concurrencyLimited?: boolean;
820
+ concurrencyQueueDurationMs?: number;
815
821
  [key: string]: any;
816
822
  }
817
823
  /**
@@ -1100,6 +1106,7 @@ interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
1100
1106
  error?: string;
1101
1107
  warning?: string;
1102
1108
  sources?: string[];
1109
+ creditsUsed?: number;
1103
1110
  }
1104
1111
  /**
1105
1112
  * Error response interface.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-SY42GUIL.js";
3
+ } from "./chunk-KNKWC5EH.js";
4
4
 
5
5
  // src/v2/utils/httpClient.ts
6
6
  import axios from "axios";
@@ -32,7 +32,7 @@ var HttpClient = class {
32
32
  this.backoffFactor = options.backoffFactor ?? 0.5;
33
33
  this.instance = axios.create({
34
34
  baseURL: this.apiUrl,
35
- timeout: options.timeoutMs ?? 6e4,
35
+ timeout: options.timeoutMs ?? 3e5,
36
36
  headers: {
37
37
  "Content-Type": "application/json",
38
38
  Authorization: `Bearer ${this.apiKey}`
@@ -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-G5T62GGJ.js");
1167
+ const packageJson = await import("./package-FYCFMQXV.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);
@@ -1,4 +1,4 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-SY42GUIL.js";
3
+ } from "./chunk-KNKWC5EH.js";
4
4
  export default require_package();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mendable/firecrawl",
3
- "version": "4.8.1",
3
+ "version": "4.8.3",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/v1/index.ts CHANGED
@@ -53,6 +53,9 @@ export interface FirecrawlDocumentMetadata {
53
53
  proxyUsed?: "basic" | "stealth";
54
54
  cacheState?: "miss" | "hit";
55
55
  cachedAt?: string;
56
+ creditsUsed?: number;
57
+ concurrencyLimited?: boolean;
58
+ concurrencyQueueDurationMs?: number;
56
59
  [key: string]: any; // Allows for additional metadata properties not explicitly defined.
57
60
  }
58
61
 
@@ -360,6 +363,7 @@ export interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
360
363
  error?: string;
361
364
  warning?: string;
362
365
  sources?: string[];
366
+ creditsUsed?: number;
363
367
  }
364
368
 
365
369
  /**
package/src/v2/types.ts CHANGED
@@ -351,6 +351,8 @@ export interface DocumentMetadata {
351
351
  cacheState?: 'hit' | 'miss';
352
352
  cachedAt?: string;
353
353
  creditsUsed?: number;
354
+ concurrencyLimited?: boolean;
355
+ concurrencyQueueDurationMs?: number;
354
356
 
355
357
  // Error information
356
358
  error?: string;
@@ -529,6 +531,7 @@ export interface ExtractResponse {
529
531
  warning?: string;
530
532
  sources?: Record<string, unknown>;
531
533
  expiresAt?: string;
534
+ creditsUsed?: number;
532
535
  }
533
536
 
534
537
  export interface AgentOptions {
@@ -23,7 +23,7 @@ export class HttpClient {
23
23
  this.backoffFactor = options.backoffFactor ?? 0.5;
24
24
  this.instance = axios.create({
25
25
  baseURL: this.apiUrl,
26
- timeout: options.timeoutMs ?? 60000,
26
+ timeout: options.timeoutMs ?? 300000,
27
27
  headers: {
28
28
  "Content-Type": "application/json",
29
29
  Authorization: `Bearer ${this.apiKey}`,