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

selenium-standalone

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selenium-standalone - npm Package Compare versions

Comparing version 2.43.1-5 to 2.44.0-1

6

conf.js
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) {

})
});
});
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