Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/config

Package Overview
Dependencies
Maintainers
3
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/config - npm Package Compare versions

Comparing version 5.0.0-beta.10 to 5.0.0-beta.12

wdio-config-5.0.0-beta.11.tgz

8

build/index.js

@@ -18,2 +18,8 @@ "use strict";

});
Object.defineProperty(exports, "getSauceEndpoint", {
enumerable: true,
get: function () {
return _utils.getSauceEndpoint;
}
});
Object.defineProperty(exports, "detectBackend", {

@@ -71,2 +77,2 @@ enumerable: true,

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUNBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IENvbmZpZ1BhcnNlciBmcm9tICcuL2xpYi9Db25maWdQYXJzZXInXG5pbXBvcnQgeyB2YWxpZGF0ZUNvbmZpZywgZGV0ZWN0QmFja2VuZCwgaW5pdGlhbGlzZVBsdWdpbiB9IGZyb20gJy4vdXRpbHMnXG5pbXBvcnQge1xuICAgIHdyYXBDb21tYW5kLCBydW5GbkluRmliZXJDb250ZXh0LCBydW5UZXN0SW5GaWJlckNvbnRleHQsIGV4ZWN1dGVIb29rc1dpdGhBcmdzLFxuICAgIGhhc1dkaW9TeW5jU3VwcG9ydFxufSBmcm9tICcuL3NoaW0nXG5cbmV4cG9ydCB7XG4gICAgdmFsaWRhdGVDb25maWcsXG4gICAgZGV0ZWN0QmFja2Vu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uZmlnUGFyc2VyLFxuXG4gICAgLyoqXG4gICAgICogd2Rpby1zeW5jIHNoaW1cbiAgICAgKi9cbiAgICB3cmFwQ29tbWFuZCxcbiAgICBydW5GbkluRmliZXJDb250ZXh0LFxuICAgIHJ1blRlc3RJbkZpYmVyQ29udGV4dCxcbiAgICBleGVjdXRlSG9va3NXaXRoQXJncyxcbiAgICBoYXNXZGlvU3luY1N1cHBvcnRcbn1cbiJdfQ==

@@ -6,2 +6,3 @@ "use strict";

});
exports.getSauceEndpoint = getSauceEndpoint;
exports.detectBackend = detectBackend;

@@ -16,2 +17,12 @@ exports.initialisePlugin = initialisePlugin;

const DEFAULT_PROTOCOL = 'http';
const REGION_MAPPING = {
'us': '',
// default endpoint
'eu': 'eu-central-1.'
};
function getSauceEndpoint(region) {
const dc = region ? typeof REGION_MAPPING[region] !== 'undefined' ? REGION_MAPPING[region] : region + '.' : '';
return `${dc}saucelabs.com`;
}
/**

@@ -21,2 +32,3 @@ * helper to detect the Selenium backend according to given capabilities

function detectBackend(options = {}) {

@@ -28,3 +40,4 @@ const {

key,
protocol
protocol,
region
} = options;

@@ -63,3 +76,3 @@ /**

protocol: protocol || 'https',
hostname: hostname || 'ondemand.saucelabs.com',
hostname: hostname || `ondemand.${getSauceEndpoint(region)}`,
port: port || 443

@@ -183,2 +196,2 @@ };

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJERUZBVUxUX0hPU1ROQU1FIiwiREVGQVVMVF9QT1JUIiwiREVGQVVMVF9QUk9UT0NPTCIsImRldGVjdEJhY2tlbmQiLCJvcHRpb25zIiwicG9ydCIsImhvc3RuYW1lIiwidXNlciIsImtleSIsInByb3RvY29sIiwibGVuZ3RoIiwic2FmZVJlcXVpcmUiLCJuYW1lIiwicmVxdWlyZSIsImUiLCJtZXNzYWdlIiwibWF0Y2giLCJFcnJvciIsInN0YW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WNrLmNvbScsXG4gICAgICAgICAgICBwb3J0OiA4MFxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogdGVzdGluZ2JvdFxuICAgICAqIGUuZy4gZWMzMzdkN2I2Nzc3MjBhNGRkZTdiZDcyYmUwYmZjNjdcbiAgICAgKi9cbiAgICBpZiAodHlwZW9mIHVzZXIgPT09ICdzdHJpbmcnICYmIGtleS5sZW5ndGggPT09IDMyKSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBob3N0bmFtZTogJ2h1Yi50ZXN0aW5nYm90LmNvbScsXG4gICAgICAgICAgICBwb3J0OiA4MFxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogU2F1Y2UgTGFic1xuICAgICAqIGUuZy4gNTBhYTE1MmMtMTkzMi1CMmYwLTk3MDctMTh6NDZxMm4xbWIwXG4gICAgICovXG4gICAgaWYgKHR5cGVvZiB1c2VyID09PSAnc3RyaW5nJyAmJiBrZXkubGVuZ3RoID09PSAzNikge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgcHJvdG9jb2w6IHByb3RvY29sIHx8ICdodHRwcycsXG4gICAgICAgICAgICBob3N0bmFtZTogaG9zdG5hbWUgfHwgJ29uZGVtYW5kLnNhdWNlbGFicy5jb20nLFxuICAgICAgICAgICAgcG9ydDogcG9ydCB8fCA0NDNcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIG5vIGNsb3VkIHByb3ZpZGVyIGRldGVjdGVkLCBmYWxsYmFjayB0byBsb2NhbCBicm93c2VyIGRyaXZlclxuICAgICAqL1xuICAgIHJldHVybiB7XG4gICAgICAgIGhvc3RuYW1lOiBob3N0bmFtZSB8fCBERUZBVUxUX0hPU1ROQU1FLFxuICAgICAgICBwb3J0OiBwb3J0IHx8IERFRkFVTFRfUE9SVCxcbiAgICAgICAgcHJvdG9jb2w6IHByb3RvY29sIHx8IERFRkFVTFRfUFJPVE9DT0xcbi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gYnV0IHdhcyAke3R5cGVvZiBvcHRpb25zW25hbWVdfWApXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICh0eXBlb2YgZXhwZWN0ZWRPcHRpb24udHlwZSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgIGV4cGVjdGVkT3B0aW9uLnR5cGUob3B0aW9uc1tuYW1lXSlcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgVHlwZSBjaGVjayBmb3Igb3B0aW9uIFwiJHtuYW1lfVwiIGZhaWxlZDogJHtlLm1lc3NhZ2V9YClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChleHBlY3RlZE9wdGlvbi5tYXRjaCAmJiAhb3B0aW9uc1tuYW1lXS5tYXRjaChleHBlY3RlZE9wdGlvbi5tYXRjaCkpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYE9wdGlvbiBcIiR7bmFtZX1cIiBkb2Vzbid0IG1hdGNoIGV4cGVjdGVkIHZhbHVlczogJHtleHBlY3RlZE9wdGlvbi5tYXRjaH1gKVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBwYXJhbXNbbmFtZV0gPSBvcHRpb25zW25hbWVdXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gcGFyYW1zXG59XG4iXX0=

6

package.json
{
"name": "@wdio/config",
"version": "5.0.0-beta.10",
"version": "5.0.0-beta.12",
"description": "A helper utility to parse and validate WebdriverIO options",

@@ -33,3 +33,3 @@ "author": "Christian Bromann <christian@saucelabs.com>",

"dependencies": {
"@wdio/logger": "^5.0.0-beta.10",
"@wdio/logger": "^5.0.0-beta.12",
"deepmerge": "^2.0.1",

@@ -41,3 +41,3 @@ "glob": "^7.1.2"

},
"gitHead": "6d5e90a29903eb5097377488de76701f0aa36aa4"
"gitHead": "f690f04cceebb45f695d8fff9d3fa6916654ee87"
}
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