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

config-object

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-object - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

22

lib/index.js

@@ -20,3 +20,3 @@ (function() {

ConfigPrototype.prototype.load = function(filename, options) {
var cfg, f, format, _i, _len, _ref;
var cfg, f, format, point, _i, _len, _ref;
if (options == null) {

@@ -71,3 +71,12 @@ options = {};

})();
_(this).merge(cfg);
point = this;
if (options.at) {
if (!this.get(options.at)) {
this.set(options.at, {});
}
point = this.get(options.at, {
clone: false
});
}
_(point).merge(cfg);
return this;

@@ -139,3 +148,4 @@ };

_.defaults(options, {
"throw": false
"throw": false,
clone: true
});

@@ -166,3 +176,7 @@ data = this;

}
return _.cloneDeep(data);
if (options.clone) {
return _.cloneDeep(data);
} else {
return data;
}
};

@@ -169,0 +183,0 @@

5

package.json
{
"name": "config-object",
"version": "0.2.0",
"version": "0.3.0",
"description": "Configuration as a pure JS object, with helpers :)",
"main": "lib/index.js",
"scripts": {
"test": "gulp --requre 'coffee-script' test",
"test": "gulp test",
"develop": "gulp watch",
"prepublish": "gulp --requre 'coffee-script' build"

@@ -9,0 +10,0 @@ },

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