logging-utils
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -126,3 +126,3 @@ 'use strict'; | ||
function isLoggingConfigured(target) { | ||
return isBoolean(target.warnEnabled) && isBoolean(target.infoEnabled) && isBoolean(target.debugEnabled) | ||
return target && isBoolean(target.warnEnabled) && isBoolean(target.infoEnabled) && isBoolean(target.debugEnabled) | ||
&& isBoolean(target.traceEnabled) && typeof target.error === 'function' && typeof target.warn === 'function' | ||
@@ -129,0 +129,0 @@ && typeof target.info === 'function' && typeof target.debug === 'function' && typeof target.trace === 'function'; |
{ | ||
"name": "logging-utils", | ||
"description": "Utilities for configuring simple log level based logging functionality on an object", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"author": "Byron du Preez", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
@@ -1,2 +0,2 @@ | ||
# logging-utils v4.0.5 | ||
# logging-utils v4.0.6 | ||
Utilities for configuring simple log level based logging functionality on an object. | ||
@@ -190,2 +190,5 @@ | ||
### 4.0.6 | ||
- Changed `isLoggingConfigured` function to check for non-defined `target` argument | ||
### 4.0.5 | ||
@@ -192,0 +195,0 @@ - Updated `core-functions` dependency to version 3.0.6 |
{ | ||
"name": "logging-utils-tests", | ||
"description": "Unit tests for logging-utils", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"author": "Byron du Preez", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
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
109394
329