@transloadit/prettier-bytes
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -1,1 +0,2 @@ | ||
export default function prettierBytes(num: number): string; | ||
declare const _default: (num: number) => string; | ||
export = _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function prettierBytes(num) { | ||
module.exports = function prettierBytes(num) { | ||
if (typeof num !== 'number' || Number.isNaN(num)) { | ||
@@ -22,4 +21,3 @@ throw new TypeError(`Expected a number, got ${typeof num}`); | ||
return `${(neg ? '-' : '') + num.toFixed(1)} ${unit}`; | ||
} | ||
exports.default = prettierBytes; | ||
}; | ||
//# sourceMappingURL=prettierBytes.js.map |
{ | ||
"name": "@transloadit/prettier-bytes", | ||
"license": "MIT", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"publishConfig": { | ||
@@ -26,3 +26,3 @@ "access": "public" | ||
}, | ||
"gitHead": "3fbbb8c4c18eeb9b9de5e3a5c022d46a7cc40800" | ||
"gitHead": "df8101d46064782dd743550aac74ab6afdb6b82c" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
302990
0
4428
23