expo-superwall 0.0.5 → 0.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fc22062: fix: android getSubscriptionStatus returning undefined
8
+
3
9
  ## 0.0.5
4
10
 
5
11
  ### Patch Changes
@@ -253,7 +253,7 @@ class SuperwallExpoModule : Module() {
253
253
 
254
254
  AsyncFunction("getSubscriptionStatus") { promise: Promise ->
255
255
  try {
256
- val subscriptionStatus = Superwall.instance.subscriptionStatus
256
+ val subscriptionStatus = Superwall.instance.subscriptionStatus.value.toJson()
257
257
  promise.resolve(subscriptionStatus)
258
258
  } catch (error: Exception) {
259
259
  promise.reject(CodedException(error))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-superwall",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Offical Expo Integration for Superwall",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -202,7 +202,7 @@ public class SuperwallExpoModule: Module {
202
202
  AsyncFunction("getSubscriptionStatus") { (promise: Promise) in
203
203
  print("Getting subscription status")
204
204
  let subscriptionStatus = Superwall.shared.subscriptionStatus
205
- promise.resolve(subscriptionStatus)
205
+ promise.resolve(subscriptionStatus.toJson())
206
206
  }
207
207
 
208
208
  Function("setSubscriptionStatus") { (status: [String: Any]) in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-superwall",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Offical Expo Integration for Superwall",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",