diff options
Diffstat (limited to 'lib/update.js')
-rw-r--r-- | lib/update.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/update.js b/lib/update.js index fd9e963f4..6416435e4 100644 --- a/lib/update.js +++ b/lib/update.js @@ -20,10 +20,15 @@ function update (args, cb) { npm.commands.outdated(args, true, function (er, outdated) { log(outdated, "outdated updating") if (er) return cb(er) + asyncMap(outdated, function (ww, cb) { + // [[ dir, dep, has, want ]] var where = ww[0] - , what = ww[1] - log([where, what], "updating") + , dep = ww[1] + , want = ww[3] + , what = dep + "@" + want + + log.warn([where, what], "updating") npm.commands.install(where, what, cb) }, cb) }) |