firecrawl 1.16.0 → 1.17.0

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/index.cjs CHANGED
@@ -647,7 +647,8 @@ var FirecrawlApp = class {
647
647
  success: true,
648
648
  data: extractStatus.data,
649
649
  warning: extractStatus.warning,
650
- error: extractStatus.error
650
+ error: extractStatus.error,
651
+ sources: extractStatus?.sources || void 0
651
652
  };
652
653
  } else {
653
654
  throw new FirecrawlError(`Failed to extract data. Error: ${extractStatus.error}`, statusResponse.status);
package/dist/index.d.cts CHANGED
@@ -244,6 +244,7 @@ interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
244
244
  enableWebSearch?: boolean;
245
245
  includeSubdomains?: boolean;
246
246
  origin?: string;
247
+ showSources?: boolean;
247
248
  }
248
249
  /**
249
250
  * Response interface for extracting information from URLs.
@@ -254,6 +255,7 @@ interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
254
255
  data: LLMSchema;
255
256
  error?: string;
256
257
  warning?: string;
258
+ sources?: string[];
257
259
  }
258
260
  /**
259
261
  * Error response interface.
package/dist/index.d.ts CHANGED
@@ -244,6 +244,7 @@ interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
244
244
  enableWebSearch?: boolean;
245
245
  includeSubdomains?: boolean;
246
246
  origin?: string;
247
+ showSources?: boolean;
247
248
  }
248
249
  /**
249
250
  * Response interface for extracting information from URLs.
@@ -254,6 +255,7 @@ interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
254
255
  data: LLMSchema;
255
256
  error?: string;
256
257
  warning?: string;
258
+ sources?: string[];
257
259
  }
258
260
  /**
259
261
  * Error response interface.
package/dist/index.js CHANGED
@@ -611,7 +611,8 @@ var FirecrawlApp = class {
611
611
  success: true,
612
612
  data: extractStatus.data,
613
613
  warning: extractStatus.warning,
614
- error: extractStatus.error
614
+ error: extractStatus.error,
615
+ sources: extractStatus?.sources || void 0
615
616
  };
616
617
  } else {
617
618
  throw new FirecrawlError(`Failed to extract data. Error: ${extractStatus.error}`, statusResponse.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firecrawl",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "JavaScript SDK for Firecrawl API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -262,6 +262,7 @@ export interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
262
262
  enableWebSearch?: boolean;
263
263
  includeSubdomains?: boolean;
264
264
  origin?: string;
265
+ showSources?: boolean;
265
266
  }
266
267
 
267
268
  /**
@@ -273,6 +274,7 @@ export interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
273
274
  data: LLMSchema;
274
275
  error?: string;
275
276
  warning?: string;
277
+ sources?: string[];
276
278
  }
277
279
 
278
280
  /**
@@ -1041,7 +1043,8 @@ export default class FirecrawlApp {
1041
1043
  success: true,
1042
1044
  data: extractStatus.data,
1043
1045
  warning: extractStatus.warning,
1044
- error: extractStatus.error
1046
+ error: extractStatus.error,
1047
+ sources: extractStatus?.sources || undefined,
1045
1048
  };
1046
1049
  } else {
1047
1050
  throw new FirecrawlError(`Failed to extract data. Error: ${extractStatus.error}`, statusResponse.status);