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.5.3 to 1.5.4

2

lib/EasyConfiguration.js

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

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