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

node-settings

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-settings - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

12

lib/configurator.js

@@ -29,3 +29,5 @@ (function() {

return fs.readFile(options.location, function(err, data) {
throw err(err ? callback(JSON.parse(data)) : void 0);
throw err(err ? process.nextTick(function() {
return callback(JSON.parse(data));
}) : void 0);
});

@@ -41,3 +43,5 @@ },

get: function(options, callback) {
return callback(options.data);
return process.nextTick(function() {
return callback(options.data);
});
},

@@ -67,3 +71,5 @@ getSync: function(options) {

if (env_config) merge(config, env_config);
return callback(config);
return process.nextTick(function() {
return callback(config);
});
});

@@ -70,0 +76,0 @@ };

@@ -5,3 +5,3 @@ {

"description": "Provides easy, multi-environment configuration",
"version": "0.0.1",
"version": "0.1.0",
"homepage": "",

@@ -8,0 +8,0 @@ "repository": {

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