From 02a598c2a501957f04ca3a2362bcee289ef861c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Fri, 10 Jan 2025 12:48:40 +0100 Subject: [PATCH] fix: destructure `CrawlerRunOptions` before passing them to `addRequests` (#2803) Allows users to actually use `await crawler.run([...], { purgeRequestQueue: false });`, which is a hard(?) requirement for stateful crawler use-cases. Closes #2802 --- packages/basic-crawler/src/internals/basic-crawler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic-crawler/src/internals/basic-crawler.ts b/packages/basic-crawler/src/internals/basic-crawler.ts index f091ac212807..b562ff4f6f5a 100644 --- a/packages/basic-crawler/src/internals/basic-crawler.ts +++ b/packages/basic-crawler/src/internals/basic-crawler.ts @@ -874,7 +874,7 @@ export class BasicCrawler