react-native-update 10.29.0-beta.1 → 10.29.0-beta.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.29.0-beta.1",
3
+ "version": "10.29.0-beta.2",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -429,8 +429,9 @@ export class Pushy {
429
429
  const errorMessage = `pdiff error: ${e.message}`;
430
430
  errorMessages.push(errorMessage);
431
431
  lastError = new Error(errorMessage);
432
- if (__DEV__) {
432
+ if (__DEV__ && !full) {
433
433
  succeeded = 'pdiff';
434
+ log('当前是开发环境,无法执行增量式热更新。如果需要在开发环境中测试全量热更新,请打开“忽略时间戳”开关再重试。');
434
435
  } else {
435
436
  log(errorMessage);
436
437
  }
package/src/provider.tsx CHANGED
@@ -256,9 +256,9 @@ export const UpdateProvider = ({
256
256
  }
257
257
  const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
258
258
  if (autoMarkSuccess) {
259
- // setTimeout(() => {
260
- markSuccess();
261
- // }, 1000);
259
+ setTimeout(() => {
260
+ markSuccess();
261
+ }, 1000);
262
262
  }
263
263
  if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {
264
264
  stateListener.current = AppState.addEventListener(