@availity/env-var
Advanced tools
Comparing version 2.0.4 to 3.0.0
@@ -5,2 +5,17 @@ # Changelog | ||
# [3.0.0](https://github.com/Availity/sdk-js/compare/@availity/env-var@2.0.4...@availity/env-var@3.0.0) (2023-09-01) | ||
### Features | ||
* **env-var:** allow users to return undefined ([947687a](https://github.com/Availity/sdk-js/commit/947687a5f1430569ca8b698435d5632d19431c05)) | ||
### BREAKING CHANGES | ||
* **env-var:** returning undefined previously would default to the local value, | ||
now we expect you to define what you want to return | ||
## [2.0.4](https://github.com/Availity/sdk-js/compare/@availity/env-var@2.0.3...@availity/env-var@2.0.4) (2023-08-23) | ||
@@ -7,0 +22,0 @@ |
@@ -130,3 +130,3 @@ "use strict"; | ||
const env = getCurrentEnv(windowOverride); | ||
if (typeof varObj[env] !== "undefined") { | ||
if (`${env}` in varObj) { | ||
return varObj[env]; | ||
@@ -133,0 +133,0 @@ } |
{ | ||
"name": "@availity/env-var", | ||
"version": "2.0.4", | ||
"version": "3.0.0", | ||
"description": "Availity-specific way to determine variables based on the current environment the code is running in", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -127,3 +127,3 @@ // Cloud domains are in the format <team>.<cloud provider><zone>.availity.com | ||
if (typeof varObj[env] !== 'undefined') { | ||
if (`${env}` in varObj) { | ||
return varObj[env]; | ||
@@ -130,0 +130,0 @@ } |
Sorry, the diff of this file is not supported yet
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
25954