Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

config

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config - npm Package Compare versions

Comparing version 1.29.4 to 1.30.0

5

History.md

@@ -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 @@ ===================

22

lib/config.js

@@ -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 @@

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