@libp2p/logger
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -8,2 +8,5 @@ export interface Logger { | ||
export declare function logger(name: string): Logger; | ||
export declare function disable(): void; | ||
export declare function enable(namespaces: string): void; | ||
export declare function enabled(namespaces: string): boolean; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -35,2 +35,11 @@ import debug from 'debug'; | ||
} | ||
export function disable() { | ||
debug.disable(); | ||
} | ||
export function enable(namespaces) { | ||
debug.enable(namespaces); | ||
} | ||
export function enabled(namespaces) { | ||
return debug.enabled(namespaces); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@libp2p/logger", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A logging component for use in js-libp2p components", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -52,1 +52,13 @@ import debug from 'debug' | ||
} | ||
export function disable () { | ||
debug.disable() | ||
} | ||
export function enable (namespaces: string) { | ||
debug.enable(namespaces) | ||
} | ||
export function enabled (namespaces: string) { | ||
return debug.enabled(namespaces) | ||
} |
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
11130
105