@crawlee/playwright 4.0.0-beta.220 → 4.0.0-beta.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { setTimeout as delay } from 'node:timers/promises';
2
2
  import { isDeepStrictEqual } from 'node:util';
3
- import { BasicCrawler, ContextPipeline, ContextPipelineInitializationError, RequestHandlerError, resolveBaseUrlForEnqueueLinksFiltering, Router, Statistics, } from '@crawlee/basic';
3
+ import { BasicCrawler, ContextPipeline, ContextPipelineInitializationError, ContextPipelineInterruptedError, RequestHandlerError, resolveBaseUrlForEnqueueLinksFiltering, Router, Statistics, } from '@crawlee/basic';
4
4
  import { extractUrlsFromPage } from '@crawlee/browser';
5
5
  import { CheerioCrawler } from '@crawlee/cheerio';
6
6
  import { createStorageTransaction, EnqueueStrategy, OwnedOrInjected } from '@crawlee/core';
@@ -353,7 +353,8 @@ export class AdaptivePlaywrightCrawler extends BasicCrawler {
353
353
  plainHTTPRun.error instanceof ContextPipelineInitializationError
354
354
  ? plainHTTPRun.error.cause
355
355
  : plainHTTPRun.error;
356
- if (await this.#shouldPropagateError(actualError, crawlingContext)) {
356
+ if (actualError instanceof ContextPipelineInterruptedError ||
357
+ (await this.#shouldPropagateError(actualError, crawlingContext))) {
357
358
  throw actualError;
358
359
  }
359
360
  crawlingContext.log.exception(actualError, `HTTP-only request handler failed for ${crawlingContext.request.url}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/playwright",
3
- "version": "4.0.0-beta.220",
3
+ "version": "4.0.0-beta.221",
4
4
  "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
5
  "engines": {
6
6
  "node": ">=22.13.0"
@@ -49,13 +49,13 @@
49
49
  "dependencies": {
50
50
  "@apify/datastructures": "^3.0.1",
51
51
  "@apify/timeout": "^1.0.1",
52
- "@crawlee/basic": "4.0.0-beta.220",
53
- "@crawlee/browser": "4.0.0-beta.220",
54
- "@crawlee/browser-pool": "4.0.0-beta.220",
55
- "@crawlee/cheerio": "4.0.0-beta.220",
56
- "@crawlee/core": "4.0.0-beta.220",
57
- "@crawlee/types": "4.0.0-beta.220",
58
- "@crawlee/utils": "4.0.0-beta.220",
52
+ "@crawlee/basic": "4.0.0-beta.221",
53
+ "@crawlee/browser": "4.0.0-beta.221",
54
+ "@crawlee/browser-pool": "4.0.0-beta.221",
55
+ "@crawlee/cheerio": "4.0.0-beta.221",
56
+ "@crawlee/core": "4.0.0-beta.221",
57
+ "@crawlee/types": "4.0.0-beta.221",
58
+ "@crawlee/utils": "4.0.0-beta.221",
59
59
  "cheerio": "^1.0.0",
60
60
  "jquery": "^3.7.1",
61
61
  "ml-logistic-regression": "^2.0.0",
@@ -79,5 +79,5 @@
79
79
  }
80
80
  }
81
81
  },
82
- "gitHead": "c9ef485f92968109ea496d121c9189b873c07ce8"
82
+ "gitHead": "08c8472ab3ae7ec4d81fedd099f616c7ed10a263"
83
83
  }