react-native-update 10.4.1 → 10.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.tsx +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.4.1",
3
+ "version": "10.4.2",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/provider.tsx CHANGED
@@ -159,8 +159,10 @@ export const PushyProvider = ({
159
159
  const markSuccess = client.markSuccess;
160
160
 
161
161
  useEffect(() => {
162
- if (__DEV__) {
163
- console.info('检测到在DEV环境,不会进行热更新检查');
162
+ if (__DEV__ && !options.debug) {
163
+ console.info(
164
+ '您当前处于开发环境且未启用debug,不会进行热更检查。如需在开发环境中调试热更,请在client中设置debug为true',
165
+ );
164
166
  return;
165
167
  }
166
168
  const { strategy, dismissErrorAfter, autoMarkSuccess } = options;