Socket
Socket
Sign inDemoInstall

@availity/env-var

Package Overview
Dependencies
Maintainers
14
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 1.9.9 to 1.9.11

tests/env.test.js

22

CHANGELOG.md

@@ -6,2 +6,24 @@ # Change Log

## [1.9.11](https://github.com/availity/sdk-js/compare/@availity/env-var@1.9.9...@availity/env-var@1.9.11) (2020-02-13)
### Bug Fixes
* update babel and jest configs, rename tests ([c80e194](https://github.com/availity/sdk-js/commit/c80e1947f0c3cb28c3c7db842c82f381622d72e7))
## [1.9.10](https://github.com/availity/sdk-js/compare/@availity/env-var@1.9.9...@availity/env-var@1.9.10) (2020-02-13)
### Bug Fixes
* update babel and jest configs, rename tests ([c80e194](https://github.com/availity/sdk-js/commit/c80e1947f0c3cb28c3c7db842c82f381622d72e7))
## [1.9.9](https://github.com/availity/sdk-js/compare/@availity/env-var@1.9.6...@availity/env-var@1.9.9) (2020-02-13)

@@ -8,0 +30,0 @@

21

lib/index.js

@@ -0,1 +1,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setEnvironments = setEnvironments;
exports.getLocation = getLocation;
exports.getCurrentEnv = getCurrentEnv;
exports["default"] = _default;
var environments = {

@@ -7,3 +16,4 @@ local: ['127.0.0.1', 'localhost'],

};
export function setEnvironments(envs, override) {
function setEnvironments(envs, override) {
if (override) {

@@ -15,3 +25,4 @@ environments = envs;

}
export function getLocation(href) {
function getLocation(href) {
var anchor = document.createElement('a');

@@ -21,3 +32,4 @@ anchor.href = href;

}
export function getCurrentEnv() {
function getCurrentEnv() {
var windowOverride = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;

@@ -55,3 +67,4 @@

}
export default function (varObj, windowOverride, defaultVar) {
function _default(varObj, windowOverride, defaultVar) {
var env = getCurrentEnv(windowOverride);

@@ -58,0 +71,0 @@

4

package.json
{
"name": "@availity/env-var",
"version": "1.9.9",
"version": "1.9.11",
"description": "Availity-specific way to determine variables based on the current environment the code is running in",

@@ -28,3 +28,3 @@ "main": "lib/index.js",

},
"gitHead": "88c0e7b48de05f599a97ad3547f8b96c63e2004e"
"gitHead": "4581108f28112d852510b7cbb2bce04f46733a7d"
}
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