Comparing version 0.3.9 to 0.3.10
@@ -5,2 +5,5 @@ # Release Notes | ||
### 0.3.9 | ||
- package upgrade | ||
### 0.3.8 | ||
@@ -7,0 +10,0 @@ - added unlockDevice method |
@@ -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'); | ||
}); | ||
}); | ||
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
712562
13570
+ Addedarchiver@0.12.0(transitive)
+ Addedglob@4.0.6(transitive)
+ Addedgraceful-fs@3.0.12(transitive)
+ Addedminimatch@1.0.0(transitive)
+ Addednatives@1.1.6(transitive)
+ Addedrequest@2.46.0(transitive)
+ Addedtar-stream@1.0.2(transitive)
- Removedarchiver@0.11.0(transitive)
- Removedglob@3.2.11(transitive)
- Removedminimatch@0.3.0(transitive)
- Removedrequest@2.45.0(transitive)
- Removedtar-stream@0.4.7(transitive)
Updatedarchiver@~0.12.0
Updatedrequest@~2.46.0