easy-configuration
Advanced tools
Comparing version 1.5.5 to 1.5.6
@@ -116,10 +116,12 @@ // Generated by CoffeeScript 1.6.3 | ||
section = sections[name]; | ||
if (sections.hasOwnProperty(name) && (name !== '__proto__') && typeof this.extensions[name] === 'undefined') { | ||
throw new Error('Found section ' + name + ' but there is no coresponding extension.'); | ||
if (sections.hasOwnProperty(name) && (name !== '__proto__')) { | ||
if (typeof this.extensions[name] === 'undefined') { | ||
throw new Error('Found section ' + name + ' but there is no coresponding extension.'); | ||
} | ||
this.extensions[name].data = section; | ||
section = this.extensions[name].loadConfiguration(); | ||
section = Helpers.expandWithParameters(section, result.parameters); | ||
section = this.extensions[name].afterCompile(section); | ||
result.sections[name] = section; | ||
} | ||
this.extensions[name].data = section; | ||
section = this.extensions[name].loadConfiguration(); | ||
section = Helpers.expandWithParameters(section, result.parameters); | ||
section = this.extensions[name].afterCompile(section); | ||
result.sections[name] = section; | ||
} | ||
@@ -126,0 +128,0 @@ return result; |
{ | ||
"name": "easy-configuration", | ||
"description": "Simply extensible loader for json config files", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "David Kudera", |
@@ -199,3 +199,3 @@ # Easy Configuration | ||
* 1.5.4 - 1.5.5 | ||
* 1.5.4 - 1.5.6 | ||
+ Some optimizations | ||
@@ -202,0 +202,0 @@ |
Sorry, the diff of this file is not supported yet
25843
342