From 80957dd990e84b332b987bd7595000ee8a823048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C6=87=CA=98=C6=81=CC=86=C4=85=C6=87=CC=81?= Date: Wed, 9 Jan 2019 20:57:14 +0100 Subject: [PATCH] cli,outdated: default homepage to an empty string (#124) PR-URL: https://github.com/npm/cli/pull/124 Credit: @anchnk Reviewed-By: @aeschright --- lib/outdated.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outdated.js b/lib/outdated.js index ea923a0e8efd3..ebd67fb6b37d5 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -143,7 +143,7 @@ function makePretty (p, opts) { var latest = p[4] var type = p[6] var deppath = p[7] - var homepage = p[0].package.homepage + var homepage = p[0].package.homepage || '' var columns = [ depname, has || 'MISSING',