@capgo/native-purchases 7.5.4 → 7.5.5

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.
@@ -101,7 +101,7 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
101
101
  if let revocationDate = transaction.revocationDate {
102
102
  response["willCancel"] = ISO8601DateFormatter().string(from: revocationDate)
103
103
  } else {
104
- response["willCancel"] = nil
104
+ response["willCancel"] = NSNull()
105
105
  }
106
106
 
107
107
  await transaction.finish()
@@ -251,7 +251,7 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
251
251
  if let revocationDate = transaction.revocationDate {
252
252
  purchaseData["willCancel"] = ISO8601DateFormatter().string(from: revocationDate)
253
253
  } else {
254
- purchaseData["willCancel"] = nil
254
+ purchaseData["willCancel"] = NSNull()
255
255
  }
256
256
 
257
257
  allPurchases.append(purchaseData)
@@ -301,7 +301,7 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
301
301
  if let revocationDate = transaction.revocationDate {
302
302
  purchaseData["willCancel"] = ISO8601DateFormatter().string(from: revocationDate)
303
303
  } else {
304
- purchaseData["willCancel"] = nil
304
+ purchaseData["willCancel"] = NSNull()
305
305
  }
306
306
 
307
307
  allPurchases.append(purchaseData)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-purchases",
3
- "version": "7.5.4",
3
+ "version": "7.5.5",
4
4
  "description": "In-app Subscriptions Made Easy",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",