From a36e2537fd4c81df53fb6de01900beb9fa4fa0aa Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 2 Sep 2020 10:51:54 -0700 Subject: outdated: don't throw on non-version/tag/range dep --- lib/outdated.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/outdated.js') diff --git a/lib/outdated.js b/lib/outdated.js index 660f1cd05..fa626ecbd 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -144,6 +144,10 @@ async function outdated_ (tree, deps, opts) { try { const packument = await getPackument(spec) const expected = edge.spec + // if it's not a range, version, or tag, skip it + if (!npa(`${edge.name}@${edge.spec}`).registry) { + return null + } const wanted = pickManifest(packument, expected, npm.flatOptions) const latest = pickManifest(packument, '*', npm.flatOptions) -- cgit v1.2.3