react-native-update 10.31.1 → 10.31.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.
@@ -178,7 +178,9 @@ RCT_EXPORT_MODULE(RCTPushy);
178
178
  NSDictionary *pushyInfo = [defaults dictionaryForKey:keyPushyInfo];
179
179
  NSString *currentVersion = [pushyInfo objectForKey:paramCurrentVersion];
180
180
  ret[@"currentVersion"] = currentVersion;
181
- ret[@"currentVersionInfo"] = [defaults objectForKey:[keyHashInfo stringByAppendingString:currentVersion]];
181
+ if (currentVersion != nil) {
182
+ ret[@"currentVersionInfo"] = [defaults objectForKey:[keyHashInfo stringByAppendingString:currentVersion]];
183
+ }
182
184
 
183
185
  // clear isFirstTimemarked
184
186
  if (ret[@"isFirstTime"]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.31.1",
3
+ "version": "10.31.2",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {