node-settings
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10116
79