feat(v1/extract) Show sources out of __experimental (#1180)

* Nick:

* Nick:

* Nick:
This commit is contained in:
Nicolas
2025-02-13 12:41:45 -03:00
committed by GitHub
parent 1d9a0b9653
commit 73ecaf74c2
6 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@mendable/firecrawl-js",
"version": "1.16.0",
"version": "1.17.0",
"description": "JavaScript SDK for Firecrawl API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
+4 -1
View File
@@ -262,6 +262,7 @@ export interface ExtractParams<LLMSchema extends zt.ZodSchema = any> {
enableWebSearch?: boolean;
includeSubdomains?: boolean;
origin?: string;
showSources?: boolean;
}
/**
@@ -273,6 +274,7 @@ export interface ExtractResponse<LLMSchema extends zt.ZodSchema = any> {
data: LLMSchema;
error?: string;
warning?: string;
sources?: string[];
}
/**
@@ -1041,7 +1043,8 @@ export default class FirecrawlApp {
success: true,
data: extractStatus.data,
warning: extractStatus.warning,
error: extractStatus.error
error: extractStatus.error,
sources: extractStatus?.sources || undefined,
};
} else {
throw new FirecrawlError(`Failed to extract data. Error: ${extractStatus.error}`, statusResponse.status);