(x: CrawlerOptions)
| 1551 | } |
| 1552 | |
| 1553 | export function toV0CrawlerOptions(x: CrawlerOptions) { |
| 1554 | return { |
| 1555 | includes: x.includePaths, |
| 1556 | excludes: x.excludePaths, |
| 1557 | maxCrawledLinks: x.limit, |
| 1558 | maxDepth: 9999, |
| 1559 | limit: x.limit, |
| 1560 | generateImgAltText: false, |
| 1561 | allowBackwardCrawling: x.crawlEntireDomain, |
| 1562 | allowExternalContentLinks: x.allowExternalLinks, |
| 1563 | allowSubdomains: x.allowSubdomains, |
| 1564 | ignoreRobotsTxt: x.ignoreRobotsTxt, |
| 1565 | robotsUserAgent: x.robotsUserAgent, |
| 1566 | ignoreSitemap: x.sitemap === "skip", |
| 1567 | sitemapOnly: x.sitemap === "only", |
| 1568 | deduplicateSimilarURLs: x.deduplicateSimilarURLs, |
| 1569 | ignoreQueryParameters: x.ignoreQueryParameters, |
| 1570 | regexOnFullURL: x.regexOnFullURL, |
| 1571 | maxDiscoveryDepth: x.maxDiscoveryDepth, |
| 1572 | currentDiscoveryDepth: 0, |
| 1573 | delay: x.delay, |
| 1574 | }; |
| 1575 | } |
| 1576 | |
| 1577 | export function toV2CrawlerOptions(x: any): CrawlerOptions { |
| 1578 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…