react-native-update 9.0.4 → 9.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,3 @@
1
1
  -keepnames class cn.reactnative.modules.update.DownloadTask { *; }
2
+ -keepnames class cn.reactnative.modules.update.UpdateModuleImpl { *; }
2
3
  -keepnames class com.facebook.react.ReactInstanceManager { *; }
@@ -1 +1 @@
1
- 1693625865
1
+ 1680488830
package/lib/main.ts CHANGED
@@ -139,7 +139,7 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
139
139
  const now = Date.now();
140
140
  if (lastResult && lastChecking && now - lastChecking < 1000 * 60) {
141
141
  // logger('repeated checking, ignored');
142
- return lastResult || empty;
142
+ return lastResult;
143
143
  }
144
144
  lastChecking = now;
145
145
  if (blockUpdate && blockUpdate.until > Date.now() / 1000) {
@@ -190,7 +190,6 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
190
190
  //@ts-ignore
191
191
  message: result.message,
192
192
  });
193
- return lastResult;
194
193
  }
195
194
 
196
195
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "description": "react-native hot update",
5
5
  "main": "lib/index.ts",
6
6
  "scripts": {