Fix `parseValues` option name

master
Matt Hamann 2017-10-21 21:57:31 -04:00
parent 35088a3313
commit b9c345bf96
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ var Env = exports.Env = function (options) {
this.whitelist = options.whitelist || [];
this.separator = options.separator || '';
this.lowerCase = options.lowerCase || false;
this.parseJson = options.parseJson || false;
this.parseValues = options.parseValues || false;
if (({}).toString.call(options.match) === '[object RegExp]'
&& typeof options !== 'string') {
@ -82,7 +82,7 @@ Env.prototype.loadEnv = function () {
var val = env[key];
if (self.parseJson) {
if (self.parseValues) {
val = common.parseValues(val);
}

View File

@ -164,7 +164,7 @@ vows.describe('nconf/multiple-stores').addBatch({
topic: function () {
var that = this;
helpers.cp(complete, completeTest, function () {
nconf.env({ parseJson: true });
nconf.env({ parseValues: true });
that.callback();
});
},