1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-02 22:33:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix testurls

This commit is contained in:
sunnylqm
2025-04-07 15:27:26 +08:00
parent d180702ebf
commit 0ced603d97
2 changed files with 5 additions and 5 deletions

View File

@@ -42,16 +42,16 @@ const ping =
return url; return url;
} }
logger('ping failed', url, status, statusText); logger('ping failed', url, status, statusText);
return null; throw new Error('Ping failed');
}) })
.catch((e) => { .catch((e) => {
pingFinished = true; pingFinished = true;
logger('ping error', url, e); logger('ping error', url, e);
return null; throw e;
}), }),
new Promise((r) => new Promise((_, reject) =>
setTimeout(() => { setTimeout(() => {
r(null); reject(new Error('Ping timeout'));
if (!pingFinished) { if (!pingFinished) {
logger('ping timeout', url); logger('ping timeout', url);
} }

View File

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