Socket
Socket
Sign inDemoInstall

wd

Package Overview
Dependencies
Maintainers
4
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wd - npm Package Compare versions

Comparing version 0.2.20 to 0.2.21

2

doc/release-notes.md

@@ -110,2 +110,4 @@ # Release Notes

- packages upgrade
### 0.2.20
- configurable sauce rest root

@@ -112,0 +114,0 @@ ### TODO

20

lib/webdriver.js

@@ -189,9 +189,12 @@ var EventEmitter = require('events').EventEmitter,

}
var jobUpdateUrl = url.parse(url.resolve(
var jobUpdateUrl = url.resolve(
this.sauceRestRoot.replace(/\/?$/,'/'),
this.configUrl.auth.replace(/:.*$/,'') + '/jobs/' + this.sessionID));
jobUpdateUrl.auth = this.configUrl.auth;
this.configUrl.auth.replace(/:.*$/,'') + '/jobs/' + this.sessionID);
var httpOpts = {
url: url.format(jobUpdateUrl),
url: jobUpdateUrl,
method: 'PUT',
auth: {
user: this.configUrl.auth.split(':')[0],
pass: this.configUrl.auth.split(':')[1],
},
headers: {

@@ -203,5 +206,10 @@ 'Content-Type': 'text/json'

};
httpUtils.requestWithoutRetry(httpOpts, this.emit, function(err) {
httpUtils.requestWithoutRetry(httpOpts, this.emit, function(err, resp) {
if(err) { return done(err); }
_this.emit('http', 'POST' , '/rest/v1/:user/jobs/:sessionID', jsonData);
if(resp.statusCode !== 200) {
return done(new Error("Sauce job update failed with http status code:" +
resp.statusCode));
}
_this.emit('http', 'POST' , '/rest/v1/:user/jobs/:sessionID',
jsonData ? JSON.stringify(jsonData) : '');
done();

@@ -208,0 +216,0 @@ });

@@ -10,3 +10,3 @@ {

],
"version": "0.2.20",
"version": "0.2.21",
"author": "Adam Christian <adam.christian@gmail.com>",

@@ -13,0 +13,0 @@ "contributors": [

Sorry, the diff of this file is too big to display

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