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 3.0.2 to 3.1.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 3.1.0 (11/12/17)
* Update typings to correctly handle default values for numeric types.
* Ensure an error is thrown when `asArray` does not detect at least a single non-empty value.
## 3.0.2 (19/10/17)

@@ -2,0 +6,0 @@ * Restore support for use in browser based applications

12

env-var.d.ts

@@ -10,3 +10,3 @@

*/
asFloat: () => number|undefined;
asFloat: () => number;

@@ -16,3 +16,3 @@ /**

*/
asFloatPositive: () => number|undefined;
asFloatPositive: () => number;

@@ -22,3 +22,3 @@ /**

*/
asFloatNegative: () => number|undefined;
asFloatNegative: () => number;

@@ -29,3 +29,3 @@ /**

*/
asInt: () => number|undefined;
asInt: () => number;

@@ -35,3 +35,3 @@ /**

*/
asIntPositive: () => number|undefined;
asIntPositive: () => number;

@@ -41,3 +41,3 @@ /**

*/
asIntNegative: () => number|undefined;
asIntNegative: () => number;

@@ -44,0 +44,0 @@ /**

@@ -8,3 +8,7 @@ 'use strict'

if (!value.includes(delimeter)) {
raiseError(`should include values separated with the delimeter "${delimeter}"`)
}
return asString(raiseError, value).split(delimeter)
}
{
"name": "env-var",
"version": "3.0.2",
"version": "3.1.0",
"description": "Solution for loading and sanatizing environment variables in node.js with correct typings",

@@ -58,3 +58,2 @@ "main": "env-var.js",

"@types/node": "~8.0.31",
"camelcase": "~4.1.0",
"is-url": "~1.2.2"

@@ -61,0 +60,0 @@ },

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