@ztimson/utils 0.26.17 → 0.26.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -638,8 +638,7 @@ function formatBytes(bytes, decimals = 2) {
638
638
  const i = Math.floor(Math.log(bytes) / Math.log(k));
639
639
  return parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)) + " " + sizes[i];
640
640
  }
641
- function formatMs(number) {
642
- const ms = parseInt(number, 10);
641
+ function formatMs(ms) {
643
642
  if (isNaN(ms) || ms < 0) return "Invalid input";
644
643
  const seconds = ms / 1e3;
645
644
  const minutes = seconds / 60;