@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.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/string.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -642,8 +642,7 @@ ${opts.message || this.desc}`;
|
|
|
642
642
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
643
643
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)) + " " + sizes[i];
|
|
644
644
|
}
|
|
645
|
-
function formatMs(
|
|
646
|
-
const ms = parseInt(number, 10);
|
|
645
|
+
function formatMs(ms) {
|
|
647
646
|
if (isNaN(ms) || ms < 0) return "Invalid input";
|
|
648
647
|
const seconds = ms / 1e3;
|
|
649
648
|
const minutes = seconds / 60;
|