react-native-iap 12.14.2-rc.1 → 12.15.1

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.
@@ -29,8 +29,7 @@ class LatestPromiseKeeper {
29
29
  ongoingRequest = nil
30
30
  }
31
31
 
32
- // Clear the latestPromise after rejecting it
33
- latestPromise.atomically { $0 = nil }
32
+ clearLatestPromiseAndRequest()
34
33
  }
35
34
 
36
35
  func resolveIfRequestMatches(matchingRequest: SKProductsRequest, items: [[String: Any?]], operation: (RCTPromiseResolveBlock, [[String: Any?]]) -> Void) {
@@ -43,5 +42,11 @@ class LatestPromiseKeeper {
43
42
  operation(resolve, items)
44
43
  }
45
44
  }
45
+ clearLatestPromiseAndRequest()
46
+ }
47
+
48
+ private func clearLatestPromiseAndRequest() {
49
+ latestPromise.atomically { $0 = nil }
50
+ latestRequest.atomically { $0 = nil }
46
51
  }
47
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "12.14.2-rc.1",
3
+ "version": "12.15.1",
4
4
  "description": "React Native In App Purchase Module.",
5
5
  "repository": "https://github.com/dooboolab-community/react-native-iap",
6
6
  "author": "hyochan <dooboolab@gmail.com> (https://github.com/hyochan)",