Comparing version 10.1.2 to 10.1.3
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20173
6
461