Skip to content

Commit

Permalink
Puppeteer: upgrade to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
evictorero committed Aug 15, 2024
1 parent 12fcff3 commit 8de253f
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 229 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"@grpc/grpc-js": "^1.8.22",
"@grpc/proto-loader": "^0.7.2",
"@hapi/boom": "^10.0.0",
"@puppeteer/browsers": "^1.6.0",
"chokidar": "^3.5.2",
"dompurify": "^2.4.0",
"express": "^4.19.2",
Expand All @@ -42,7 +41,7 @@
"on-finished": "^2.3.0",
"poolpeteer": "^0.23.0",
"prom-client": "^14.1.0",
"puppeteer": "^21.0.3",
"puppeteer": "^22.8.2",
"puppeteer-cluster": "^0.23.0",
"unique-filename": "^2.0.1",
"winston": "^3.8.2"
Expand Down
4 changes: 2 additions & 2 deletions src/browser/reusable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ReusableBrowser extends Browser {
try {
page = await this.withTimingMetrics<puppeteer.Page>(async () => {
this.validateImageOptions(options);
context = await this.browser.createIncognitoBrowserContext();
context = await this.browser.createBrowserContext();
return context.newPage();
}, 'newPage');

Expand Down Expand Up @@ -52,7 +52,7 @@ export class ReusableBrowser extends Browser {

try {
this.validateRenderOptions(options);
context = await this.browser.createIncognitoBrowserContext();
context = await this.browser.createBrowserContext();
page = await context.newPage();

if (options.timezone) {
Expand Down
Loading

0 comments on commit 8de253f

Please sign in to comment.