@d-fischer/logger
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -5,3 +5,3 @@ "use strict"; | ||
var shared_utils_1 = require("@d-fischer/shared-utils"); | ||
var isNode = require("detect-node"); | ||
var detect_node_1 = require("@d-fischer/detect-node"); | ||
var getMinLogLevelFromEnv_1 = require("./getMinLogLevelFromEnv"); | ||
@@ -11,3 +11,3 @@ var LogLevel_1 = require("./LogLevel"); | ||
function BaseLogger(_a) { | ||
var name = _a.name, minLevel = _a.minLevel, _b = _a.emoji, emoji = _b === void 0 ? false : _b, colors = _a.colors, _c = _a.timestamps, timestamps = _c === void 0 ? isNode : _c; | ||
var name = _a.name, minLevel = _a.minLevel, _b = _a.emoji, emoji = _b === void 0 ? false : _b, colors = _a.colors, _c = _a.timestamps, timestamps = _c === void 0 ? detect_node_1.isNode : _c; | ||
var _d, _e; | ||
@@ -14,0 +14,0 @@ this._name = name; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createLogger = void 0; | ||
var isNode = require("detect-node"); | ||
var detect_node_1 = require("@d-fischer/detect-node"); | ||
var BrowserLogger_1 = require("./BrowserLogger"); | ||
@@ -12,3 +12,3 @@ var CustomLoggerWrapper_1 = require("./CustomLoggerWrapper"); | ||
} | ||
if (isNode) { | ||
if (detect_node_1.isNode) { | ||
return new NodeLogger_1.NodeLogger(options); | ||
@@ -15,0 +15,0 @@ } |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.LogLevelToConsoleFunction = exports.resolveLogLevel = exports.LogLevel = void 0; | ||
var isNode = require("detect-node"); | ||
var detect_node_1 = require("@d-fischer/detect-node"); | ||
var LogLevel; | ||
@@ -39,3 +39,3 @@ (function (LogLevel) { | ||
// Node 8+ defines console.debug as noop, and earlier versions don't define it at all | ||
var debugFunction = isNode ? console.log.bind(console) : console.debug.bind(console); | ||
var debugFunction = detect_node_1.isNode ? console.log.bind(console) : console.debug.bind(console); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -42,0 +42,0 @@ exports.LogLevelToConsoleFunction = (_a = {}, |
{ | ||
"name": "@d-fischer/logger", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A simple logger for Node and the browser.", | ||
@@ -19,4 +19,4 @@ "main": "lib", | ||
"dependencies": { | ||
"@d-fischer/detect-node": "^3.0.1", | ||
"@d-fischer/shared-utils": "^3.2.0", | ||
"detect-node": "^2.0.4", | ||
"tslib": "^2.0.3" | ||
@@ -23,0 +23,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
58898
+ Added@d-fischer/detect-node@3.0.1(transitive)
- Removeddetect-node@^2.0.4
- Removeddetect-node@2.1.0(transitive)