Skip to content

Commit

Permalink
Do not pass undefined timeout to pacote (#1155).
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Jul 3, 2022
1 parent f31d4de commit e03791e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/package-managers/npm.ts
Expand Up @@ -195,7 +195,7 @@ export async function viewMany(
...npmConfig,
fullMetadata: fields.includes('time'),
...(registry ? { registry, silent: true } : null),
timeout,
...(timeout ? { timeout } : null),
})
} catch (err: any) {
if (retry && ++retried <= retry) {
Expand Down

0 comments on commit e03791e

Please sign in to comment.