Skip to content

Commit

Permalink
fix: fetch latest npm manifest by default
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Nov 20, 2023
1 parent 41b961d commit e7e6c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/js/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const fetchPkg = async (pkg) => {
export const fetchManifest = async (pkg, {nothrow} = {}) => {
const {npmRegistry, npmToken, npmConfig} = pkg.config
const bearerToken = getBearerToken(npmRegistry, npmToken, npmConfig)
const url = getManifestUrl(npmRegistry, pkg.name, pkg.version)
const url = getManifestUrl(npmRegistry, pkg.name, pkg.version || 'latest')
const reqOpts = bearerToken ? {headers: {authorization: bearerToken}} : {}

try {
Expand Down

0 comments on commit e7e6c0d

Please sign in to comment.