dynamic-config-store
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -148,5 +148,7 @@ import immer from 'immer'; | ||
ConfigStore.prototype.setConfig = function (config, envOverridePrefix) { | ||
if (envOverridePrefix === void 0) { envOverridePrefix = this._overridePrefix; } | ||
if (envOverridePrefix === void 0) { envOverridePrefix = ""; } | ||
this._values = merge({}, this._values, config); | ||
this.setEnvOverridePrefix(envOverridePrefix); | ||
if (envOverridePrefix.length > 0) { | ||
this.setEnvOverridePrefix(envOverridePrefix); | ||
} | ||
}; | ||
@@ -153,0 +155,0 @@ ConfigStore.prototype.getConfig = function (_a) { |
@@ -150,5 +150,7 @@ "use strict"; | ||
ConfigStore.prototype.setConfig = function (config, envOverridePrefix) { | ||
if (envOverridePrefix === void 0) { envOverridePrefix = this._overridePrefix; } | ||
if (envOverridePrefix === void 0) { envOverridePrefix = ""; } | ||
this._values = lodash_2.merge({}, this._values, config); | ||
this.setEnvOverridePrefix(envOverridePrefix); | ||
if (envOverridePrefix.length > 0) { | ||
this.setEnvOverridePrefix(envOverridePrefix); | ||
} | ||
}; | ||
@@ -155,0 +157,0 @@ ConfigStore.prototype.getConfig = function (_a) { |
@@ -152,5 +152,7 @@ (function (global, factory) { | ||
ConfigStore.prototype.setConfig = function (config, envOverridePrefix) { | ||
if (envOverridePrefix === void 0) { envOverridePrefix = this._overridePrefix; } | ||
if (envOverridePrefix === void 0) { envOverridePrefix = ""; } | ||
this._values = lodash.merge({}, this._values, config); | ||
this.setEnvOverridePrefix(envOverridePrefix); | ||
if (envOverridePrefix.length > 0) { | ||
this.setEnvOverridePrefix(envOverridePrefix); | ||
} | ||
}; | ||
@@ -157,0 +159,0 @@ ConfigStore.prototype.getConfig = function (_a) { |
{ | ||
"name": "dynamic-config-store", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Simple configuration utility for deployments and libraries", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
80490
652