Content-Length: 277628 | pFad | http://github.com/npm/cli/pull/8054/commits/3b19e637a4b5453f3d82ccf58ae6e50b1ad7624a

A4 fix(publish): honor force for no dist tag and registry version check by reggi · Pull Request #8054 · npm/cli · GitHub
Skip to content

fix(publish): honor force for no dist tag and registry version check #8054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix highestVersion
  • Loading branch information
reggi committed Jan 22, 2025
commit 3b19e637a4b5453f3d82ccf58ae6e50b1ad7624a
4 changes: 2 additions & 2 deletions lib/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class Publish extends BaseCommand {
registry,
})
if (typeof packument?.versions === 'undefined') {
return { versions: [], latest: null }
return { versions: [], highestVersion: null }
}
const ordered = Object.keys(packument?.versions)
.flatMap(v => {
Expand All @@ -234,7 +234,7 @@ class Publish extends BaseCommand {
const versions = ordered.map(v => v.version)
return { versions, highestVersion }
} catch (e) {
return { versions: [], latest: null }
return { versions: [], highestVersion: null }
}
}

Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/npm/cli/pull/8054/commits/3b19e637a4b5453f3d82ccf58ae6e50b1ad7624a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy