Socket
Socket
Sign inDemoInstall

@availity/env-var

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/env-var - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

9

CHANGELOG.md

@@ -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 @@

11

dist/index.js

@@ -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

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