From d2798d3177dd5e595cfa51965d2ca439175490d2 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Sun, 16 Mar 2025 11:01:10 +0800 Subject: [PATCH] Remove cache usage in getLatestVersion function for improved reliability --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 82f7cc4..7f636e1 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -158,7 +158,7 @@ export function saveToLocal(originPath: string, destName: string) { async function getLatestVersion(pkgNames: string[]) { return latestVersion(pkgNames, { - useCache: true, + // useCache: true, requestOptions: { timeout: 2000, },