mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-11-07 17:55:47 +08:00
Remove cache usage in getLatestVersion function for improved reliability
This commit is contained in:
@@ -158,7 +158,7 @@ export function saveToLocal(originPath: string, destName: string) {
|
|||||||
|
|
||||||
async function getLatestVersion(pkgNames: string[]) {
|
async function getLatestVersion(pkgNames: string[]) {
|
||||||
return latestVersion(pkgNames, {
|
return latestVersion(pkgNames, {
|
||||||
useCache: true,
|
// useCache: true,
|
||||||
requestOptions: {
|
requestOptions: {
|
||||||
timeout: 2000,
|
timeout: 2000,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user