1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 07:21:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2025-04-10 12:17:15 +08:00
parent 0ced603d97
commit f01df80b5c
2 changed files with 7 additions and 5 deletions

View File

@@ -64,10 +64,12 @@ export const testUrls = async (urls?: string[]) => {
if (!urls?.length) {
return null;
}
const ret = await promiseAny(urls.map(ping));
if (ret) {
return ret;
}
try {
const ret = await promiseAny(urls.map(ping));
if (ret) {
return ret;
}
} catch {}
logger('all ping failed, use first url:', urls[0]);
return urls[0];
};

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "9.2.4",
"version": "9.2.5",
"description": "react-native hot update",
"main": "lib/index.ts",
"scripts": {