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.4.1 to 7.4.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 7.4.2 (10/08/2024)
* Fix docstrings for positive/negative int/float validators (#172)
## 7.4.1 (29/08/2023)

@@ -2,0 +5,0 @@ * Fix 7.4.0 issues with `create-react-app` polyfill (#168)

16

env-var.d.ts

@@ -19,3 +19,3 @@

/**
* Performs the same task as asFloat(), but also verifies that the number is positive (greater than zero).
* Performs the same task as asFloat(), but also verifies that the number is positive (greater than or equal to zero).
*/

@@ -25,3 +25,3 @@ asFloatPositive: (input: string) => number;

/**
* Performs the same task as asFloat(), but also verifies that the number is negative (less than zero).
* Performs the same task as asFloat(), but also verifies that the number is negative (less than or equal to zero).
*/

@@ -37,3 +37,3 @@ asFloatNegative: (input: string) => number;

/**
* Performs the same task as asInt(), but also verifies that the number is positive (greater than zero).
* Performs the same task as asInt(), but also verifies that the number is positive (greater than or equal to zero).
*/

@@ -43,3 +43,3 @@ asIntPositive: (input: string) => number;

/**
* Performs the same task as asInt(), but also verifies that the number is negative (less than zero).
* Performs the same task as asInt(), but also verifies that the number is negative (less than or equal to zero).
*/

@@ -128,3 +128,3 @@ asIntNegative: (input: string) => number;

/**
* Performs the same task as asFloat(), but also verifies that the number is positive (greater than zero).
* Performs the same task as asFloat(), but also verifies that the number is positive (greater than or equal to zero).
*/

@@ -134,3 +134,3 @@ asFloatPositive: () => AlternateType extends undefined ? undefined|number : number;

/**
* Performs the same task as asFloat(), but also verifies that the number is negative (less than zero).
* Performs the same task as asFloat(), but also verifies that the number is negative (less than or equal to zero).
*/

@@ -146,3 +146,3 @@ asFloatNegative: () => AlternateType extends undefined ? undefined|number : number;

/**
* Performs the same task as asInt(), but also verifies that the number is positive (greater than zero).
* Performs the same task as asInt(), but also verifies that the number is positive (greater than or equal to zero).
*/

@@ -152,3 +152,3 @@ asIntPositive: () => AlternateType extends undefined ? undefined|number : number;

/**
* Performs the same task as asInt(), but also verifies that the number is negative (less than zero).
* Performs the same task as asInt(), but also verifies that the number is negative (less than or equal to zero).
*/

@@ -155,0 +155,0 @@ asIntNegative: () => AlternateType extends undefined ? undefined|number : number;

{
"name": "env-var",
"version": "7.4.1",
"version": "7.4.2",
"description": "Verification, sanitization, and type coercion for environment variables in Node.js",

@@ -5,0 +5,0 @@ "main": "env-var.js",

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