@wdio/utils
Advanced tools
Comparing version 5.11.0 to 5.11.1
@@ -16,10 +16,12 @@ "use strict"; | ||
try { | ||
return require(name); | ||
require.resolve(name); | ||
} catch (e) { | ||
if (!e.message.match(`Cannot find module '${name}'`)) { | ||
throw new Error(`Couldn't initialise "${name}".\n${e.stack}`); | ||
} | ||
return null; | ||
} | ||
try { | ||
return require(name); | ||
} catch (e) { | ||
throw new Error(`Couldn't initialise "${name}".\n${e.stack}`); | ||
} | ||
} | ||
@@ -26,0 +28,0 @@ /** |
{ | ||
"name": "@wdio/utils", | ||
"version": "5.11.0", | ||
"version": "5.11.1", | ||
"description": "A WDIO helper utility to provide several utility functions used across the project.", | ||
@@ -40,3 +40,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "f235de6d9876a1a81bc1007430346d493ba7f579" | ||
"gitHead": "faed934ef001db6fe49331147cea70d377b0c2e3" | ||
} |
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
132
5761
2