diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-02-20 09:03:34 -0800 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-02-22 07:42:24 +0100 |
commit | 1e2fa1537f9978acbd27db6ee151885ab02346c1 (patch) | |
tree | aa886046ac044759ab2c4650d4b45d2b736dbcde /deps/npm/lib/outdated.js | |
parent | 3ab9b92e90e4bb3ed68457fcb95bc32f17586f3a (diff) | |
download | node-new-1e2fa1537f9978acbd27db6ee151885ab02346c1.tar.gz |
deps: upgrade npm to 2.6.0
PR-URL: https://github.com/iojs/io.js/pull/904
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/npm/lib/outdated.js')
-rw-r--r-- | deps/npm/lib/outdated.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/npm/lib/outdated.js b/deps/npm/lib/outdated.js index f69d81550a..9c0623ef12 100644 --- a/deps/npm/lib/outdated.js +++ b/deps/npm/lib/outdated.js @@ -41,6 +41,7 @@ function outdated (args, silent, cb) { if (typeof cb !== "function") cb = silent, silent = false var dir = path.resolve(npm.dir, "..") outdated_(args, dir, {}, 0, function (er, list) { + if (!list) list = [] if (er || silent || list.length === 0) return cb(er, list) if (npm.config.get("json")) { console.log(makeJSON(list)) |