From 0ea134e4190f322138299c51672eab5387ec41bb Mon Sep 17 00:00:00 2001 From: nlf Date: Mon, 1 Feb 2021 09:07:50 -0800 Subject: [PATCH] pass all settings through to pacote.packument, fixes #2060 PR-URL: https://github.com/npm/cli/pull/2587 Credit: @nlf Close: #2587 Reviewed-by: @ruyadorno --- lib/outdated.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/outdated.js b/lib/outdated.js index b5f0f3b5b2928..f9a3fed8c10d4 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -108,6 +108,7 @@ async function outdated_ (tree, deps, opts) { async function getPackument (spec) { const packument = await pacote.packument(spec, { + ...npm.flatOptions, fullMetadata: npm.flatOptions.long, preferOnline: true, })