@wdio/logger
Advanced tools
Comparing version 5.2.8 to 5.4.1
@@ -10,4 +10,10 @@ "use strict"; | ||
return ['error', 'warn', 'info', 'debug', 'trace', 'silent'].reduce((acc, cur) => { | ||
// check if the method is available on console (web doesn't have | ||
// 'silent', for example) before adding to acc | ||
// eslint-disable-next-line no-console | ||
acc[cur] = console[cur].bind(console, `${component}:`); | ||
if (console[cur]) { | ||
// eslint-disable-next-line no-console | ||
acc[cur] = console[cur].bind(console, `${component}:`); | ||
} | ||
return acc; | ||
@@ -14,0 +20,0 @@ }, {}); |
{ | ||
"name": "@wdio/logger", | ||
"version": "5.2.8", | ||
"version": "5.4.1", | ||
"description": "A helper utility for logging of WebdriverIO packages", | ||
@@ -41,3 +41,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "5750a9ba4050ddf9a3b310734700d606782432e9" | ||
"gitHead": "7e099b188e163f06dfa4c7be21f0468477e2fe94" | ||
} |
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
5869
124