mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
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:
commit
4721aa1687
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user