Comparing version 3.1.1 to 3.1.2
@@ -9,3 +9,3 @@ /** | ||
* @module filesize | ||
* @version 3.1.1 | ||
* @version 3.1.2 | ||
*/ | ||
@@ -125,11 +125,12 @@ ( global ) => { | ||
} | ||
else if ( output === "exponent" ) { | ||
if ( output === "exponent" ) { | ||
return e; | ||
} | ||
else if ( output === "object" ) { | ||
if ( output === "object" ) { | ||
return { value: result[ 0 ], suffix: result[ 1 ] }; | ||
} | ||
else { | ||
return result.join( spacer ); | ||
} | ||
return result.join( spacer ); | ||
} | ||
@@ -136,0 +137,0 @@ |
@@ -11,3 +11,3 @@ "use strict"; | ||
* @module filesize | ||
* @version 3.1.1 | ||
* @version 3.1.2 | ||
*/ | ||
@@ -134,9 +134,13 @@ (function (global) { | ||
return result; | ||
} else if (output === "exponent") { | ||
} | ||
if (output === "exponent") { | ||
return e; | ||
} else if (output === "object") { | ||
} | ||
if (output === "object") { | ||
return { value: result[0], suffix: result[1] }; | ||
} else { | ||
return result.join(spacer); | ||
} | ||
return result.join(spacer); | ||
}; | ||
@@ -143,0 +147,0 @@ |
{ | ||
"name": "filesize", | ||
"description": "JavaScript library to generate a human readable String describing the file size", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"homepage": "http://filesizejs.com", | ||
@@ -6,0 +6,0 @@ "author": { |
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
42955
278