Comparing version 3.0.2 to 3.1.0
@@ -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 |
@@ -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 @@ }, |
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
30060
2
429
- Removedcamelcase@~4.1.0
- Removedcamelcase@4.1.0(transitive)