bytes
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -0,1 +1,6 @@ | ||
3.1.2 / 2022-01-27 | ||
================== | ||
* Fix return value for un-parsable strings | ||
3.1.1 / 2021-11-15 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -165,3 +165,7 @@ /*! | ||
if (isNaN(floatValue)) { | ||
return null; | ||
} | ||
return Math.floor(map[unit] * floatValue); | ||
} |
{ | ||
"name": "bytes", | ||
"description": "Utility to parse a string bytes to bytes and vice-versa", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)", | ||
@@ -24,3 +24,3 @@ "contributors": [ | ||
"eslint-plugin-markdown": "2.2.1", | ||
"mocha": "9.1.3", | ||
"mocha": "9.2.0", | ||
"nyc": "15.1.0" | ||
@@ -27,0 +27,0 @@ }, |
12270
143