diff options
author | isaacs <i@izs.me> | 2012-07-17 11:37:39 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-07-17 11:37:39 -0700 |
commit | c383befd257f451a12ccd4454784941f1bb9c41a (patch) | |
tree | 483f2c4572811429a73113f06deaa4d8fd8fcba6 /deps/npm/lib/view.js | |
parent | d6b78d0e3769e4af1b1a60e89f53faf20e4bb2b3 (diff) | |
download | node-new-c383befd257f451a12ccd4454784941f1bb9c41a.tar.gz |
npm: Upgrade to 1.1.43
Diffstat (limited to 'deps/npm/lib/view.js')
-rw-r--r-- | deps/npm/lib/view.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/npm/lib/view.js b/deps/npm/lib/view.js index e291031c14..9b34df3bf2 100644 --- a/deps/npm/lib/view.js +++ b/deps/npm/lib/view.js @@ -44,7 +44,6 @@ var npm = require("./npm.js") , ini = require("ini") , log = require("npmlog") , util = require("util") - , output , semver = require("semver") function view (args, silent, cb) { @@ -184,7 +183,6 @@ function printData (data, name, cb) { , msg = "" , showVersions = versions.length > 1 , showFields - function cb_ (er) { return cb(er, data) } versions.forEach(function (v, i) { var fields = Object.keys(data[v]) @@ -200,8 +198,9 @@ function printData (data, name, cb) { + (showFields ? f : "") + d + "\n" }) }) - output = output || require("./utils/output.js") - output.write(msg, cb_) + + console.log(msg) + cb(null, data) } function cleanup (data) { if (Array.isArray(data)) { |