@crawlee/puppeteer 4.0.0-beta.80 → 4.0.0-beta.82

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.
@@ -37,7 +37,7 @@ export interface PuppeteerCrawlerOptions<ContextExtension = Dictionary<never>, E
37
37
  * ]
38
38
  * ```
39
39
  */
40
- preNavigationHooks?: PuppeteerHook[];
40
+ preNavigationHooks?: BrowserHook<PuppeteerCrawlingContext, ContextExtension>[];
41
41
  /**
42
42
  * Async functions that are sequentially evaluated after the navigation. Good for checking if the navigation was successful.
43
43
  * The function accepts `crawlingContext` as the only parameter. A hook may optionally return a partial object
@@ -54,7 +54,7 @@ export interface PuppeteerCrawlerOptions<ContextExtension = Dictionary<never>, E
54
54
  * ]
55
55
  * ```
56
56
  */
57
- postNavigationHooks?: PuppeteerHook[];
57
+ postNavigationHooks?: BrowserHook<PuppeteerCrawlingContext, ContextExtension>[];
58
58
  }
59
59
  /**
60
60
  * Provides a simple framework for parallel crawling of web pages
@@ -91,7 +91,7 @@ export declare class PuppeteerLauncher extends BrowserLauncher<PuppeteerPlugin,
91
91
  * All `PuppeteerLauncher` parameters are passed via an launchContext object.
92
92
  */
93
93
  constructor(launchContext?: PuppeteerLaunchContext, config?: Configuration);
94
- protected _getDefaultHeadlessOption(): boolean;
94
+ protected getDefaultHeadlessOption(): boolean;
95
95
  }
96
96
  /**
97
97
  * Launches headless Chrome using Puppeteer pre-configured to work within the Apify platform.
@@ -24,8 +24,8 @@ export class PuppeteerLauncher extends BrowserLauncher {
24
24
  this.config = config;
25
25
  this.Plugin = PuppeteerPlugin;
26
26
  }
27
- _getDefaultHeadlessOption() {
28
- const headless = super._getDefaultHeadlessOption();
27
+ getDefaultHeadlessOption() {
28
+ const headless = super.getDefaultHeadlessOption();
29
29
  return headless ? 'new' : headless;
30
30
  }
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/puppeteer",
3
- "version": "4.0.0-beta.80",
3
+ "version": "4.0.0-beta.82",
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": "^2.0.3",
51
- "@crawlee/browser": "4.0.0-beta.80",
52
- "@crawlee/browser-pool": "4.0.0-beta.80",
53
- "@crawlee/core": "4.0.0-beta.80",
54
- "@crawlee/types": "4.0.0-beta.80",
55
- "@crawlee/utils": "4.0.0-beta.80",
51
+ "@crawlee/browser": "4.0.0-beta.82",
52
+ "@crawlee/browser-pool": "4.0.0-beta.82",
53
+ "@crawlee/core": "4.0.0-beta.82",
54
+ "@crawlee/types": "4.0.0-beta.82",
55
+ "@crawlee/utils": "4.0.0-beta.82",
56
56
  "cheerio": "^1.0.0",
57
57
  "devtools-protocol": "*",
58
58
  "idcac-playwright": "^0.2.0",
@@ -79,5 +79,5 @@
79
79
  }
80
80
  }
81
81
  },
82
- "gitHead": "96c57b4a0c999e4b2bd198792490af28db7aa42d"
82
+ "gitHead": "eb1096f7c7743d124375ef011fbbadb19476822e"
83
83
  }