Skip to content

Commit

Permalink
:arrow-up: upgrade puppeteer to 22.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
frinyvonnick committed Sep 3, 2024
1 parent 70f3f56 commit d8800c6
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 247 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"license": "Apache-2.0",
"dependencies": {
"handlebars": "4.7.8",
"puppeteer": "21.0.1",
"puppeteer-cluster": "^0.23.0"
"puppeteer": "22.8.2",
"puppeteer-cluster": "0.24.0"
},
"scripts": {
"test": "jest",
Expand All @@ -34,7 +34,7 @@
"gitmoji-changelog": "2.3.0",
"jest": "^28.1.2",
"jest-circus": "^28.1.2",
"puppeteer-core": "^15.3.0",
"puppeteer-core": "22.8.2",
"rimraf": "^3.0.2",
"tesseract.js": "4.1.1",
"typescript": "^4.7.4"
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function nodeHtmlToImage(options: Options) {
concurrency: Cluster.CONCURRENCY_CONTEXT,
maxConcurrency: 2,
timeout,
puppeteerOptions: { ...puppeteerArgs, headless: 'new' },
puppeteerOptions: { ...puppeteerArgs, headless: "shell" },
puppeteer: puppeteer,
});

Expand Down Expand Up @@ -51,9 +51,9 @@ export async function nodeHtmlToImage(options: Options) {
screenshot: new Screenshot(data),
});
return screenshot;
}
},
);
})
}),
);
await cluster.idle();
await cluster.close();
Expand Down
Loading

0 comments on commit d8800c6

Please sign in to comment.