Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@d-fischer/logger

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@d-fischer/logger - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

4

lib/BaseLogger.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc