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

env-var

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-var - npm Package Compare versions

Comparing version 7.3.0 to 7.3.1

3

CHANGELOG.md

@@ -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)

4

lib/accessors/float.js

@@ -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

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