mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-13 20:16:00 +08:00
Move waitFor check for changeTracking to types.ts refine layer
Co-Authored-By: hello@sideguide.dev <hello@sideguide.dev>
This commit is contained in:
parent
9ab2a26636
commit
8bc2f16712
@ -282,6 +282,10 @@ const extractTransform = (obj) => {
|
||||
obj = { ...obj, timeout: 60000 };
|
||||
}
|
||||
|
||||
if (obj.formats?.includes("changeTracking") && obj.waitFor < 5000) {
|
||||
obj = { ...obj, waitFor: 5000 };
|
||||
}
|
||||
|
||||
if (obj.formats?.includes("json")) {
|
||||
obj.formats.push("extract");
|
||||
}
|
||||
|
@ -390,9 +390,6 @@ export async function scrapeURL(
|
||||
options: ScrapeOptions,
|
||||
internalOptions: InternalOptions,
|
||||
): Promise<ScrapeUrlResponse> {
|
||||
if (options.formats.includes("changeTracking") && options.waitFor < 5000) {
|
||||
options.waitFor = 5000;
|
||||
}
|
||||
const meta = await buildMetaObject(id, url, options, internalOptions);
|
||||
try {
|
||||
while (true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user