From 9b7f595a2d70cab5c50e188581b21b0ef7e51780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Tue, 11 Jun 2024 22:31:43 +0200 Subject: [PATCH] fix: allow creating new adaptive crawler instance without any parameters --- .../src/internals/adaptive-playwright-crawler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts b/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts index e35b828147e5..89e2695b6efd 100644 --- a/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts +++ b/packages/playwright-crawler/src/internals/adaptive-playwright-crawler.ts @@ -224,7 +224,7 @@ export class AdaptivePlaywrightCrawler extends PlaywrightCrawler { Router.create(); constructor( - options: AdaptivePlaywrightCrawlerOptions, + options: AdaptivePlaywrightCrawlerOptions = {}, override readonly config = Configuration.getGlobalConfig(), ) { const {