Socket
Socket
Sign inDemoInstall

saucelabs

Package Overview
Dependencies
Maintainers
4
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saucelabs - npm Package Compare versions

Comparing version 2.1.4 to 2.1.6

2

build/index.js

@@ -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');
}

9

package.json
{
"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",

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