Comparing version 1.29.4 to 1.30.0
@@ -0,1 +1,6 @@ | ||
1.30.0 / 2018-02-26 | ||
=================== | ||
* Support for nested raw() in javascript configurations - patrickpilch | ||
1.29.4 / 2018-02-03 | ||
@@ -2,0 +7,0 @@ =================== |
@@ -189,10 +189,3 @@ // config.js (c) 2010-2015 Loren West and other contributors | ||
} | ||
var t = this, | ||
value = getImpl(t, property); | ||
// Produce an exception if the property doesn't exist | ||
if (value === undefined) { | ||
throw new Error('Configuration property "' + property + '" is not defined'); | ||
} | ||
// Make configurations immutable after first get (unless disabled) | ||
@@ -205,5 +198,8 @@ if (checkMutability) { | ||
} | ||
var t = this, | ||
value = getImpl(t, property); | ||
if (value instanceof RawConfig) { | ||
value = value.resolve(); | ||
// Produce an exception if the property doesn't exist | ||
if (value === undefined) { | ||
throw new Error('Configuration property "' + property + '" is not defined'); | ||
} | ||
@@ -557,4 +553,10 @@ | ||
if (!(value instanceof RawConfig)) { | ||
if (value instanceof RawConfig) { | ||
Object.defineProperty(object, propertyName, { | ||
value: value.resolve(), | ||
writable: false, | ||
configurable: false | ||
}); | ||
} else { | ||
Object.defineProperty(object, propertyName, { | ||
value: value, | ||
@@ -561,0 +563,0 @@ writable : false, |
{ | ||
"name": "config", | ||
"version": "1.29.4", | ||
"version": "1.30.0", | ||
"main": "./lib/config.js", | ||
@@ -5,0 +5,0 @@ "description": "Configuration control for production node deployments", |
@@ -165,4 +165,4 @@ Configure your Node.js Applications | ||
<td><img src=https://avatars1.githubusercontent.com/u/4425455?v=4><a href="https://github.com/ncuillery">ncuillery</a></td> | ||
<td><img src=https://avatars0.githubusercontent.com/u/2015295?v=4><a href="https://github.com/patrickpilch">patrickpilch</a></td> | ||
<td><img src=https://avatars1.githubusercontent.com/u/618330?v=4><a href="https://github.com/adityabansod">adityabansod</a></td> | ||
<td><img src=https://avatars3.githubusercontent.com/u/270632?v=4><a href="https://github.com/thetalecrafter">thetalecrafter</a></td> | ||
</tr></table> | ||
@@ -169,0 +169,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
85817
1606