@parca/utilities
Advanced tools
Comparing version 0.0.49 to 0.0.50
@@ -6,2 +6,6 @@ # Change Log | ||
## 0.0.50 (2024-01-03) | ||
**Note:** Version bump only for package @parca/utilities | ||
## 0.0.49 (2023-12-14) | ||
@@ -8,0 +12,0 @@ |
@@ -99,11 +99,11 @@ // Copyright 2022 The Parca Authors | ||
if (durationInSeconds <= getTotalSeconds({ minutes: 4 })) { | ||
return 'H:mm:ss'; | ||
return 'HH:mm:ss'; | ||
} | ||
if (durationInSeconds <= getTotalSeconds({ hours: 13 })) { | ||
return 'H:mm'; | ||
return 'HH:mm'; | ||
} | ||
if (durationInSeconds <= getTotalSeconds({ hours: 25 })) { | ||
return 'H:mm d/M'; | ||
return 'HH:mm M/d'; | ||
} | ||
return 'd/M'; | ||
return 'M/d'; | ||
}; | ||
@@ -110,0 +110,0 @@ export const getStepDuration = (start, end, stepCount = 1000) => { |
{ | ||
"name": "@parca/utilities", | ||
"version": "0.0.49", | ||
"version": "0.0.50", | ||
"description": "A set of reusable functions for Parca", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "39726283538379788de22955a17768ebe2da2fec" | ||
"gitHead": "4f536249850d27a79b365d3d796ca8ff692896d5" | ||
} |
@@ -142,11 +142,11 @@ // Copyright 2022 The Parca Authors | ||
if (durationInSeconds <= getTotalSeconds({minutes: 4})) { | ||
return 'H:mm:ss'; | ||
return 'HH:mm:ss'; | ||
} | ||
if (durationInSeconds <= getTotalSeconds({hours: 13})) { | ||
return 'H:mm'; | ||
return 'HH:mm'; | ||
} | ||
if (durationInSeconds <= getTotalSeconds({hours: 25})) { | ||
return 'H:mm d/M'; | ||
return 'HH:mm M/d'; | ||
} | ||
return 'd/M'; | ||
return 'M/d'; | ||
}; | ||
@@ -153,0 +153,0 @@ |
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
76540