easy-configuration
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -104,3 +104,2 @@ // Generated by CoffeeScript 1.6.3 | ||
} | ||
result.sections[name] = {}; | ||
this.extensions[name].data = section; | ||
@@ -107,0 +106,0 @@ section = this.extensions[name].loadConfiguration(); |
@@ -11,3 +11,3 @@ // Generated by CoffeeScript 1.6.3 | ||
Helpers.merge = function(left, right) { | ||
return merge(left, right); | ||
return merge(right, left); | ||
}; | ||
@@ -91,3 +91,3 @@ | ||
Helpers.expandWithParameters = function(data, parameters) { | ||
var i, replace, value, _i, _len, _results, _results1; | ||
var i, replace, value, _i, _len; | ||
replace = function(s) { | ||
@@ -103,19 +103,17 @@ return s.replace(/%([a-zA-Z.-_]+)%/g, function(match, variable) { | ||
case '[object String]': | ||
return data = replace(data); | ||
data = replace(data); | ||
break; | ||
case '[object Array]': | ||
_results = []; | ||
for (i = _i = 0, _len = data.length; _i < _len; i = ++_i) { | ||
value = data[i]; | ||
_results.push(data[i] = this.expandWithParameters(value, parameters)); | ||
data[i] = this.expandWithParameters(value, parameters); | ||
} | ||
return _results; | ||
break; | ||
case '[object Object]': | ||
_results1 = []; | ||
for (i in data) { | ||
value = data[i]; | ||
_results1.push(data[i] = this.expandWithParameters(value, parameters)); | ||
data[i] = this.expandWithParameters(value, parameters); | ||
} | ||
return _results1; | ||
} | ||
return data; | ||
}; | ||
@@ -122,0 +120,0 @@ |
{ | ||
"name": "easy-configuration", | ||
"description": "Simply extensible loader for json config files", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "David Kudera", |
@@ -33,5 +33,5 @@ # Easy Configuration | ||
"shared": { | ||
"styles": "./www/css", | ||
"scripts": "./www/js", | ||
"translations": "./www/lang" | ||
"styles": "%basePath%/css", | ||
"scripts": "%basePath%/js", | ||
"translations": "%basePath%/lang" | ||
} | ||
@@ -38,0 +38,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18412
248