@libp2p/logger
Advanced tools
Comparing version 1.0.4 to 1.1.0
export interface Logger { | ||
(formatter: any, ...args: any[]): void; | ||
error: (formatter: any, ...args: any[]) => void; | ||
trace: (formatter: any, ...args: any[]) => void; | ||
enabled: boolean; | ||
@@ -5,0 +6,0 @@ } |
@@ -26,5 +26,6 @@ import debug from 'debug'; | ||
return Object.assign(debug(name), { | ||
error: debug(`${name}:error`) | ||
error: debug(`${name}:error`), | ||
trace: debug(`${name}:trace`) | ||
}); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@libp2p/logger", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A logging component for use in js-libp2p components", | ||
@@ -135,3 +135,3 @@ "license": "Apache-2.0 OR MIT", | ||
"dependencies": { | ||
"@libp2p/interfaces": "^1.0.0", | ||
"@libp2p/interfaces": "^1.3.6", | ||
"debug": "^4.3.3", | ||
@@ -138,0 +138,0 @@ "interface-datastore": "^6.1.0", |
@@ -36,2 +36,3 @@ import debug from 'debug' | ||
error: (formatter: any, ...args: any[]) => void | ||
trace: (formatter: any, ...args: any[]) => void | ||
enabled: boolean | ||
@@ -42,4 +43,5 @@ } | ||
return Object.assign(debug(name), { | ||
error: debug(`${name}:error`) | ||
error: debug(`${name}:error`), | ||
trace: debug(`${name}:trace`) | ||
}) | ||
} |
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
9172
74
Updated@libp2p/interfaces@^1.3.6