summaryrefslogtreecommitdiff
path: root/deps/npm/lib/outdated.js
diff options
context:
space:
mode:
authorAudrey Eschright <audrey@npmjs.com>2018-11-29 14:05:52 -0800
committerMyles Borins <myles.borins@gmail.com>2018-12-25 15:15:54 -0500
commit13ae5385ae010f0511927763fe28919ad44941f0 (patch)
treec0befc029d844c8a8b69601bedb5fdfb615fa271 /deps/npm/lib/outdated.js
parent77db1e70dd82245b7c263b6c48c41d398ad7ed61 (diff)
downloadnode-new-13ae5385ae010f0511927763fe28919ad44941f0.tar.gz
deps: upgrade npm to 6.5.0
PR-URL: https://github.com/nodejs/node/pull/24734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/npm/lib/outdated.js')
-rw-r--r--deps/npm/lib/outdated.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/deps/npm/lib/outdated.js b/deps/npm/lib/outdated.js
index 8b0a43d6ba..024e076c4f 100644
--- a/deps/npm/lib/outdated.js
+++ b/deps/npm/lib/outdated.js
@@ -94,7 +94,7 @@ function outdated (args, silent, cb) {
'Latest',
'Location'
]
- if (long) outHead.push('Package Type')
+ if (long) outHead.push('Package Type', 'Homepage')
var outTable = [outHead].concat(outList)
if (npm.color) {
@@ -123,6 +123,7 @@ function makePretty (p) {
var latest = p[4]
var type = p[6]
var deppath = p[7]
+ var homepage = p[0].package.homepage
var columns = [ depname,
has || 'MISSING',
@@ -130,7 +131,10 @@ function makePretty (p) {
latest,
deppath
]
- if (long) columns[5] = type
+ if (long) {
+ columns[5] = type
+ columns[6] = homepage
+ }
if (npm.color) {
columns[0] = color[has === want || want === 'linked' ? 'yellow' : 'red'](columns[0]) // dep
@@ -157,7 +161,7 @@ function makeParseable (list) {
(has ? (depname + '@' + has) : 'MISSING'),
depname + '@' + latest
]
- if (long) out.push(type)
+ if (long) out.push(type, dep.package.homepage)
return out.join(':')
}).join(os.EOL)
@@ -181,7 +185,10 @@ function makeJSON (list) {
latest: latest,
location: dir
}
- if (long) out[depname].type = type
+ if (long) {
+ out[depname].type = type
+ out[depname].homepage = dep.package.homepage
+ }
})
return JSON.stringify(out, null, 2)
}