Socket
Socket
Sign inDemoInstall

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 4.2.0 to 4.2.1

8

lib/filesize.es6.js

@@ -6,3 +6,3 @@ /**

* @license BSD-3-Clause
* @version 4.2.0
* @version 4.2.1
*/

@@ -101,2 +101,8 @@ (function (global) {

result[0] = Number(val.toFixed(e > 0 ? round : 0));
if (result[0] === ceil && e < 8 && descriptor.exponent === void 0) {
result[0] = 1;
e++;
}
result[1] = base === 10 && e === 1 ? bits ? "kb" : "kB" : symbol[standard][bits ? "bits" : "bytes"][e];

@@ -103,0 +109,0 @@

@@ -8,3 +8,3 @@ "use strict";

* @license BSD-3-Clause
* @version 4.2.0
* @version 4.2.1
*/

@@ -119,2 +119,8 @@ (function (global) {

result[0] = Number(val.toFixed(e > 0 ? round : 0));
if (result[0] === ceil && e < 8 && descriptor.exponent === void 0) {
result[0] = 1;
e++;
}
result[1] = base === 10 && e === 1 ? bits ? "kb" : "kB" : symbol[standard][bits ? "bits" : "bytes"][e];

@@ -121,0 +127,0 @@

2

package.json
{
"name": "filesize",
"description": "JavaScript library to generate a human readable String describing the file size",
"version": "4.2.0",
"version": "4.2.1",
"homepage": "https://filesizejs.com",

@@ -6,0 +6,0 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>",

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