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 10.1.4 to 10.1.5

9

dist/filesize.esm.js

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

* @license BSD-3-Clause
* @version 10.1.4
* @version 10.1.5
*/

@@ -171,5 +171,6 @@ const ARRAY = "array";

if (pad && Number.isInteger(result[0]) === false && round > 0) {
const x = separator || PERIOD,
tmp = result[0].toString().split(x),
if (pad && round > 0) {
const i = result[0].toString(),
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,

@@ -176,0 +177,0 @@ l = s.length,

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

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

"types": "npx -p typescript tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types",
"prepare": "husky install"
"prepare": "husky"
},

@@ -42,0 +42,0 @@ "devDependencies": {

@@ -66,3 +66,3 @@ # filesize.js

### separator
_*(string)*_ Decimal separator character, default is `.`
_*(string)*_ Decimal separator character, default is an empty string.

@@ -69,0 +69,0 @@ ### spacer

@@ -0,0 +0,0 @@ interface FileSizeOptionsBase {

Sorry, the diff of this file is not supported yet

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