chromedriver
Advanced tools
Comparing version 2.9.1-1 to 2.10.0-1
@@ -17,3 +17,3 @@ 'use strict' | ||
var libPath = path.join(__dirname, 'lib', 'chromedriver') | ||
var downloadUrl = 'http://chromedriver.storage.googleapis.com/%s/chromedriver_%s.zip' | ||
var downloadUrl = (process.env.CHROMEDRIVER_CDNURL || 'http://chromedriver.storage.googleapis.com') + '/%s/chromedriver_%s.zip' | ||
var platform = process.platform | ||
@@ -51,13 +51,8 @@ | ||
// Start the install. | ||
if (!fs.existsSync(downloadedFile)) { | ||
promise = promise.then(function () { | ||
console.log('Downloading', downloadUrl) | ||
console.log('Saving to', downloadedFile) | ||
return requestBinary(getRequestOptions(conf.get('proxy')), downloadedFile) | ||
}) | ||
promise = promise.then(function () { | ||
console.log('Downloading', downloadUrl) | ||
console.log('Saving to', downloadedFile) | ||
return requestBinary(getRequestOptions(conf.get('proxy')), downloadedFile) | ||
}) | ||
} else { | ||
console.log('Download already available at', downloadedFile) | ||
} | ||
promise.then(function () { | ||
@@ -64,0 +59,0 @@ return extractDownload(downloadedFile, tmpPath) |
var path = require('path'); | ||
exports.path = process.platform === 'win32' ? path.join(__dirname, 'chromedriver', 'chromedriver.exe') : path.join(__dirname, 'chromedriver', 'chromedriver'); | ||
exports.version = '2.9'; | ||
exports.version = '2.10'; | ||
exports.start = function() { | ||
@@ -5,0 +5,0 @@ exports.defaultInstance = require('child_process').execFile(exports.path); |
{ | ||
"name": "chromedriver", | ||
"version": "2.9.1-1", | ||
"version": "2.10.0-1", | ||
"keywords": ["chromedriver", "selenium"], | ||
@@ -5,0 +5,0 @@ "description": "ChromeDriver for Selenium", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9977
185
3