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

chromedriver

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromedriver - npm Package Compare versions

Comparing version 107.0.1 to 107.0.2

52

install.js

@@ -6,5 +6,4 @@ 'use strict';

const helper = require('./lib/chromedriver');
const axios = require('axios').default;
const axios = require('axios');
const path = require('path');
const del = require('del');
const child_process = require('child_process');

@@ -49,5 +48,8 @@ const os = require('os');

console.log("Your Chrome version is " + chromeVersion);
const chromeVersionWithoutPatch = /^(.*?)\.\d+$/.exec(chromeVersion)[1];
await getChromeDriverVersion(getRequestOptions(cdnUrl + '/LATEST_RELEASE_' + chromeVersionWithoutPatch));
console.log("Compatible ChromeDriver version is " + chromedriver_version);
const versionMatch = /^(.*?)\.\d+$/.exec(chromeVersion);
if (versionMatch) {
const chromeVersionWithoutPatch = versionMatch[1];
await getChromeDriverVersion(getRequestOptions(cdnUrl + '/LATEST_RELEASE_' + chromeVersionWithoutPatch));
console.log("Compatible ChromeDriver version is " + chromedriver_version);
}
}

@@ -168,7 +170,6 @@ if (chromedriver_version === 'LATEST') {

for (let i = 0; i < candidateTmpDirs.length; i++) {
if (!candidateTmpDirs[i]) continue;
// Prevent collision with other versions in the dependency tree
for (const tempDir of candidateTmpDirs) {
if (!tempDir) continue;
const namespace = chromedriver_version;
const candidatePath = path.join(candidateTmpDirs[i], namespace, 'chromedriver');
const candidatePath = path.join(tempDir, namespace, 'chromedriver');
try {

@@ -197,7 +198,8 @@ fs.mkdirSync(candidatePath, { recursive: true });

const proxyUrlParts = url.parse(proxyUrl);
options.proxy = {
host: proxyUrlParts.hostname,
port: proxyUrlParts.port ? parseInt(proxyUrlParts.port) : 80,
protocol: proxyUrlParts.protocol
};
if (proxyUrlParts.hostname && proxyUrlParts.protocol)
options.proxy = {
host: proxyUrlParts.hostname,
port: proxyUrlParts.port ? parseInt(proxyUrlParts.port) : 80,
protocol: proxyUrlParts.protocol
};
}

@@ -252,3 +254,3 @@

console.log('Finding Chromedriver version.');
const response = await axios(requestOptions);
const response = await axios.request(requestOptions);
chromedriver_version = response.data.trim();

@@ -267,3 +269,3 @@ console.log(`Chromedriver version is ${chromedriver_version}.`);

try {
response = await axios({ responseType: 'stream', ...requestOptions });
response = await axios.request({ responseType: 'stream', ...requestOptions });
} catch (error) {

@@ -276,3 +278,3 @@ if (error && error.response) {

try {
await finishedAsync(error.response.data)
await finishedAsync(error.response.data);
} catch (error) {

@@ -317,3 +319,3 @@ console.error('Error downloading entire response:', error);

async function copyIntoPlace(originPath, targetPath) {
await del(targetPath, { force: true });
fs.rmSync(targetPath, { recursive: true, force: true });
console.log(`Copying from ${originPath} to target path ${targetPath}`);

@@ -327,3 +329,3 @@ fs.mkdirSync(targetPath);

const promises = files.map(name => {
return new Promise((resolve) => {
return /** @type {Promise<void>} */(new Promise((resolve) => {
const file = path.join(originPath, name);

@@ -335,3 +337,3 @@ const reader = fs.createReadStream(file);

reader.pipe(writer);
});
}));
});

@@ -360,3 +362,3 @@ await Promise.all(promises);

return 'mac_arm64'
return 'mac_arm64';
}

@@ -378,4 +380,4 @@

// When run with `-in`, the return code is 0 even if there is no `sysctl.proc_translated`
if(proc.status) {
throw new Error('Unexpected return code from sysctl: ' + proc.status);
if (proc.status) {
throw new Error('Unexpected return code from sysctl: ' + proc.status);
}

@@ -385,4 +387,4 @@

// stdout
if(!proc.stdout) {
return false
if (!proc.stdout) {
return false;
}

@@ -389,0 +391,0 @@

{
"name": "chromedriver",
"version": "107.0.1",
"version": "107.0.2",
"keywords": [

@@ -26,9 +26,9 @@ "chromedriver",

"install": "node install.js",
"update-chromedriver": "node update.js"
"update-chromedriver": "node update.js",
"lint": "eslint"
},
"dependencies": {
"@testim/chrome-version": "^1.1.3",
"axios": "^0.27.2",
"axios": "^1.1.3",
"compare-versions": "^5.0.1",
"del": "^6.1.1",
"extract-zip": "^2.0.1",

@@ -39,2 +39,5 @@ "https-proxy-agent": "^5.0.1",

},
"devDependencies": {
"eslint": "^8.26.0"
},
"engines": {

@@ -41,0 +44,0 @@ "node": ">=10"

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