@availity/env-var
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -5,2 +5,11 @@ # Changelog | ||
# [3.1.0](https://github.com/Availity/sdk-js/compare/@availity/env-var@3.0.2...@availity/env-var@3.1.0) (2024-06-27) | ||
### Features | ||
* essentials envVar ([d4206ca](https://github.com/Availity/sdk-js/commit/d4206ca0771007c7ef13f1debd9b7d4a7a2ced69)) | ||
## [3.0.2](https://github.com/Availity/sdk-js/compare/@availity/env-var@3.0.1...@availity/env-var@3.0.2) (2024-05-30) | ||
@@ -7,0 +16,0 @@ |
@@ -54,9 +54,12 @@ "use strict"; | ||
local: ["127.0.0.1", "localhost"], | ||
test: [/^t(?:(?:\d\d)|(?:est))-apps$/, (options) => /^t(?:(?:\d\d)|(?:st))$/.test(getCloudEnv(options))], | ||
qa: [/^q(?:(?:\d\d)|(?:ap?))-apps$/, (options) => /^(stg|q(?:(?:\d\d)|(?:ua)|(?:ap)))$/.test(getCloudEnv(options))], | ||
prod: [/^apps$/, (options) => getCloudEnv(options) === "prd"] | ||
test: [/^t(?:(?:\d\d)|(?:est))-(apps|essentials)$/, (options) => /^t(?:(?:\d\d)|(?:st))$/.test(getCloudEnv(options))], | ||
qa: [ | ||
/^q(?:(?:\d\d)|(?:ap?))-(apps|essentials)$/, | ||
(options) => /^(stg|q(?:(?:\d\d)|(?:ua)|(?:ap)))$/.test(getCloudEnv(options)) | ||
], | ||
prod: [/^(apps|essentials)$/, (options) => getCloudEnv(options) === "prd"] | ||
}; | ||
var specificEnvironments = [ | ||
{ | ||
regex: /^(?:(.*)-)?apps$/, | ||
regex: /^(?:(.*)-)?(apps|essentials)$/, | ||
fn: (options) => options.match[1] || "prod" | ||
@@ -63,0 +66,0 @@ }, |
{ | ||
"name": "@availity/env-var", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Availity-specific way to determine variables based on the current environment the code is running in", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,5 +32,8 @@ // Cloud domains are in the format <team>.<cloud provider><zone>.availity.com | ||
local: ['127.0.0.1', 'localhost'], | ||
test: [/^t(?:(?:\d\d)|(?:est))-apps$/, (options) => /^t(?:(?:\d\d)|(?:st))$/.test(getCloudEnv(options))], | ||
qa: [/^q(?:(?:\d\d)|(?:ap?))-apps$/, (options) => /^(stg|q(?:(?:\d\d)|(?:ua)|(?:ap)))$/.test(getCloudEnv(options))], | ||
prod: [/^apps$/, (options) => getCloudEnv(options) === 'prd'], | ||
test: [/^t(?:(?:\d\d)|(?:est))-(apps|essentials)$/, (options) => /^t(?:(?:\d\d)|(?:st))$/.test(getCloudEnv(options))], | ||
qa: [ | ||
/^q(?:(?:\d\d)|(?:ap?))-(apps|essentials)$/, | ||
(options) => /^(stg|q(?:(?:\d\d)|(?:ua)|(?:ap)))$/.test(getCloudEnv(options)), | ||
], | ||
prod: [/^(apps|essentials)$/, (options) => getCloudEnv(options) === 'prd'], | ||
}; | ||
@@ -40,3 +43,3 @@ | ||
{ | ||
regex: /^(?:(.*)-)?apps$/, | ||
regex: /^(?:(.*)-)?(apps|essentials)$/, | ||
fn: (options) => options.match[1] || 'prod', | ||
@@ -43,0 +46,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
26636
470