@travetto/config
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -19,3 +19,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.23" | ||
"version": "0.0.24" | ||
} |
@@ -17,3 +17,3 @@ import { bulkRead, bulkReadSync, AppEnv, bulkFindSync } from '@travetto/base'; | ||
static bindTo(obj: any, key: string) { | ||
return this.map.bindTo(obj, key); | ||
this.map.bindTo(obj, key); | ||
} | ||
@@ -32,2 +32,3 @@ | ||
} | ||
this.map.reset(); | ||
this._initialized = true; | ||
@@ -34,0 +35,0 @@ |
@@ -38,2 +38,6 @@ import { deepAssign, isPlainObject, isSimple } from '@travetto/base'; | ||
reset() { | ||
this.storage = {}; | ||
} | ||
putAll(data: Nested) { | ||
@@ -82,2 +86,3 @@ deepAssign(this.storage, data, 'coerce'); | ||
let sub: any = this.storage; | ||
while (keys.length && sub) { | ||
@@ -87,3 +92,3 @@ sub = sub[keys.shift()!]; | ||
const conf = deepAssign(obj, sub || {}); | ||
const conf = deepAssign({}, sub); | ||
@@ -99,3 +104,3 @@ // Handle process.env on bind as the structure we need may not | ||
return conf; | ||
deepAssign(obj, conf); | ||
} | ||
@@ -102,0 +107,0 @@ |
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
7992
183