Comparing version 10.1.4 to 10.1.5
@@ -6,3 +6,3 @@ /** | ||
* @license BSD-3-Clause | ||
* @version 10.1.4 | ||
* @version 10.1.5 | ||
*/ | ||
@@ -171,5 +171,6 @@ const ARRAY = "array"; | ||
if (pad && Number.isInteger(result[0]) === false && round > 0) { | ||
const x = separator || PERIOD, | ||
tmp = result[0].toString().split(x), | ||
if (pad && round > 0) { | ||
const i = result[0].toString(), | ||
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD), | ||
tmp = i.toString().split(x), | ||
s = tmp[1] || EMPTY, | ||
@@ -176,0 +177,0 @@ l = s.length, |
{ | ||
"name": "filesize", | ||
"description": "JavaScript library to generate a human readable String describing the file size", | ||
"version": "10.1.4", | ||
"version": "10.1.5", | ||
"homepage": "https://filesizejs.com", | ||
@@ -39,3 +39,3 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>", | ||
"types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types", | ||
"prepare": "husky install" | ||
"prepare": "husky" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -66,3 +66,3 @@ # filesize.js | ||
### separator | ||
_*(string)*_ Decimal separator character, default is `.` | ||
_*(string)*_ Decimal separator character, default is an empty string. | ||
@@ -69,0 +69,0 @@ ### spacer |
@@ -0,0 +0,0 @@ interface FileSizeOptionsBase { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
463
19514
0