From e7e6c0dfe0aef34c0cf6a6936cca1057aef8c746 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Mon, 20 Nov 2023 20:25:00 +0300 Subject: [PATCH] fix: fetch latest npm manifest by default --- src/main/js/npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/js/npm.js b/src/main/js/npm.js index 7467f94..429e67d 100644 --- a/src/main/js/npm.js +++ b/src/main/js/npm.js @@ -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 {