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.2.0 to 7.3.0

3

CHANGELOG.md

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

## 7.3.0 (06/09/2022)
* Add missing `asEmailString()` typings (#160)
## 7.2.0 (01/09/2022)

@@ -2,0 +5,0 @@ * Add `asEmailString()` accessor (#146)

@@ -51,2 +51,7 @@

/**
* Return the variable value as an Email. Throws an exception if value is not an Email.
*/
asEmailString: (input: string) => string;
/**
* Attempt to parse the variable to a JSON Object or Array. Throws an exception if parsing fails.

@@ -152,2 +157,7 @@ */

/**
* Return the variable value as an Email. Throws an exception if value is not an Email.
*/
asEmailString: () => AlternateType extends undefined ? undefined|string : string;
/**
* Attempt to parse the variable to a JSON Object or Array. Throws an exception if parsing fails.

@@ -154,0 +164,0 @@ */

2

package.json
{
"name": "env-var",
"version": "7.2.0",
"version": "7.3.0",
"description": "Verification, sanitization, and type coercion for environment variables in Node.js",

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

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