Comparing version 1.13.1 to 1.13.3
@@ -12,2 +12,3 @@ /*! | ||
import { VERSION } from './config.js'; | ||
import type { Loggable } from './loggable.js'; | ||
declare type LogLevelTitle = 'ERR' | 'WARN' | 'INFO' | 'VERB' | 'SILL'; | ||
@@ -24,9 +25,2 @@ declare type TextPrinterFunction = (title: string, text?: string) => void; | ||
declare type LogLevelName = keyof typeof LogLevel; | ||
interface Loggable { | ||
error(moduleName: string, message: string, ...args: any[]): void; | ||
warn(moduleName: string, message: string, ...args: any[]): void; | ||
info(moduleName: string, message: string, ...args: any[]): void; | ||
verbose(moduleName: string, message: string, ...args: any[]): void; | ||
silly(moduleName: string, message: string, ...args: any[]): void; | ||
} | ||
declare class Brolog implements Loggable { | ||
@@ -33,0 +27,0 @@ private static globalInstance?; |
import { VERSION } from './config.js'; | ||
import { Brolog, log } from './brolog.js'; | ||
import type { Loggable } from './brolog.js'; | ||
import type { Loggable } from './loggable.js'; | ||
import { getLoggable } from './loggable.js'; | ||
export type { Loggable, }; | ||
export { VERSION, Brolog, log, }; | ||
export { VERSION, Brolog, getLoggable, log, }; | ||
//# sourceMappingURL=mod.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.log = exports.Brolog = exports.VERSION = void 0; | ||
exports.log = exports.getLoggable = exports.Brolog = exports.VERSION = void 0; | ||
const config_js_1 = require("./config.js"); | ||
@@ -9,2 +9,4 @@ Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return config_js_1.VERSION; } }); | ||
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return brolog_js_1.log; } }); | ||
const loggable_js_1 = require("./loggable.js"); | ||
Object.defineProperty(exports, "getLoggable", { enumerable: true, get: function () { return loggable_js_1.getLoggable; } }); | ||
//# sourceMappingURL=mod.js.map |
@@ -12,2 +12,3 @@ /*! | ||
import { VERSION } from './config.js'; | ||
import type { Loggable } from './loggable.js'; | ||
declare type LogLevelTitle = 'ERR' | 'WARN' | 'INFO' | 'VERB' | 'SILL'; | ||
@@ -24,9 +25,2 @@ declare type TextPrinterFunction = (title: string, text?: string) => void; | ||
declare type LogLevelName = keyof typeof LogLevel; | ||
interface Loggable { | ||
error(moduleName: string, message: string, ...args: any[]): void; | ||
warn(moduleName: string, message: string, ...args: any[]): void; | ||
info(moduleName: string, message: string, ...args: any[]): void; | ||
verbose(moduleName: string, message: string, ...args: any[]): void; | ||
silly(moduleName: string, message: string, ...args: any[]): void; | ||
} | ||
declare class Brolog implements Loggable { | ||
@@ -33,0 +27,0 @@ private static globalInstance?; |
import { VERSION } from './config.js'; | ||
import { Brolog, log } from './brolog.js'; | ||
import type { Loggable } from './brolog.js'; | ||
import type { Loggable } from './loggable.js'; | ||
import { getLoggable } from './loggable.js'; | ||
export type { Loggable, }; | ||
export { VERSION, Brolog, log, }; | ||
export { VERSION, Brolog, getLoggable, log, }; | ||
//# sourceMappingURL=mod.d.ts.map |
import { VERSION, } from './config.js'; | ||
import { Brolog, log, } from './brolog.js'; | ||
export { VERSION, Brolog, log, }; | ||
import { getLoggable, } from './loggable.js'; | ||
export { VERSION, Brolog, getLoggable, log, }; | ||
//# sourceMappingURL=mod.js.map |
{ | ||
"name": "brolog", | ||
"version": "1.13.1", | ||
"version": "1.13.3", | ||
"description": "Npmlog like logger for Browser", | ||
@@ -48,3 +48,5 @@ "type": "module", | ||
"homepage": "https://github.com/huan/brolog#readme", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"nop": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -51,0 +53,0 @@ "@chatie/eslint-config": "^1.0.2", |
@@ -18,2 +18,6 @@ /* eslint-disable no-console */ | ||
import type { | ||
Loggable, | ||
} from './loggable.js' | ||
type LogLevelTitle = | ||
@@ -39,10 +43,2 @@ | 'ERR' | ||
interface Loggable { | ||
error (moduleName: string, message: string, ...args: any[]): void | ||
warn (moduleName: string, message: string, ...args: any[]): void | ||
info (moduleName: string, message: string, ...args: any[]): void | ||
verbose (moduleName: string, message: string, ...args: any[]): void | ||
silly (moduleName: string, message: string, ...args: any[]): void | ||
} | ||
class Brolog implements Loggable { | ||
@@ -49,0 +45,0 @@ |
@@ -10,3 +10,6 @@ import { | ||
Loggable, | ||
} from './brolog.js' | ||
} from './loggable.js' | ||
import { | ||
getLoggable, | ||
} from './loggable.js' | ||
@@ -19,3 +22,4 @@ export type { | ||
Brolog, | ||
getLoggable, | ||
log, | ||
} |
@@ -5,1 +5,2 @@ // declare module '*/package.json' { | ||
// } | ||
declare module 'nop' |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
172512
76
2470
0
1
+ Addednop@^1.0.0
+ Addednop@1.0.0(transitive)