mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 09:01:38 +08:00
cleanup
This commit is contained in:
10
lib/utils.ts
10
lib/utils.ts
@@ -64,10 +64,12 @@ export const testUrls = async (urls?: string[]) => {
|
|||||||
if (!urls?.length) {
|
if (!urls?.length) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const ret = await promiseAny(urls.map(ping));
|
try {
|
||||||
if (ret) {
|
const ret = await promiseAny(urls.map(ping));
|
||||||
return ret;
|
if (ret) {
|
||||||
}
|
return ret;
|
||||||
|
}
|
||||||
|
} catch {}
|
||||||
logger('all ping failed, use first url:', urls[0]);
|
logger('all ping failed, use first url:', urls[0]);
|
||||||
return urls[0];
|
return urls[0];
|
||||||
};
|
};
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "9.2.4",
|
"version": "9.2.5",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "lib/index.ts",
|
"main": "lib/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user