Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devtools

Package Overview
Dependencies
Maintainers
3
Versions
386
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devtools - npm Package Compare versions

Comparing version 8.6.8 to 8.6.9

18

build/devtoolsdriver.js

@@ -140,10 +140,14 @@ import fs from 'node:fs';

const page = self.getPageHandle();
await new Promise((resolve, reject) => {
const pageloadTimeout = setTimeout(() => reject(new Error('page load timeout')), self.timeouts.get('pageLoad'));
page.once('load', () => {
clearTimeout(pageloadTimeout);
resolve();
++retries;
// In some cases, the page load event never arrives
// Wait for a page load event only after trying to execute the command a few times
if (retries >= 3) {
await new Promise((resolve, reject) => {
const pageloadTimeout = setTimeout(() => reject(new Error('page load timeout')), self.timeouts.get('pageLoad'));
page.once('load', () => {
clearTimeout(pageloadTimeout);
resolve();
});
});
});
++retries;
}
return wrappedCommand.apply(this, args);

@@ -150,0 +154,0 @@ }

{
"name": "devtools",
"version": "8.6.8",
"version": "8.6.9",
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer",

@@ -50,3 +50,3 @@ "author": "Christian Bromann <mail@bromann.dev>",

"import-meta-resolve": "^2.1.0",
"puppeteer-core": "19.7.5",
"puppeteer-core": "19.8.0",
"query-selector-shadow-dom": "^1.0.0",

@@ -61,3 +61,3 @@ "ua-parser-js": "^1.0.1",

},
"gitHead": "d93cd057937fc77935a4855dedf74323183652dd"
"gitHead": "4e55b777974baeea7d74ff43964c114fc8c5f60f"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc