Skip to content

Commit

Permalink
feat(puppeteer): Upgrade to puppeteer@19
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This drops support for earlier versions.
  • Loading branch information
NiGhTTraX committed Nov 4, 2022
1 parent b0b47b5 commit 29453b3
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
},
"peerDependencies": {
"mugshot": "^4.0.0",
"puppeteer": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0"
"puppeteer": "^19.0.0"
},
"devDependencies": {
"mugshot": "^4.0.1",
"puppeteer": "~13.7.0",
"puppeteer": "~19.2.2",
"typescript": "~4.8.0"
}
}
6 changes: 1 addition & 5 deletions packages/puppeteer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,5 @@ export class PuppeteerAdapter implements Webdriver {
(await (this.page.screenshot() as Promise<Buffer>)).toString('base64');

execute = <R, A extends any[]>(func: (...args: A) => R, ...args: A) =>
this.page.evaluate(
// @ts-expect-error the puppeteer type expects at least 1 argument
func,
...args
);
this.page.evaluate(func, ...args);
}
70 changes: 61 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29453b3

Please sign in to comment.