saucelabs
Advanced tools
Comparing version 2.1.4 to 2.1.6
@@ -181,2 +181,3 @@ "use strict"; | ||
auth: this._auth, | ||
strictSSL: (0, _utils.getStrictSsl)(), | ||
useQuerystring: true | ||
@@ -214,2 +215,3 @@ }, (err, response, body) => { | ||
method: 'GET', | ||
strictSSL: (0, _utils.getStrictSsl)(), | ||
uri: `${host}/jobs/${jobId}/${assetName}?ts=${Date.now()}&auth=${hmac}` | ||
@@ -216,0 +218,0 @@ }, (err, res, body) => { |
@@ -12,2 +12,3 @@ "use strict"; | ||
exports.getErrorReason = getErrorReason; | ||
exports.getStrictSsl = getStrictSsl; | ||
@@ -151,2 +152,11 @@ var _crypto = _interopRequireDefault(require("crypto")); | ||
return body.message || body.detail || 'unknown'; | ||
} | ||
/** | ||
* If the environment variable "STRICT_SSL" is defined as "false", it doesn't require SSL certificates to be valid. | ||
* This is used in requests to define the value of the "strictSSL" option. | ||
*/ | ||
function getStrictSsl() { | ||
return !(process.env.STRICT_SSL === 'false' || process.env.strict_ssl === 'false'); | ||
} |
{ | ||
"name": "saucelabs", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"author": "Christian Bromann <christian@saucelabs.com>", | ||
@@ -26,6 +26,7 @@ "description": "A wrapper around Sauce Labs REST API", | ||
"generate:docs": "babel-node ./scripts/generate-docs", | ||
"prepublishOnly": "NODE_ENV=production run-s build", | ||
"release": "npm run release:patch", | ||
"release:patch": "NODE_ENV=production np patch", | ||
"release:minor": "NODE_ENV=production np minor", | ||
"release:major": "NODE_ENV=production np major", | ||
"release:patch": "np patch", | ||
"release:minor": "np minor", | ||
"release:major": "np major", | ||
"test": "run-s eslint test:unit", | ||
@@ -32,0 +33,0 @@ "test:unit": "jest --coverage", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
215970
6438
5