@jalik/logger
Advanced tools
Comparing version 2.1.3 to 2.1.4
# Changelog | ||
## v2.1.4 | ||
- Fixes compatibility error `'log' called on an object that does not implement interface Console` | ||
## v2.1.3 | ||
@@ -4,0 +7,0 @@ - Updates dependencies |
@@ -57,3 +57,3 @@ "use strict"; | ||
// eslint-disable-next-line no-console | ||
console.debug = console.log; | ||
console.debug = console.log.bind(console); | ||
} // eslint-disable-next-line no-console | ||
@@ -64,3 +64,3 @@ | ||
// eslint-disable-next-line no-console | ||
console.error = console.log; | ||
console.error = console.log.bind(console); | ||
} // eslint-disable-next-line no-console | ||
@@ -71,3 +71,3 @@ | ||
// eslint-disable-next-line no-console | ||
console.info = console.log; | ||
console.info = console.log.bind(console); | ||
} // eslint-disable-next-line no-console | ||
@@ -78,3 +78,3 @@ | ||
// eslint-disable-next-line no-console | ||
console.warn = console.log; | ||
console.warn = console.log.bind(console); | ||
} | ||
@@ -205,4 +205,6 @@ } // Check logger name | ||
if (this.options.console.debug === true) { | ||
var _console; | ||
// eslint-disable-next-line no-console | ||
console.log.apply(this, args); | ||
(_console = console).log.apply(_console, args); | ||
} | ||
@@ -214,4 +216,6 @@ | ||
if (this.options.console.error === true) { | ||
var _console2; | ||
// eslint-disable-next-line no-console | ||
console.error.apply(this, args); | ||
(_console2 = console).error.apply(_console2, args); | ||
} | ||
@@ -223,4 +227,6 @@ | ||
if (this.options.console.info === true) { | ||
var _console3; | ||
// eslint-disable-next-line no-console | ||
console.info.apply(this, args); | ||
(_console3 = console).info.apply(_console3, args); | ||
} | ||
@@ -232,4 +238,6 @@ | ||
if (this.options.console.warning === true) { | ||
var _console4; | ||
// eslint-disable-next-line no-console | ||
console.warn.apply(this, args); | ||
(_console4 = console).warn.apply(_console4, args); | ||
} | ||
@@ -241,4 +249,6 @@ | ||
if (typeof this.options.console[type] === 'boolean' && this.options.console[type] === true || typeof this.options.console[type] !== 'boolean' && this.options.console.other === true) { | ||
var _console5; | ||
// eslint-disable-next-line no-console | ||
console.log.apply(this, args); | ||
(_console5 = console).log.apply(_console5, args); | ||
} | ||
@@ -245,0 +255,0 @@ |
{ | ||
"name": "@jalik/logger", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "A logging utility to log messages to anywhere.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
20213
318