Comparing version 3.2.0 to 3.2.1
@@ -6,3 +6,3 @@ /** | ||
* @license BSD-3-Clause | ||
* @version 3.2.0 | ||
* @version 3.2.1 | ||
*/ | ||
@@ -58,2 +58,6 @@ (function (global) { | ||
e = Math.floor(Math.log(num) / Math.log(ceil)); | ||
if (e < 0) { | ||
e = 0; | ||
} | ||
} | ||
@@ -71,3 +75,3 @@ | ||
if (val > ceil) { | ||
if (val > ceil && e < 8) { | ||
val = val / ceil; | ||
@@ -74,0 +78,0 @@ e++; |
@@ -8,3 +8,3 @@ "use strict"; | ||
* @license BSD-3-Clause | ||
* @version 3.2.0 | ||
* @version 3.2.1 | ||
*/ | ||
@@ -72,2 +72,6 @@ (function (global) { | ||
e = Math.floor(Math.log(num) / Math.log(ceil)); | ||
if (e < 0) { | ||
e = 0; | ||
} | ||
} | ||
@@ -85,3 +89,3 @@ | ||
if (val > ceil) { | ||
if (val > ceil && e < 8) { | ||
val = val / ceil; | ||
@@ -88,0 +92,0 @@ e++; |
{ | ||
"name": "filesize", | ||
"description": "JavaScript library to generate a human readable String describing the file size", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"homepage": "http://filesizejs.com", | ||
@@ -6,0 +6,0 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>", |
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
12383
265