Comparing version 1.1.4 to 1.2.0-beta
{ | ||
"name": "guacamole", | ||
"version": "1.1.4", | ||
"version": "1.2.0-beta", | ||
"description": "A friendly wrapper for the SauceLabs browser listing API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -184,3 +184,21 @@ var Q = require("q"); | ||
} | ||
// clean up capabilities here, only deal with saucelabs wrap here | ||
if (wrapped) { | ||
if(result.desiredCapabilities['appiumVersion'] || result.desiredCapabilities['appium-version']){ | ||
// if using appium, use safari as browser for iOS | ||
if(result.desiredCapabilities.platformName === 'iOS'){ | ||
result.desiredCapabilities.browserName = 'Safari'; | ||
} | ||
}else{ | ||
if(result.desiredCapabilities.platform === 'iOS'){ | ||
// iOS is not platform name, use OS X 10.10 instead | ||
result.desiredCapabilities.platform = 'OS X 10.10'; | ||
}else if(result.desiredCapabilities.platform === 'Android'){ | ||
// Android is not platform name, use linux instead | ||
result.desiredCapabilities.platform = 'Linux'; | ||
} | ||
} | ||
} | ||
return result; | ||
@@ -187,0 +205,0 @@ }); |
@@ -46,3 +46,3 @@ var Browsers = require("../src/browsers"); | ||
expect(chrome43).to.have.property("platform", "Windows 2012 R2"); | ||
expect(chrome43).to.have.property("version", "43"); | ||
expect(chrome43).to.have.property("version", "46"); | ||
expect(chrome43).to.have.property("browserName", "chrome"); | ||
@@ -49,0 +49,0 @@ }); |
@@ -28,3 +28,3 @@ var Browsers = require("../src/browsers"); | ||
var result = Browsers.get({ platform: "Windows XP" }); | ||
expect(result).to.have.length(65); | ||
expect(result).to.have.length(68); | ||
}); | ||
@@ -34,3 +34,3 @@ | ||
var result = Browsers.get({ platform: "Windows 7" }); | ||
expect(result).to.have.length(67); | ||
expect(result).to.have.length(70); | ||
}); | ||
@@ -40,3 +40,3 @@ | ||
var result = Browsers.get({ platform: "Windows 8" }); | ||
expect(result).to.have.length(61); | ||
expect(result).to.have.length(64); | ||
}); | ||
@@ -46,3 +46,3 @@ | ||
var result = Browsers.get({ platform: "Windows 8.1" }); | ||
expect(result).to.have.length(61); | ||
expect(result).to.have.length(64); | ||
}); | ||
@@ -49,0 +49,0 @@ |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
19
29884
0
897198
1
7