fix: converter missing

This commit is contained in:
Gergő Móricz 2024-11-08 17:11:22 +01:00
parent dc3a4e27fd
commit 1acef8e49b

View File

@ -454,6 +454,7 @@ export function toLegacyCrawlerOptions(x: CrawlerOptions) {
allowBackwardCrawling: x.allowBackwardLinks,
allowExternalContentLinks: x.allowExternalLinks,
ignoreSitemap: x.ignoreSitemap,
deduplicateSimilarURLs: x.deduplicateSimilarURLs,
};
}
@ -467,7 +468,7 @@ export function fromLegacyCrawlerOptions(x: any): { crawlOptions: CrawlerOptions
allowBackwardLinks: x.allowBackwardCrawling,
allowExternalLinks: x.allowExternalContentLinks,
ignoreSitemap: x.ignoreSitemap,
// TODO: returnOnlyUrls support
deduplicateSimilarURLs: x.deduplicateSimilarURLs,
}),
internalOptions: {
v0CrawlOnlyUrls: x.returnOnlyUrls,