@wdio/config
Advanced tools
Comparing version 5.0.0-beta.8 to 5.0.0-beta.9
@@ -84,3 +84,3 @@ "use strict"; | ||
try { | ||
return require(name).default; | ||
return require(name); | ||
} catch (e) { | ||
@@ -102,3 +102,3 @@ if (!e.message.match(`Cannot find module '${name}'`)) { | ||
function initialisePlugin(name, type, pkgPath = '') { | ||
function initialisePlugin(name, type, target = 'default') { | ||
/** | ||
@@ -108,3 +108,4 @@ * directly import packages that are scoped | ||
if (name[0] === '@') { | ||
return safeRequire(name); | ||
const service = safeRequire(name); | ||
return service[target]; | ||
} | ||
@@ -116,6 +117,6 @@ /** | ||
const scopedPlugin = safeRequire(`@wdio/${name.toLowerCase()}-${type}${pkgPath}`); | ||
const scopedPlugin = safeRequire(`@wdio/${name.toLowerCase()}-${type}`); | ||
if (scopedPlugin) { | ||
return scopedPlugin; | ||
return scopedPlugin[target]; | ||
} | ||
@@ -127,6 +128,6 @@ /** | ||
const plugin = safeRequire(`wdio-${name.toLowerCase()}-${type}${pkgPath}`); | ||
const plugin = safeRequire(`wdio-${name.toLowerCase()}-${type}`); | ||
if (plugin) { | ||
return plugin; | ||
return plugin[target]; | ||
} | ||
@@ -182,2 +183,2 @@ | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJERUZBVUxUX0hPU1ROQU1FIiwiREVGQVVMVF9QT1JUIiwiREVGQVVMVF9QUk9UT0NPTCIsImRldGVjdEJhY2tlbmQiLCJvcHRpb25zIiwicG9ydCIsImhvc3RuYW1lIiwidXNlciIsImtleSIsInByb3RvY29sIiwibGVuZ3RoIiwic2FmZVJlcXVpcmUiLCJuYW1lIiwicmVxdWlyZSIsImRlZmF1bHQiLCJlIiwibWVzc2FnZSIsIm1hdGNoIiwiRXJyb3IiLCJzdGFjayIsImluaXRpYWxpc2VQbHVnaW4iLCJ0eXBlIiwicGtnUGF0aCI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aWYgKHR5cGVvZiBvcHRpb25zW25hbWVdICE9PSAndW5kZWZpbmVkJykge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiBleHBlY3RlZE9wdGlvbi50eXBlID09PSAnc3RyaW5nJyAmJiB0eXBlb2Ygb3B0aW9uc1tuYW1lXSAhPT0gZXhwZWN0ZWRPcHRpb24udHlwZSkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgRXhwZWN0ZWQgb3B0aW9uIFwiJHtuYW1lfVwiIHRvIGJlIHR5cGUgb2YgJHtleHBlY3RlZE9wdGlvbi50eXBlfSBidXQgd2FzICR7dHlwZW9mIG9wdGlvbnNbbmFtZV19YClcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHR5cGVvZiBleHBlY3RlZE9wdGlvbi50eXBlID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgICAgZXhwZWN0ZWRPcHRpb24udHlwZShvcHRpb25zW25hbWVdKVxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBUeXBlIGNoZWNrIGZvciBvcHRpb24gXCIke25hbWV9XCIgZmFpbGVkOiAke2UubWVzc2FnZX1gKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKGV4cGVjdGVkT3B0aW9uLm1hdGNoICYmICFvcHRpb25zW25hbWVdLm1hdGNoKGV4cGVjdGVkT3B0aW9uLm1hdGNoKSkge1xuICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgT3B0aW9uIFwiJHtuYW1lfVwiIGRvZXNuJ3QgbWF0Y2ggZXhwZWN0ZWQgdmFsdWVzOiAke2V4cGVjdGVkT3B0aW9uLm1hdGNofWApXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHBhcmFtc1tuYW1lXSA9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T0gJ2Z1bmN0aW9uJykge1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgIGV4cGVjdGVkT3B0aW9uLnR5cGUob3B0aW9uc1tuYW1lXSlcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgVHlwZSBjaGVjayBmb3Igb3B0aW9uIFwiJHtuYW1lfVwiIGZhaWxlZDogJHtlLm1lc3NhZ2V9YClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChleHBlY3RlZE9wdGlvbi5tYXRjaCAmJiAhb3B0aW9uc1tuYW1lXS5tYXRjaChleHBlY3RlZE9wdGlvbi5tYXRjaCkpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYE9wdGlvbiBcIiR7bmFtZX1cIiBkb2Vzbid0IG1hdGNoIGV4cGVjdGVkIHZhbHVlczogJHtleHBlY3RlZE9wdGlvbi5tYXRjaH1gKVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBwYXJhbXNbbmFtZV0gPSBvcHRpb25zW25hbWVdXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gcGFyYW1zXG59XG4iXX0= |
{ | ||
"name": "@wdio/config", | ||
"version": "5.0.0-beta.8", | ||
"version": "5.0.0-beta.9", | ||
"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.8", | ||
"@wdio/logger": "^5.0.0-beta.9", | ||
"deepmerge": "^2.0.1", | ||
@@ -41,3 +41,3 @@ "glob": "^7.1.2" | ||
}, | ||
"gitHead": "d7158f71004b7e76f376a64ec3553848104b4627" | ||
"gitHead": "7c5bd34bc324a3efb3bf5f037e0191287b38a70e" | ||
} |
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
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
80550
589
Updated@wdio/logger@^5.0.0-beta.9