@d-fischer/logger
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -1,7 +0,5 @@ | ||
import type { Logger as ILogger } from './Logger'; | ||
import type { LoggerOptions } from './LoggerOptions'; | ||
declare const Logger: new (options: LoggerOptions) => ILogger; | ||
declare type Logger = ILogger; | ||
export { Logger }; | ||
export { Logger } from './Logger'; | ||
export type { LoggerOptions } from './LoggerOptions'; | ||
export { LogLevel } from './LogLevel'; | ||
export type { LoggerOptions }; | ||
export type { LoggerOptionsOrCustom } from './CustomLogger'; | ||
export { createLogger } from './CustomLogger'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LogLevel = exports.Logger = void 0; | ||
exports.createLogger = exports.LogLevel = exports.Logger = void 0; | ||
/* eslint-disable filenames/match-exported */ | ||
var isNode = require("detect-node"); | ||
var NodeLogger_1 = require("./NodeLogger"); | ||
var BrowserLogger_1 = require("./BrowserLogger"); | ||
var Logger = isNode ? NodeLogger_1.NodeLogger : BrowserLogger_1.BrowserLogger; | ||
exports.Logger = Logger; | ||
var Logger_1 = require("./Logger"); | ||
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_1.Logger; } }); | ||
var LogLevel_1 = require("./LogLevel"); | ||
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return LogLevel_1.LogLevel; } }); | ||
var CustomLogger_1 = require("./CustomLogger"); | ||
Object.defineProperty(exports, "createLogger", { enumerable: true, get: function () { return CustomLogger_1.createLogger; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -0,1 +1,2 @@ | ||
import type { LoggerOptions } from './LoggerOptions'; | ||
import type { LogLevel } from './LogLevel'; | ||
@@ -11,1 +12,2 @@ export interface Logger { | ||
} | ||
export declare const Logger: new (options: LoggerOptions) => Logger; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Logger = void 0; | ||
var isNode = require("detect-node"); | ||
var BrowserLogger_1 = require("./BrowserLogger"); | ||
var NodeLogger_1 = require("./NodeLogger"); | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
exports.Logger = isNode ? NodeLogger_1.NodeLogger : BrowserLogger_1.BrowserLogger; | ||
//# sourceMappingURL=Logger.js.map |
{ | ||
"name": "@d-fischer/logger", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "A simple logger for Node and the browser.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
39455
42
535