summaryrefslogtreecommitdiff
path: root/deps/npm/lib/view.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-07-17 11:37:39 -0700
committerisaacs <i@izs.me>2012-07-17 11:37:39 -0700
commitc383befd257f451a12ccd4454784941f1bb9c41a (patch)
tree483f2c4572811429a73113f06deaa4d8fd8fcba6 /deps/npm/lib/view.js
parentd6b78d0e3769e4af1b1a60e89f53faf20e4bb2b3 (diff)
downloadnode-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.js7
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)) {