From 82fc6212bccc28eb6eb193d97fa153f132cd47a1 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Sun, 19 Nov 2023 21:51:55 +0000 Subject: [PATCH] Fix fullMetadata extended regression. --- src/package-managers/npm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/package-managers/npm.ts b/src/package-managers/npm.ts index 1fea42f0..64ee279c 100644 --- a/src/package-managers/npm.ts +++ b/src/package-managers/npm.ts @@ -436,8 +436,9 @@ async function viewMany( return Promise.resolve({} as Index) } - const fullMetadata = !!options.format?.includes('time') - const fieldsExtended = fullMetadata ? [...fields, 'time'] : fields + // fields may already include time + const fieldsExtended = options.format?.includes('time') ? [...fields, 'time'] : fields + const fullMetadata = fieldsExtended.includes('time') const npmConfigMerged = mergeNpmConfigs( {