Comparing version 6.0.0 to 6.0.1
@@ -138,3 +138,4 @@ 'use strict'; | ||
if (typeof options.unitCount === 'number') { | ||
return result.slice(0, Math.max(options.unitCount, 1)).join(' '); | ||
const separator = options.colonNotation ? '' : ' '; | ||
return result.slice(0, Math.max(options.unitCount, 1)).join(separator); | ||
} | ||
@@ -141,0 +142,0 @@ |
{ | ||
"name": "pretty-ms", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
12270
213