@mendable/firecrawl-js 1.18.0-beta.5 → 1.18.0-beta.7
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 +0 -3
- package/dist/index.js +0 -3
- package/package.json +1 -1
- package/src/index.ts +3 -3
package/dist/index.cjs
CHANGED
|
@@ -868,9 +868,7 @@ var FirecrawlApp = class {
|
|
|
868
868
|
const jobId = response.id;
|
|
869
869
|
let researchStatus;
|
|
870
870
|
do {
|
|
871
|
-
console.log("Checking research status...");
|
|
872
871
|
researchStatus = await this.__checkDeepResearchStatus(jobId);
|
|
873
|
-
console.log("Research status:", researchStatus);
|
|
874
872
|
if ("error" in researchStatus && !researchStatus.success) {
|
|
875
873
|
return researchStatus;
|
|
876
874
|
}
|
|
@@ -885,7 +883,6 @@ var FirecrawlApp = class {
|
|
|
885
883
|
}
|
|
886
884
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
887
885
|
} while (researchStatus.status === "processing");
|
|
888
|
-
console.log("Research status finished:", researchStatus);
|
|
889
886
|
return { success: false, error: "Research job terminated unexpectedly" };
|
|
890
887
|
} catch (error) {
|
|
891
888
|
throw new FirecrawlError(error.message, 500, error.response?.data?.details);
|
package/dist/index.js
CHANGED
|
@@ -832,9 +832,7 @@ var FirecrawlApp = class {
|
|
|
832
832
|
const jobId = response.id;
|
|
833
833
|
let researchStatus;
|
|
834
834
|
do {
|
|
835
|
-
console.log("Checking research status...");
|
|
836
835
|
researchStatus = await this.__checkDeepResearchStatus(jobId);
|
|
837
|
-
console.log("Research status:", researchStatus);
|
|
838
836
|
if ("error" in researchStatus && !researchStatus.success) {
|
|
839
837
|
return researchStatus;
|
|
840
838
|
}
|
|
@@ -849,7 +847,6 @@ var FirecrawlApp = class {
|
|
|
849
847
|
}
|
|
850
848
|
await new Promise((resolve) => setTimeout(resolve, 1e3));
|
|
851
849
|
} while (researchStatus.status === "processing");
|
|
852
|
-
console.log("Research status finished:", researchStatus);
|
|
853
850
|
return { success: false, error: "Research job terminated unexpectedly" };
|
|
854
851
|
} catch (error) {
|
|
855
852
|
throw new FirecrawlError(error.message, 500, error.response?.data?.details);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1370,9 +1370,9 @@ export default class FirecrawlApp {
|
|
|
1370
1370
|
let researchStatus;
|
|
1371
1371
|
|
|
1372
1372
|
do {
|
|
1373
|
-
console.log("Checking research status...");
|
|
1373
|
+
// console.log("Checking research status...");
|
|
1374
1374
|
researchStatus = await this.__checkDeepResearchStatus(jobId);
|
|
1375
|
-
console.log("Research status:", researchStatus);
|
|
1375
|
+
// console.log("Research status:", researchStatus);
|
|
1376
1376
|
|
|
1377
1377
|
if ('error' in researchStatus && !researchStatus.success) {
|
|
1378
1378
|
return researchStatus;
|
|
@@ -1391,7 +1391,7 @@ export default class FirecrawlApp {
|
|
|
1391
1391
|
|
|
1392
1392
|
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
1393
1393
|
} while (researchStatus.status === "processing");
|
|
1394
|
-
console.log("Research status finished:", researchStatus);
|
|
1394
|
+
// console.log("Research status finished:", researchStatus);
|
|
1395
1395
|
|
|
1396
1396
|
return { success: false, error: "Research job terminated unexpectedly" };
|
|
1397
1397
|
} catch (error: any) {
|