Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filesize

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filesize - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

13

lib/filesize.es6.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc