@parca/utilities
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -6,2 +6,6 @@ # Change Log | ||
## 0.0.21 (2023-07-18) | ||
**Note:** Version bump only for package @parca/utilities | ||
## 0.0.20 (2023-07-14) | ||
@@ -8,0 +12,0 @@ |
@@ -51,6 +51,7 @@ // Copyright 2022 The Parca Authors | ||
const absoluteNum = isBigInt ? abs(num) : Math.abs(num); | ||
const format = Object.values(knownValueFormatters[unit]); | ||
if (format === undefined || format === null) { | ||
const formatter = knownValueFormatters[unit]; | ||
if (formatter == null) { | ||
return num.toString(); | ||
} | ||
const format = Object.values(formatter); | ||
const rx = /\.0+$|(\.[0-9]*[1-9])0+$/; | ||
@@ -57,0 +58,0 @@ let i; |
{ | ||
"name": "@parca/utilities", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "A set of reusable functions for Parca", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "6598149618b644783f5d638b6a913026cb8adc25" | ||
"gitHead": "5b9b807afe165992f1f7ef3440cf7d29fccfc67f" | ||
} |
@@ -74,10 +74,7 @@ // Copyright 2022 The Parca Authors | ||
const absoluteNum = isBigInt ? abs(num) : Math.abs(num); | ||
const format: Unit[] = Object.values( | ||
knownValueFormatters[unit as keyof typeof knownValueFormatters] | ||
); | ||
if (format === undefined || format === null) { | ||
const formatter = knownValueFormatters[unit as keyof typeof knownValueFormatters]; | ||
if (formatter == null) { | ||
return num.toString(); | ||
} | ||
const format: Unit[] = Object.values(formatter); | ||
const rx = /\.0+$|(\.[0-9]*[1-9])0+$/; | ||
@@ -84,0 +81,0 @@ let i: number; |
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
69930