@lskjs/log
Advanced tools
Comparing version 2.75.1 to 2.76.0
{ | ||
"name": "@lskjs/log", | ||
"version": "2.75.1", | ||
"version": "2.76.0", | ||
"description": "Логгер совмещающий лучшие черты debug, bunyan, logfmt/logrus, morgan/winston, ", | ||
@@ -55,3 +55,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "8eb9137a00c16e82b31dbc07b3cb3b1caeae1372" | ||
"gitHead": "0a6da8cc1b13ce792dc98b41b232d83a990ce664" | ||
} |
@@ -6,4 +6,4 @@ export declare const prettyPath: (url: string, defaultUrlPad?: number) => any; | ||
export declare const prettyMethod: (method: string) => string; | ||
export declare const prettyTime: (ms: number, format?: string) => string; | ||
export declare const prettySize: (bytes: number, seperator?: string) => string; | ||
export declare const prettyTime: (ms: number, format?: string) => string | null; | ||
export declare const prettySize: (bytes: number, seperator?: string) => string | null; | ||
export declare const prettyNs: (names: string[], mainName?: string | null | undefined) => string; | ||
@@ -10,0 +10,0 @@ export declare function prettyMarker(key: string | number): string; |
@@ -74,3 +74,3 @@ "use strict"; | ||
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
if (!Number.isFinite(ms)) return "".concat(ms); | ||
if (!Number.isFinite(ms)) return null; | ||
var colorName = ms >= 10 * 1000 ? 'error' : ms >= 3 * 1000 ? 'warn' : null; | ||
@@ -88,6 +88,5 @@ var formats = ['m', 's', 'ms']; | ||
var seperator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
if (!Number.isFinite(bytes)) return "".concat(bytes); | ||
if (!Number.isFinite(bytes)) return null; | ||
var _prettyBytes$split = (0, _prettyBytes2["default"])(bytes, { | ||
binary: true, | ||
maximumFractionDigits: 1 | ||
@@ -94,0 +93,0 @@ }).split(' '), |
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
170874
1787