Merge pull request #690 from mendableai/nsc/search-fix-version-v0

Fix the error message when trying search in v0
This commit is contained in:
Nicolas 2024-09-21 21:12:01 -04:00 committed by GitHub
commit 4721aa1687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ export async function scrapWithFireEngine({
logParams.error_message = data.pageError ?? data.error;
return {
html: data.content ?? "",
screenshots: data.screenshots,
screenshots: data.screenshots ?? [data.screenshot] ?? [],
pageStatusCode: data.pageStatusCode,
pageError: data.pageError ?? data.error,
};

View File

@ -1,6 +1,6 @@
{
"name": "@mendable/firecrawl-js",
"version": "1.5.1",
"version": "1.5.2",
"description": "JavaScript SDK for Firecrawl API",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -289,7 +289,7 @@ export default class FirecrawlApp {
query: string,
params?: any
): Promise<any> {
throw new Error("Search is not supported in v1, please update FirecrawlApp() initialization to use v0.");
throw new Error("Search is not supported in v1, please downgrade Firecrawl to 0.0.36.");
}
/**