Skip to content

Commit

Permalink
Fix fullMetadata extended regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Nov 19, 2023
1 parent 5a1e892 commit 82fc621
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/package-managers/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,9 @@ async function viewMany(
return Promise.resolve({} as Index<Packument>)
}

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(
{
Expand Down

0 comments on commit 82fc621

Please sign in to comment.