Comparing version 7.2.0 to 7.3.0
@@ -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 @@ */ |
{ | ||
"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", |
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
40589
692