@crawlee/playwright 4.0.0-beta.207 → 4.0.0-beta.209

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, RequestHandlerError, resolveBaseUrlForEnqueueLinksFiltering, Router, Statistics, } from '@crawlee/basic';
3
+ import { BasicCrawler, ContextPipeline, ContextPipelineInitializationError, 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';
@@ -349,7 +349,8 @@ export class AdaptivePlaywrightCrawler extends BasicCrawler {
349
349
  }
350
350
  // Execution will "fall through" and try running the request handler in a browser
351
351
  if (!plainHTTPRun.ok) {
352
- const actualError = plainHTTPRun.error instanceof RequestHandlerError
352
+ const actualError = plainHTTPRun.error instanceof RequestHandlerError ||
353
+ plainHTTPRun.error instanceof ContextPipelineInitializationError
353
354
  ? plainHTTPRun.error.cause
354
355
  : plainHTTPRun.error;
355
356
  if (await this.#shouldPropagateError(actualError, crawlingContext)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/playwright",
3
- "version": "4.0.0-beta.207",
3
+ "version": "4.0.0-beta.209",
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.0.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.207",
53
- "@crawlee/browser": "4.0.0-beta.207",
54
- "@crawlee/browser-pool": "4.0.0-beta.207",
55
- "@crawlee/cheerio": "4.0.0-beta.207",
56
- "@crawlee/core": "4.0.0-beta.207",
57
- "@crawlee/types": "4.0.0-beta.207",
58
- "@crawlee/utils": "4.0.0-beta.207",
52
+ "@crawlee/basic": "4.0.0-beta.209",
53
+ "@crawlee/browser": "4.0.0-beta.209",
54
+ "@crawlee/browser-pool": "4.0.0-beta.209",
55
+ "@crawlee/cheerio": "4.0.0-beta.209",
56
+ "@crawlee/core": "4.0.0-beta.209",
57
+ "@crawlee/types": "4.0.0-beta.209",
58
+ "@crawlee/utils": "4.0.0-beta.209",
59
59
  "cheerio": "^1.0.0",
60
60
  "jquery": "^3.7.1",
61
61
  "ml-logistic-regression": "^2.0.0",
@@ -80,5 +80,5 @@
80
80
  }
81
81
  }
82
82
  },
83
- "gitHead": "8d4e54dfe0343e33f40a90d12abfb1840340c520"
83
+ "gitHead": "ccf82c59e230033a34bddcbecb1f4a8e803eaa11"
84
84
  }