@crawlee/puppeteer 4.0.0-beta.210 → 4.0.0-beta.212

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.
@@ -248,7 +248,6 @@ export declare class PuppeteerCrawler<ContextExtension = Dictionary<never>, Exte
248
248
  * All `PuppeteerCrawler` parameters are passed via an options object.
249
249
  */
250
250
  constructor(options?: PuppeteerCrawlerOptions<ContextExtension, ExtendedContext, Routes, StatisticStateExtension>);
251
- private enhanceContext;
252
251
  protected navigationHandler(crawlingContext: PuppeteerCrawlingContext, gotoOptions: DirectNavigationOptions): Promise<HTTPResponse | null>;
253
252
  }
254
253
  /**
@@ -110,9 +110,9 @@ export class PuppeteerCrawler extends BrowserCrawler {
110
110
  });
111
111
  }
112
112
  #buildContextPipeline() {
113
- return this.buildContextPipeline().compose(this.enhanceContext.bind(this));
113
+ return this.buildContextPipeline().compose(this.#enhanceContext.bind(this));
114
114
  }
115
- async enhanceContext(context) {
115
+ async #enhanceContext(context) {
116
116
  const waitForSelector = async (selector, timeoutMs = 5_000) => {
117
117
  await context.page.waitForSelector(selector, { timeout: timeoutMs });
118
118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/puppeteer",
3
- "version": "4.0.0-beta.210",
3
+ "version": "4.0.0-beta.212",
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"
@@ -48,11 +48,11 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@apify/datastructures": "^3.0.1",
51
- "@crawlee/browser": "4.0.0-beta.210",
52
- "@crawlee/browser-pool": "4.0.0-beta.210",
53
- "@crawlee/core": "4.0.0-beta.210",
54
- "@crawlee/types": "4.0.0-beta.210",
55
- "@crawlee/utils": "4.0.0-beta.210",
51
+ "@crawlee/browser": "4.0.0-beta.212",
52
+ "@crawlee/browser-pool": "4.0.0-beta.212",
53
+ "@crawlee/core": "4.0.0-beta.212",
54
+ "@crawlee/types": "4.0.0-beta.212",
55
+ "@crawlee/utils": "4.0.0-beta.212",
56
56
  "cheerio": "^1.0.0",
57
57
  "devtools-protocol": "*",
58
58
  "jquery": "^3.7.1",
@@ -74,5 +74,5 @@
74
74
  }
75
75
  }
76
76
  },
77
- "gitHead": "037dff5d651d88e96749cc79d17bc6d1e154f4e1"
77
+ "gitHead": "171a63a5d7f2a6d74cbce58479204ac20d30b87e"
78
78
  }