Comparing version 7.3.0 to 7.3.1
@@ -0,1 +1,4 @@ | ||
## 7.3.1 (24/04/2023) | ||
* Fix parsing even floating point numbers (#166) | ||
## 7.3.0 (06/09/2022) | ||
@@ -2,0 +5,0 @@ * Add missing `asEmailString()` typings (#160) |
@@ -6,3 +6,5 @@ 'use strict' | ||
if (isNaN(n) || n.toString() !== value) { | ||
// Some values are parsed as valid floats despite being obviously invalid, e.g. "1.o" or "192.168.1.1". | ||
// In these cases we would want to throw an error. | ||
if (isNaN(n) || isNaN(value)) { | ||
throw new Error('should be a valid float') | ||
@@ -9,0 +11,0 @@ } |
{ | ||
"name": "env-var", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"description": "Verification, sanitization, and type coercion for environment variables in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "env-var.js", |
@@ -140,2 +140,3 @@ # env-var | ||
* @DigiPie | ||
* @dror-weiss | ||
* @evanshortiss | ||
@@ -142,0 +143,0 @@ * @gabrieloczkowski |
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
40824
694
155