Socket
Socket
Sign inDemoInstall

@sitespeed.io/chromedriver

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitespeed.io/chromedriver - npm Package Compare versions

Comparing version 114.0.5735-90 to 115.0.5790-98

74

install.js

@@ -35,3 +35,3 @@ 'use strict';

} else {
urlBase = `https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/`;
urlBase = `https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/${CHROMEDRIVER_VERSION}/`;
}

@@ -41,10 +41,13 @@

case 'darwin':
if (os.arch() === 'x64') return urlBase + 'chromedriver_mac64.zip';
else return urlBase + 'chromedriver_mac_arm64.zip';
if (os.arch() === 'x64')
return urlBase + 'mac-x64/chromedriver-mac-x64.zip';
else return urlBase + 'mac64/chromedriver-mac-arm64.zip';
case 'linux':
if (os.arch() === 'x64') return urlBase + 'chromedriver_linux64.zip';
else if (os.arch() === 'x32') return urlBase + 'chromedriver_linux32.zip';
if (os.arch() === 'x64')
return urlBase + 'linux64/chromedriver-linux64.zip';
else return undefined;
case 'win32':
return urlBase + 'chromedriver_win32.zip';
return urlBase + '/win32/chromedriver-win32.zip';
case 'win64':
return urlBase + '/win64/chromedriver-win64.zip';
default:

@@ -55,2 +58,19 @@ return undefined;

function getPath() {
switch (os.platform()) {
case 'darwin':
if (os.arch() === 'x64') return 'chromedriver-mac-x64';
else return 'chromedriver-mac-arm64';
case 'linux':
if (os.arch() === 'x64') return 'chromedriver-linux64';
else return undefined;
case 'win32':
return 'chromedriver-win32';
case 'win64':
return 'chromedriver-win64';
default:
return undefined;
}
}
async function download() {

@@ -99,20 +119,30 @@ if (

});
let fileEnding = '';
if (os.platform() === 'win32' || os.platform() === 'win64') {
fileEnding = '.exe';
}
zip.on('ready', () => {
zip.extract(null, './vendor', async err => {
console.log(
err
? 'Could not extract and install Chromedriver'
: `Chromedriver ${CHROMEDRIVER_VERSION} installed in ${path.join(
__dirname,
'vendor'
)}`
);
zip.close();
await unlink('vendor/chromedriver.zip');
let driverPath = 'vendor/chromedriver';
if (os.platform() === 'win32') {
driverPath = driverPath + '.exe';
zip.extract(
getPath() + '/chromedriver' + fileEnding,
'./vendor/chromedriver' + fileEnding,
async err => {
console.log(
err
? 'Could not extract and install Chromedriver'
: `Chromedriver ${CHROMEDRIVER_VERSION} installed in ${path.join(
__dirname,
'vendor'
)}`
);
zip.close();
await unlink('vendor/chromedriver.zip');
let driverPath = 'vendor/chromedriver';
if (os.platform() === 'win32' || os.platform() === 'win64') {
driverPath = driverPath + '.exe';
}
await chmod(driverPath, '755');
}
await chmod(driverPath, '755');
});
);
});

@@ -119,0 +149,0 @@ });

{
"name": "@sitespeed.io/chromedriver",
"version": "114.0.5735-90",
"chromedriver_version": "114.0.5735.90",
"version": "115.0.5790-98",
"chromedriver_version": "115.0.5790.98",
"description": "Install and launch Chromedriver for Mac, Linux & Windows",

@@ -33,3 +33,3 @@ "main": "index.js",

"dependencies": {
"node-downloader-helper": "2.1.5",
"node-downloader-helper": "2.1.7",
"node-stream-zip": "1.15.0"

@@ -36,0 +36,0 @@ },

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