diff options
author | Gar <gar+gh@danger.computer> | 2022-03-15 21:12:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 21:12:11 +0300 |
commit | f66da2ed8948fbfa919dd5debe52eafe2018735c (patch) | |
tree | bf423ae04ca400fea41bf366c38063a9dfa90282 /lib | |
parent | 301e511ad55113960694939f32ebda825bf7d82e (diff) |
fix(owner): bypass cache when fetching packument (#4565)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/commands/owner.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/commands/owner.js b/lib/commands/owner.js index ceff5513a..e74efac1b 100644 --- a/lib/commands/owner.js +++ b/lib/commands/owner.js @@ -78,7 +78,7 @@ class Owner extends BaseCommand { const spec = npa(pkg) try { - const packumentOpts = { ...this.npm.flatOptions, fullMetadata: true } + const packumentOpts = { ...this.npm.flatOptions, fullMetadata: true, preferOnline: true } const { maintainers } = await pacote.packument(spec, packumentOpts) if (!maintainers || !maintainers.length) { this.npm.output('no admin found') @@ -137,7 +137,11 @@ class Owner extends BaseCommand { // normalize user data u = { name: u.name, email: u.email } - const data = await pacote.packument(spec, { ...this.npm.flatOptions, fullMetadata: true }) + const data = await pacote.packument(spec, { + ...this.npm.flatOptions, + fullMetadata: true, + preferOnline: true, + }) const owners = data.maintainers || [] let maintainers |