Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transloadit/prettier-bytes

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transloadit/prettier-bytes - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

2

dist/prettierBytes.js

@@ -16,3 +16,3 @@ "use strict";

const exponent = Math.min(Math.floor(Math.log(num) / Math.log(1024)), units.length - 1);
num = Number(num / Math.pow(1024, exponent));
num = Number(num / 1024 ** exponent);
const unit = units[exponent];

@@ -19,0 +19,0 @@ if (num >= 10 || num % 1 === 0) {

{
"name": "@transloadit/prettier-bytes",
"license": "MIT",
"version": "0.1.3",
"version": "0.2.0",
"publishConfig": {

@@ -14,3 +14,3 @@ "access": "public"

"main": "dist/prettierBytes.js",
"typings": "dist/prettierBytes.d.ts",
"types": "dist/prettierBytes.d.ts",
"files": [

@@ -27,3 +27,3 @@ "dist"

},
"gitHead": "b9159b6f037336d9325656c35b9b15023d5c1ce7"
"gitHead": "3fbbb8c4c18eeb9b9de5e3a5c022d46a7cc40800"
}

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