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 10.1.2 to 10.1.3

2

dist/filesize.esm.js

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

* @license BSD-3-Clause
* @version 10.1.2
* @version 10.1.3
*/

@@ -9,0 +9,0 @@ const ARRAY = "array";

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

@@ -15,4 +15,5 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>",

"files": [
"dist",
"types"
"dist/filesize.cjs",
"dist/filesize.esm.js",
"types/filesize.d.ts"
],

@@ -33,2 +34,3 @@ "license": "BSD-3-Clause",

"lint": "eslint *.js src/*.js test/*.js",
"fix": "eslint --fix *.js src/*.js test/*.js",
"mocha": "nyc mocha test/*.js",

@@ -42,10 +44,10 @@ "rollup": "rollup --config",

"devDependencies": {
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-terser": "^0.4.4",
"auto-changelog": "^2.4.0",
"eslint": "^8.37.0",
"husky": "^8.0.3",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"rollup": "^3.20.2",
"typescript": "^5.0.2"
"eslint": "^9.6.0",
"husky": "^9.0.11",
"mocha": "^10.6.0",
"nyc": "^17.0.0",
"rollup": "^4.18.1",
"typescript": "^5.5.3"
},

@@ -52,0 +54,0 @@ "keywords": [

@@ -55,3 +55,3 @@ interface FileSizeOptionsBase {

export function filesize<Options extends FileSizeOptions = undefined>(byteCount: number | string, options?: Options): FileSizeReturnType<Options>
export function partial<Options extends FileSizeOptions = undefined>(options?: Options): (byteCount: number) => FileSizeReturnType<Options>
export function filesize<Options extends FileSizeOptions = undefined>(byteCount: number | string | bigint, options?: Options): FileSizeReturnType<Options>
export function partial<Options extends FileSizeOptions = undefined>(options?: Options): (byteCount: number) => FileSizeReturnType<Options>

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