@mendable/firecrawl 4.8.2 → 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.2",
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.2",
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
  }
@@ -813,6 +815,9 @@ interface FirecrawlDocumentMetadata {
813
815
  proxyUsed?: "basic" | "stealth";
814
816
  cacheState?: "miss" | "hit";
815
817
  cachedAt?: string;
818
+ creditsUsed?: number;
819
+ concurrencyLimited?: boolean;
820
+ concurrencyQueueDurationMs?: number;
816
821
  [key: string]: any;
817
822
  }
818
823
  /**
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
  }
@@ -813,6 +815,9 @@ interface FirecrawlDocumentMetadata {
813
815
  proxyUsed?: "basic" | "stealth";
814
816
  cacheState?: "miss" | "hit";
815
817
  cachedAt?: string;
818
+ creditsUsed?: number;
819
+ concurrencyLimited?: boolean;
820
+ concurrencyQueueDurationMs?: number;
816
821
  [key: string]: any;
817
822
  }
818
823
  /**
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_package
3
- } from "./chunk-3IN25WJ7.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-UXOZB356.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-3IN25WJ7.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.2",
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
 
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;
@@ -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}`,