@capgo/native-purchases 0.0.18 → 0.0.20

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <h2><a href="https://capgo.app/">Check out: Capgo — live updates for capacitor</a></h2>
6
6
  </div>
7
7
 
8
- In-app Subscriptions Made Easy
8
+ In-app Purchases Made Easy
9
9
 
10
10
  ## Install
11
11
 
@@ -261,6 +261,10 @@ public class NativePurchasesPlugin extends Plugin {
261
261
  @PluginMethod
262
262
  public void getProducts(PluginCall call) {
263
263
  JSONArray productIdentifiersArray = call.getArray("productIdentifiers");
264
+ if (productIdentifiersArray == null) {
265
+ call.reject("productIdentifiers is missing");
266
+ return;
267
+ }
264
268
  String productType = call.getString("productType", "inapp");
265
269
  List<String> productIdentifiers = new ArrayList<>();
266
270
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-purchases",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "In-app Subscriptions Made Easy",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",