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

easy-configuration

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-configuration - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

1

lib/EasyConfiguration.js

@@ -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();

16

lib/Helpers.js

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

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