@availity/env-var
Advanced tools
Comparing version 1.9.9 to 1.9.11
@@ -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 @@ |
@@ -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 @@ |
{ | ||
"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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
15836
352
1