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.1.2 to 0.1.3

8

lib/configurator.js

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

return process.nextTick(function() {
return callback(eval(data));
return callback(JSON.parse(data));
});

@@ -68,3 +68,3 @@ });

data = fs.readFileSync(options.location, options.encoding || 'utf8');
return eval(data);
return JSON.parse(data);
}

@@ -84,6 +84,6 @@ },

get: function(options, callback) {
return callback(eval(options.data));
return callback(JSON.parse(options.data));
},
getSync: function(options) {
return eval(options.data);
return JSON.parse(options.data);
}

@@ -90,0 +90,0 @@ }

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

"description": "Provides easy, multi-environment configuration",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "",

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

{
key1: 'value1'
"default": {
"mongo": {
"host": "localhost",
"port": 27017,
"database": "test"
}
}
}

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