-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump puppeteer to v22.10.0 [HeadlessChrome/125.0.0.0] #1369
Conversation
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected] |
|
@@ -98,7 +101,9 @@ function phantomas(url, opts) { | |||
suffix = "}"; | |||
|
|||
const preloadFile = | |||
prefix + require("fs").readFileSync(script, "utf8") + suffix; | |||
prefix + | |||
(await require("fs/promises").readFile(script, "utf8")) + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be more async :-)
@@ -92,13 +92,17 @@ | |||
})(); | |||
|
|||
// count <iframe> tags | |||
document.querySelectorAll("iframe").forEach(function (iframe) { | |||
phantomas.incrMetric("iframesCount"); // @desc number of iframe nodes | |||
const iframes = document.querySelectorAll("iframe"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query for the iframes just once.
Release notes