Comparing version 0.4.4 to 0.4.5
@@ -10,2 +10,3 @@ /* | ||
var util = require('util'), | ||
optimist = require('optimist'), | ||
Memory = require('./memory').Memory; | ||
@@ -83,6 +84,6 @@ | ||
if (typeof this.argv === 'object') { | ||
argv = require('optimist').options(this.argv).argv; | ||
argv = optimist(process.argv.slice(2)).options(this.argv).argv; | ||
} | ||
else if (this.argv) { | ||
argv = require('optimist').argv; | ||
argv = optimist(process.argv.slice(2)).argv; | ||
} | ||
@@ -119,2 +120,3 @@ | ||
return this.store; | ||
}; | ||
}; | ||
{ | ||
"name": "nconf", | ||
"description": "Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
# nconf | ||
# nconf [![Build Status](https://secure.travis-ci.org/flatiron/nconf.png)](http://travis-ci.org/flatiron/nconf) | ||
@@ -3,0 +3,0 @@ Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging. |
@@ -46,3 +46,3 @@ /* | ||
spawn('node', [options.script].concat(options.argv), { env: env }) | ||
spawn(process.argv[0], [options.script].concat(options.argv), { env: env }) | ||
.stdout.once('data', this.callback.bind(this, null)); | ||
@@ -54,2 +54,3 @@ }, | ||
} | ||
} | ||
} | ||
@@ -54,2 +54,6 @@ /* | ||
env: { SOMETHING: 'foobar' } | ||
}), | ||
"when 'argv' is set to true and process.argv is modified": helpers.assertSystemConf({ | ||
script: path.join(fixturesDir, 'scripts', 'nconf-change-argv.js'), | ||
argv: ['--something', 'badValue', 'evenWorse', 'OHNOEZ', 'foobar'] | ||
}) | ||
@@ -88,2 +92,3 @@ } | ||
} | ||
}).export(module); | ||
}).export(module); | ||
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
238102
39
1890
0
3