@wdio/runner
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -113,3 +113,3 @@ "use strict"; | ||
log.debug('init remote session'); | ||
config.capabilities = capabilities.map(sanitizeCaps); | ||
config.capabilities = sanitizeCaps(capabilities); | ||
return (0, _webdriverio.remote)(config); | ||
@@ -133,2 +133,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJsb2ciLCJNRVJHRV9PUFRJT05TIiwiY2xvbmUiLCJydW5Ib29rIiwiaG9va05hbWUiLCJjb25maWciLCJjYXBzIiwic3BlY3MiLCJjYXRjaEZuIiwiZSIsImVycm9yIiwic3RhY2siLCJQcm9taXNlIiwiYWxsIiwibWFwIiwiaG9vayIsImNhdGNoIiwiaW5pdGlhbGlzZVNlcnZpY2VzIiwiaW5pdGlhbGlzZWRTZXJ2aWNlcyIsIkFycmF5IiwiaXNBcnJheSIsInNlcnZpY2VzIiwic2VydmljZU5hbWUiLCJkZWJ1ZyIsInB1c2giLCJTZXJ2aWNlIiwic2FuaXRpemVDYXBzIiwiT2JqZWN0Iiwia2V5cyIsImZpbHRlciIsImtleSIsIkRFRkFVTFRfQ09ORklHUyIsImluY2x1ZGVzIiwicmVkdWNlIiwib2JqIiwiaW5pdGlhbGlzZUluc3RhbmNlIiwiY2FwYWJpbGl0aWVzIiwiaXNNdWx0aXJlbW90ZSIsInNlc3Npb25JZCIsIm9wdGlvbnMiLCJicm93c2VyTmFtZSIsImJyb3dzZXIiLCJnbG9iYWwiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBOztBQUNBOztBQUNBOztBQUNBOzs7Ozs7OztBQUVBLE1BQU1BLEdBQUcsR0FBRyxxQkFBTyx5QkFBUCxDQUFaO0FBRUEsTUFBTUMsYUFBYSxHQUFHO0FBQUVDLEVBQUFBLEtBQUssRUFBRTtBQUUvQjs7O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l0aWVzXG4gICAgICAgIH0pXG4gICAgfVxuXG4gICAgaWYgKCFpc011bHRpcmVtb3RlKSB7XG4gICAgICAgIGxvZy5kZWJ1ZygnaW5pdCByZW1vdGUgc2Vzc2lvbicpXG4gICAgICAgIGNvbmZpZy5jYXBhYmlsaXRpZXMgPSBjYXBhYmlsaXRpZXMubWFwKHNhbml0aXplQ2FwcylcbiAgICAgICAgcmV0dXJuIHJlbW90ZShjb25maWcpXG4gICAgfVxuXG4gICAgY29uc3Qgb3B0aW9ucyA9IHt9XG4gICAgbG9nLmRlYnVnKCdpbml0IG11bHRpcmVtb3RlIHNlc3Npb24nKVxuICAgIGZvciAobGV0IGJyb3dzZXJOYW1lIG9mIE9iamVjdC5rZXlzKGNhcGFiaWxpdGllcykpIHtcbiAgICAgICAgb3B0aW9uc1ticm93c2VyTmFtZV0gPSBtZXJnZShjb25maWcsIGNhcGFiaWxpdGllc1ticm93c2VyTmFtZV0sIE1FUkdFX09QVElPTlMpXG4gICAgfVxuXG4gICAgY29uc3QgYnJvd3NlciA9IGF3YWl0IG11bHRpcmVtb3RlKG9wdGlvbnMpXG4gICAgZm9yIChsZXQgYnJvd3Nlck5hbWUgb2YgT2JqZWN0LmtleXMoY2FwYWJpbGl0aWVzKSkge1xuICAgICAgICBnbG9iYWxbYnJvd3Nlck5hbWVdID0gYnJvd3Nlclticm93c2VyTmFtZV1cbiAgICB9XG5cbiAgICByZXR1cm4gYnJvd3NlclxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJsb2ciLCJNRVJHRV9PUFRJT05TIiwiY2xvbmUiLCJydW5Ib29rIiwiaG9va05hbWUiLCJjb25maWciLCJjYXBzIiwic3BlY3MiLCJjYXRjaEZuIiwiZSIsImVycm9yIiwic3RhY2siLCJQcm9taXNlIiwiYWxsIiwibWFwIiwiaG9vayIsImNhdG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VyTmFtZV0sIE1FUkdFX09QVElPTlMpXG4gICAgfVxuXG4gICAgY29uc3QgYnJvd3NlciA9IGF3YWl0IG11bHRpcmVtb3RlKG9wdGlvbnMpXG4gICAgZm9yIChsZXQgYnJvd3Nlck5hbWUgb2YgT2JqZWN0LmtleXMoY2FwYWJpbGl0aWVzKSkge1xuICAgICAgICBnbG9iYWxbYnJvd3Nlck5hbWVdID0gYnJvd3Nlclticm93c2VyTmFtZV1cbiAgICB9XG5cbiAgICByZXR1cm4gYnJvd3NlclxufVxuIl19 |
{ | ||
"name": "@wdio/runner", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "A WebdriverIO service that runs tests in arbitrary environments", | ||
@@ -42,3 +42,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "e3acd52cfed2db63f2eb90143c0d6798ad2405f2" | ||
"gitHead": "062c99b462b955750e280d6abeccde0efa7a8e8a" | ||
} |
67871