Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-09-18 22:54:17 +0400
committerisaacs <i@izs.me>2011-09-18 22:54:17 +0400
commitc3c4df9b4f1853c9c88f95e403b39fe0957d0fcf (patch)
treea5b4e1236e43d8b80d72df4991462cbbbb31488c /lib/utils/read-json.js
parentf8f1e9afc4798de7b1a0ec5c3eec818682b6054e (diff)
Don't add the jsonOpts, just add the user
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r--lib/utils/read-json.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js
index 31aaf9265..8155e9ede 100644
--- a/lib/utils/read-json.js
+++ b/lib/utils/read-json.js
@@ -146,8 +146,12 @@ function jsonParseFail (ex, file, cb) {
var modulesWarned = {}
function processObject (opts, cb) { return function (er, json) {
- json._npmJsonOpts = opts
+ // json._npmJsonOpts = opts
// log.warn(json, "processing json")
+ if (npm.config.get("username")) {
+ json._npmUser = { name: npm.config.get("username")
+ , email: npm.config.get("email") }
+ }
// slashes would be a security risk.
// anything else will just fail harmlessly.