diff options
Diffstat (limited to 'deps/npm/lib')
-rw-r--r-- | deps/npm/lib/outdated.js | 2 | ||||
-rw-r--r-- | deps/npm/lib/root.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/lib/outdated.js b/deps/npm/lib/outdated.js index 0c9c66952c..33c182c997 100644 --- a/deps/npm/lib/outdated.js +++ b/deps/npm/lib/outdated.js @@ -30,7 +30,7 @@ function outdated (args, silent, cb) { if (typeof cb !== "function") cb = silent, silent = false var dir = path.resolve(npm.dir, "..") outdated_(args, dir, {}, function (er, list) { - if (er || silent) return cb(er) + if (er || silent) return cb(er, list) var outList = list.map(makePretty) console.log(outList.join("\n")) cb(null, list) diff --git a/deps/npm/lib/root.js b/deps/npm/lib/root.js index 409b20b785..b2f731ed55 100644 --- a/deps/npm/lib/root.js +++ b/deps/npm/lib/root.js @@ -7,5 +7,5 @@ root.usage = "npm root\nnpm root -g\n(just prints the root folder)" function root (args, silent, cb) { if (typeof cb !== "function") cb = silent, silent = false if (!silent) console.log(npm.dir) - process.nextTic(cb.bind(this, null, npm.dir)) + process.nextTick(cb.bind(this, null, npm.dir)) } |