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.10.0 to 8.10.1

29

build/launcher.js

@@ -74,2 +74,7 @@ import { launch as launchChromeBrowser } from 'chrome-launcher';

}
// Honor both ignoreHTTPSErrors and acceptInsecureCerts
// Only for WebKit/Blink engines, Firefox uses a different option
if (capabilities.acceptInsecureCerts || devtoolsOptions.ignoreHTTPSErrors) {
chromeFlags.push('--ignore-certificate-errors');
}
log.info(`Launch Google Chrome (${chromeOptions.binary}) with flags: ${chromeFlags.join(' ')}`);

@@ -108,3 +113,3 @@ const launchOptions = {

const vendorCapKey = VENDOR_PREFIX[browserType];
const devtoolsOptions = capabilities['wdio:devtoolsOptions'];
const devtoolsOptions = capabilities['wdio:devtoolsOptions'] || {};
/**

@@ -116,8 +121,9 @@ * `ignoreDefaultArgs` and `headless` are currently expected to be part of the capabilities

*/
let ignoreDefaultArgs = capabilities.ignoreDefaultArgs;
let headless = capabilities.headless;
if (devtoolsOptions) {
ignoreDefaultArgs = devtoolsOptions.ignoreDefaultArgs;
headless = devtoolsOptions.headless;
}
const ignoreDefaultArgs = capabilities.ignoreDefaultArgs || devtoolsOptions.ignoreDefaultArgs;
const headless = capabilities.headless || devtoolsOptions.headless;
// Set devtoolsOptions to honor both ignoreHTTPSErrors and acceptInsecureCerts
// Only necessary for Firefox, not for WebKit/Blink engines
devtoolsOptions.ignoreHTTPSErrors = browserType === 'firefox'
? Boolean(devtoolsOptions.ignoreHTTPSErrors || capabilities.acceptInsecureCerts)
: devtoolsOptions.ignoreHTTPSErrors ?? false;
if (!capabilities[vendorCapKey]) {

@@ -138,3 +144,10 @@ capabilities[vendorCapKey] = {};

},
prefs: capabilities[vendorCapKey]?.prefs
prefs: capabilities[vendorCapKey]?.prefs,
args: [
// Set args to honor both ignoreHTTPSErrors and acceptInsecureCerts
// Only for WebKit/Blink engines, Firefox uses a different option
...['--ignore-certificate-errors']
.filter(() => browserType === 'edge'
&& (devtoolsOptions.ignoreHTTPSErrors || capabilities.acceptInsecureCerts))
]
}, capabilities[vendorCapKey] || {}, devtoolsOptions || {});

@@ -141,0 +154,0 @@ if (!executablePath) {

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

@@ -41,12 +41,12 @@ "author": "Christian Bromann <mail@bromann.dev>",

"dependencies": {
"@types/node": "^18.0.0",
"@wdio/config": "8.10.0",
"@types/node": "^20.1.0",
"@wdio/config": "8.10.1",
"@wdio/logger": "8.6.6",
"@wdio/protocols": "8.8.1",
"@wdio/types": "8.10.0",
"@wdio/utils": "8.10.0",
"@wdio/types": "8.10.1",
"@wdio/utils": "8.10.1",
"chrome-launcher": "^0.15.0",
"edge-paths": "^3.0.5",
"import-meta-resolve": "^3.0.0",
"puppeteer-core": "19.11.1",
"puppeteer-core": "20.1.1",
"query-selector-shadow-dom": "^1.0.0",

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

},
"gitHead": "f0c607340b4f31a4ae48509115335283f488e38f"
"gitHead": "0fc768bb7b2fe233877893260aec658facf6357f"
}

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