easy-configuration
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -116,3 +116,3 @@ // Generated by CoffeeScript 1.6.3 | ||
section = sections[name]; | ||
if (typeof this.extensions[name] === 'undefined') { | ||
if (sections.hasOwnProperty(name) && typeof this.extensions[name] === 'undefined') { | ||
throw new Error('Found section ' + name + ' but there is no coresponding extension.'); | ||
@@ -119,0 +119,0 @@ } |
@@ -43,8 +43,10 @@ // Generated by CoffeeScript 1.6.3 | ||
value = parameters[name]; | ||
name = parent === null ? name : parent + '.' + name; | ||
type = Object.prototype.toString.call(value); | ||
if (type === '[object Object]') { | ||
result = merge(result, this.stringifyParameters(value, name)); | ||
} else { | ||
result[name] = value; | ||
if (parameters.hasOwnProperty(name)) { | ||
name = parent === null ? name : parent + '.' + name; | ||
type = Object.prototype.toString.call(value); | ||
if (type === '[object Object]') { | ||
result = merge(result, this.stringifyParameters(value, name)); | ||
} else { | ||
result[name] = value; | ||
} | ||
} | ||
@@ -81,3 +83,5 @@ } | ||
value = parameters[name]; | ||
result[name] = parse(value); | ||
if (parameters.hasOwnProperty(name)) { | ||
result[name] = parse(value); | ||
} | ||
} | ||
@@ -110,3 +114,5 @@ return result; | ||
value = data[i]; | ||
data[i] = this.expandWithParameters(value, parameters); | ||
if (data.hasOwnProperty(i)) { | ||
data[i] = this.expandWithParameters(value, parameters); | ||
} | ||
} | ||
@@ -113,0 +119,0 @@ } |
{ | ||
"name": "easy-configuration", | ||
"description": "Simply extensible loader for json config files", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "David Kudera", |
@@ -199,2 +199,5 @@ # Easy Configuration | ||
* 1.5.4 | ||
+ Some optimizations | ||
* 1.5.3 | ||
@@ -201,0 +204,0 @@ + Preparations for new version |
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
25732
340
275