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

@wdio/config

Package Overview
Dependencies
Maintainers
7
Versions
333
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 6.0.0-alpha.0 to 6.0.0-alpha.1

7

build/constants.js

@@ -8,3 +8,4 @@ "use strict";

const DEFAULT_TIMEOUT = 10000;
const DEFAULT_CONFIGS = {
const DEFAULT_CONFIGS = () => ({
specs: [],

@@ -26,2 +27,3 @@ suites: {},

filesToWatch: [],
connectionRetryTimeout: 90000,
connectionRetryCount: 3,

@@ -64,3 +66,4 @@ execArgv: [],

afterFeature: []
};
});
exports.DEFAULT_CONFIGS = DEFAULT_CONFIGS;

@@ -67,0 +70,0 @@ const SUPPORTED_HOOKS = ['before', 'beforeSession', 'beforeSuite', 'beforeHook', 'beforeTest', 'beforeCommand', 'afterCommand', 'afterTest', 'afterHook', 'afterSuite', 'afterSession', 'after', 'beforeFeature', 'beforeScenario', 'beforeStep', 'afterStep', 'afterScenario', 'afterFeature', 'onReload', 'onPrepare', 'onComplete'];

@@ -31,3 +31,3 @@ "use strict";

constructor() {
this._config = _constants.DEFAULT_CONFIGS;
this._config = (0, _constants.DEFAULT_CONFIGS)();
this._capabilities = [];

@@ -34,0 +34,0 @@ }

@@ -14,2 +14,4 @@ "use strict";

const DEFAULT_PROTOCOL = 'http';
const DEFAULT_PATH = '/';
const LEGACY_PATH = '/wd/hub';
const REGION_MAPPING = {

@@ -55,3 +57,4 @@ 'us': '',

region,
headless
headless,
path
} = options;

@@ -63,3 +66,4 @@

hostname: hostname || 'hub-cloud.browserstack.com',
port: port || 443
port: port || 443,
path: path || LEGACY_PATH
};

@@ -70,5 +74,6 @@ }

return {
protocol: protocol || DEFAULT_PROTOCOL,
protocol: protocol || 'https',
hostname: hostname || 'hub.testingbot.com',
port: port || 80
port: port || 443,
path: path || LEGACY_PATH
};

@@ -82,3 +87,4 @@ }

hostname: hostname || getSauceEndpoint(sauceRegion, isRDC),
port: port || 443
port: port || 443,
path: path || LEGACY_PATH
};

@@ -94,3 +100,4 @@ }

port: port || DEFAULT_PORT,
protocol: protocol || DEFAULT_PROTOCOL
protocol: protocol || DEFAULT_PROTOCOL,
path: path || DEFAULT_PATH
};

@@ -97,0 +104,0 @@ }

{
"name": "@wdio/config",
"version": "6.0.0-alpha.0",
"version": "6.0.0-alpha.1",
"description": "A helper utility to parse and validate WebdriverIO options",

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

},
"gitHead": "834043765c1a803f3f6e784ca4599b02e92c6f5e"
"gitHead": "1b11d192fa30cd92724a21e3febbf40b9e5b3ba2"
}
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