1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 13:01:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

...

2 Commits

Author SHA1 Message Date
sunnylqm
20dfa0461c bump version 2022-05-31 09:54:37 +08:00
sunnylqm
55aaf4fa45 fix: switchVersion after switchVersionLater 2022-05-31 09:52:24 +08:00
2 changed files with 2 additions and 12 deletions

View File

@@ -181,11 +181,7 @@ export async function downloadUpdate(options, eventListeners) {
}
if (downloadedHash === options.hash) {
logger(`duplicated downloaded hash ${downloadedHash}, ignored`);
return;
}
if (readyHash) {
logger(`hash ${readyHash} applied. reboot first`);
return;
return downloadedHash;
}
if (downloadingThrottling) {
logger('repeated downloading, ignored');
@@ -261,7 +257,6 @@ export async function downloadUpdate(options, eventListeners) {
return options.hash;
}
let readyHash;
function assertHash(hash) {
if (!downloadedHash) {
logger(`no downloaded hash`);
@@ -271,11 +266,6 @@ function assertHash(hash) {
logger(`use downloaded hash ${downloadedHash} first`);
return;
}
if (readyHash === hash) {
logger(`hash ${readyHash} already applied. reboot first.`);
return;
}
readyHash = hash;
return true;
}

View File

@@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "7.4.1",
"version": "7.4.2",
"description": "react-native hot update",
"main": "lib/index.js",
"scripts": {