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.3.9 to 0.3.10

3

doc/release-notes.md

@@ -5,2 +5,5 @@ # Release Notes

### 0.3.9
- package upgrade
### 0.3.8

@@ -7,0 +10,0 @@ - added unlockDevice method

15

lib/webdriver.js

@@ -79,9 +79,14 @@ var EventEmitter = require('events').EventEmitter,

// trying to guess if we are using Appium
var isAppium = (desired.deviceName || desired.device) ? true : false;
// copy containing defaults
var _desired = _.clone(desired);
if(!isAppium) { _.defaults(_desired, this.defaultCapabilities); }
if(desired.deviceName || desired.device || desired.wdNoDefaults ||
desired['wd-no-defaults']) {
// no default or appium caps, we dont default
delete _desired.wdNoDefaults;
delete _desired['wd-no-defaults'];
} else {
// using default
_.defaults(_desired, this.defaultCapabilities);
}
// http options

@@ -88,0 +93,0 @@ var httpOpts = httpUtils.newHttpOpts('POST', _this._httpConfig);

@@ -11,3 +11,3 @@ {

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

@@ -52,7 +52,7 @@ "contributors": [

"dependencies": {
"archiver": "~0.11.0",
"archiver": "~0.12.0",
"async": "~0.9.0",
"lodash": "~2.4.1",
"q": "~1.0.1",
"request": "~2.45.0",
"request": "~2.46.0",
"underscore.string": "~2.3.3",

@@ -67,3 +67,3 @@ "vargs": "~0.1.0"

"dox": "~0.5.1",
"express": "~4.9.2",
"express": "~4.10.0",
"gulp": "~3.8.1",

@@ -77,3 +77,3 @@ "gulp-jshint": "~1.8.4",

"jshint-stylish": "~1.0.0",
"mocha": "~1.21.4",
"mocha": "~2.0.1",
"mu2": "~0.5.20",

@@ -80,0 +80,0 @@ "nock": "~0.48.0",

@@ -45,4 +45,6 @@ var nock = require('nock');

console.log(typeof requestBody);
console.log(requestBody);
should.not.exist(requestBody.desiredCapabilities.javascriptEnabled);
console.log(requestBody);
should.not.exist(requestBody.desiredCapabilities.javascriptEnabled);
should.not.exist(requestBody.desiredCapabilities.wdNoDefaults);
should.not.exist(requestBody.desiredCapabilities['no-defaults']);
done();

@@ -62,4 +64,6 @@ return "*";

test('deviceName');
test('wd-no-defaults');
test('wdNoDefaults');
});
});
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