selenium-standalone
Advanced tools
Comparing version 2.43.1-5 to 2.44.0-1
var path = require('path'); | ||
// see http://selenium-release.storage.googleapis.com/index.html for latest | ||
var version = '2.43.1'; | ||
var version = '2.44.0'; | ||
@@ -14,3 +14,3 @@ module.exports = { | ||
// see http://chromedriver.storage.googleapis.com/index.html | ||
v: '2.11' | ||
v: '2.12' | ||
}, | ||
@@ -20,5 +20,5 @@ ieDr: { | ||
// see http://selenium-release.storage.googleapis.com/index.html | ||
v: '2.43.0', | ||
v: '2.44.0', | ||
arch: process.env.IEDRIVER_ARCH !== undefined ? process.env.IEDRIVER_ARCH : process.arch | ||
} | ||
}; |
@@ -7,2 +7,3 @@ var async = require('async'); | ||
var util = require('util'); | ||
var request = require('request'); | ||
@@ -123,38 +124,19 @@ var conf = require('./conf.js'); | ||
function getDownloadStream(downloadUrl, cb) { | ||
var http = require('http'); | ||
var r = request(downloadUrl) | ||
.on('response', function(res) { | ||
console.log('Downloading ' + downloadUrl, res.statusCode); | ||
var proxy = process.env.HTTP_PROXY || process.env.http_proxy; | ||
if (res.statusCode === 302 && res.headers.location) { | ||
r.abort(); | ||
return getDownloadStream(res.headers.location, cb); | ||
} | ||
var requestOpts = downloadUrl; | ||
if (proxy) { | ||
var regexp = /(https?:\/\/)?([^:/]*)/; | ||
requestOpts = { | ||
host: proxy.match(regexp)[2], | ||
port: proxy.match(/:(\d+)/)[1] || 8080, | ||
path: downloadUrl, | ||
headers: { | ||
Host: downloadUrl.match(regexp)[2] | ||
if (res.statusCode !== 200) { | ||
return cb(new Error('Could not download ' + downloadUrl)); | ||
} | ||
}; | ||
} | ||
var r = | ||
http | ||
.request(requestOpts, function(res) { | ||
console.log('Downloading ' + downloadUrl, res.statusCode); | ||
cb(null, res); | ||
}) | ||
.once('error', cb.bind(null, new Error('Could not download ' + downloadUrl))); | ||
if (res.statusCode === 302 && res.headers.location) { | ||
r.abort(); | ||
return getDownloadStream(res.headers.location, cb); | ||
} | ||
if (res.statusCode !== 200) { | ||
return cb(new Error('Could not download ' + downloadUrl)); | ||
} | ||
cb(null, res); | ||
}) | ||
.once('error', cb.bind(null, new Error('Could not download ' + downloadUrl))) | ||
// initiate request | ||
@@ -161,0 +143,0 @@ r.end(); |
{ | ||
"name": "selenium-standalone", | ||
"version": "2.43.1-5", | ||
"version": "2.44.0-1", | ||
"description": "installs a `start-selenium` command line to start a standalone selenium server with chrome-driver", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
"mkdirp": "^0.5.0", | ||
"request": "^2.47.0", | ||
"rimraf": "^2.2.8", | ||
@@ -28,0 +29,0 @@ "unzip": "^0.1.11", |
@@ -12,3 +12,3 @@ # selenium-standalone | ||
Currently installs selenium `2.43.1`, chrome driver `2.11` and internet explorer driver `2.43.0`. | ||
Currently installs selenium `2.44.0`, chrome driver `2.12` and internet explorer driver `2.44.0`. | ||
@@ -15,0 +15,0 @@ ```shell |
@@ -8,3 +8,3 @@ describe('programmatic use', function () { | ||
// selenium 2.43.1 now outputs its info log on stderr | ||
// since selenium 2.43.1, selenium now outputs its info log on stderr | ||
['stderr', 'stdout'].forEach(function(output) { | ||
@@ -26,2 +26,2 @@ proc[output].on('data', function seleniumSays(data) { | ||
}) | ||
}); | ||
}); |
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
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
Network access
Supply chain riskThis module accesses the network.
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 2 instances in 1 package
3
1
12225
6
221
+ Addedrequest@^2.47.0
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcore-util-is@1.0.2(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)