@transloadit/prettier-bytes
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1,1 +0,1 @@ | ||
export default function prettierBytes(num: $TSFixMe): string; | ||
export default function prettierBytes(num: number): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function prettierBytes(num) { | ||
if (typeof num !== 'number' || isNaN(num)) { | ||
if (typeof num !== 'number' || Number.isNaN(num)) { | ||
throw new TypeError(`Expected a number, got ${typeof num}`); | ||
@@ -6,0 +6,0 @@ } |
{ | ||
"name": "@transloadit/prettier-bytes", | ||
"license": "MIT", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"publishConfig": { | ||
@@ -23,6 +23,6 @@ "access": "public" | ||
"scripts": { | ||
"tsc": "tsc", | ||
"tsc": "tsc --build --clean && tsc --build", | ||
"test": "echo \"Error: run tests from root\" && exit 1" | ||
}, | ||
"gitHead": "5c487499031f01adcc6869b3a0b7a4ac3d7d21c0" | ||
"gitHead": "b9159b6f037336d9325656c35b9b15023d5c1ce7" | ||
} |
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
7080