Skip to content

Commit

Permalink
chore: fix build with new Puppeteer version
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Jan 20, 2025
1 parent f53195a commit 8fe9548
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PROCESS_KILL_TIMEOUT_MILLIS = 5000;

export class PuppeteerController extends BrowserController<
typeof Puppeteer,
PuppeteerTypes.PuppeteerLaunchOptions,
PuppeteerTypes.LaunchOptions,
PuppeteerTypes.Browser,
PuppeteerNewPageOptions
> {
Expand Down
10 changes: 5 additions & 5 deletions packages/browser-pool/src/puppeteer/puppeteer-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ const PROXY_SERVER_ARG = '--proxy-server=';

export class PuppeteerPlugin extends BrowserPlugin<
typeof Puppeteer,
PuppeteerTypes.PuppeteerLaunchOptions,
PuppeteerTypes.LaunchOptions,
PuppeteerTypes.Browser,
PuppeteerNewPageOptions
> {
protected async _launch(
launchContext: LaunchContext<
typeof Puppeteer,
PuppeteerTypes.PuppeteerLaunchOptions,
PuppeteerTypes.LaunchOptions,
PuppeteerTypes.Browser,
PuppeteerNewPageOptions
>,
Expand Down Expand Up @@ -190,7 +190,7 @@ export class PuppeteerPlugin extends BrowserPlugin<

protected _createController(): BrowserController<
typeof Puppeteer,
PuppeteerTypes.PuppeteerLaunchOptions,
PuppeteerTypes.LaunchOptions,
PuppeteerTypes.Browser,
PuppeteerNewPageOptions
> {
Expand All @@ -200,7 +200,7 @@ export class PuppeteerPlugin extends BrowserPlugin<
protected async _addProxyToLaunchOptions(
_launchContext: LaunchContext<
typeof Puppeteer,
PuppeteerTypes.PuppeteerLaunchOptions,
PuppeteerTypes.LaunchOptions,
PuppeteerTypes.Browser,
PuppeteerNewPageOptions
>,
Expand Down Expand Up @@ -235,7 +235,7 @@ export class PuppeteerPlugin extends BrowserPlugin<
protected _isChromiumBasedBrowser(
_launchContext: LaunchContext<
typeof Puppeteer,
PuppeteerTypes.PuppeteerLaunchOptions,
PuppeteerTypes.LaunchOptions,
PuppeteerTypes.Browser,
PuppeteerNewPageOptions
>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Browser } from 'puppeteer';
/**
* Apify extends the launch options of Puppeteer.
* You can use any of the Puppeteer compatible
* [`LaunchOptions`](https://pptr.dev/#?product=Puppeteer&show=api-puppeteerlaunchoptions)
* [`LaunchOptions`](https://pptr.dev/api/puppeteer.launchoptions)
* options by providing the `launchOptions` property.
*
* **Example:**
Expand All @@ -27,7 +27,7 @@ import type { Browser } from 'puppeteer';
*/
export interface PuppeteerLaunchContext extends BrowserLaunchContext<PuppeteerPlugin['launchOptions'], unknown> {
/**
* `puppeteer.launch` [options](https://pptr.dev/#?product=Puppeteer&version=v13.5.1&show=api-puppeteerlaunchoptions)
* `puppeteer.launch` [options](https://pptr.dev/api/puppeteer.launchoptions)
*/
launchOptions?: PuppeteerPlugin['launchOptions'];

Expand Down Expand Up @@ -111,7 +111,7 @@ export class PuppeteerLauncher extends BrowserLauncher<PuppeteerPlugin, unknown>
/**
* Launches headless Chrome using Puppeteer pre-configured to work within the Apify platform.
* The function has the same argument and the return value as `puppeteer.launch()`.
* See [Puppeteer documentation](https://github.com/puppeteer/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions) for more details.
* See [Puppeteer documentation](https://pptr.dev/api/puppeteer.launchoptions) for more details.
*
* The `launchPuppeteer()` function alters the following Puppeteer options:
*
Expand Down

0 comments on commit 8fe9548

Please sign in to comment.