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 3.2.0 to 3.2.1

8

lib/filesize.es6.js

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

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