@statoscope/helpers
Advanced tools
Comparing version 5.23.0 to 5.24.0
@@ -65,3 +65,3 @@ import { Range, SemVer } from 'semver'; | ||
formatSize(value: number): string; | ||
formatDate(ts: number, locale?: string): string; | ||
formatDate(ts: number, locale?: string | string[], options?: Intl.DateTimeFormatOptions): string; | ||
formatDuration(ms: number): string; | ||
@@ -68,0 +68,0 @@ percentFrom(a: number, b: number, toFixed?: number): number; |
@@ -98,4 +98,4 @@ "use strict"; | ||
}, | ||
formatDate(ts, locale) { | ||
return new Date(ts).toLocaleString(locale); | ||
formatDate(ts, locale, options) { | ||
return new Date(ts).toLocaleString(locale, options); | ||
}, | ||
@@ -102,0 +102,0 @@ formatDuration(ms) { |
{ | ||
"name": "@statoscope/helpers", | ||
"version": "5.23.0", | ||
"version": "5.24.0", | ||
"description": "Statoscope utils", | ||
@@ -27,3 +27,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "b7d6e9276ebd8d75ace422ca2096744267b1f6df" | ||
"gitHead": "0e4193e0cb9c894ac0fc25a2b3288391bd76be09" | ||
} |
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
36098