mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 01:41:37 +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[]) {
|
||||
return latestVersion(pkgNames, {
|
||||
useCache: true,
|
||||
// useCache: true,
|
||||
requestOptions: {
|
||||
timeout: 2000,
|
||||
},
|
||||
|
Reference in New Issue
Block a user