@umituz/react-native-subscription 2.31.16 → 2.31.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.31.16",
3
+ "version": "2.31.18",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -39,7 +39,7 @@
39
39
  "expo-image": ">=3.0.0",
40
40
  "firebase": ">=10.0.0",
41
41
  "react": ">=19.0.0",
42
- "react-native": "0.81.4",
42
+ "react-native": "*",
43
43
  "react-native-purchases": ">=7.0.0",
44
44
  "react-native-safe-area-context": ">=5.0.0",
45
45
  "zustand": ">=5.0.0"
@@ -10,7 +10,6 @@ export async function fetchOfferings(deps: OfferingsFetcherDeps): Promise<Purcha
10
10
  const offerings = await Purchases.getOfferings();
11
11
  return offerings.current;
12
12
  } catch (error) {
13
- console.error('[OfferingsFetcher] Failed to fetch offerings', { error });
14
- return null;
13
+ throw new Error(`Failed to fetch offerings: ${error instanceof Error ? error.message : "Unknown error"}`);
15
14
  }
16
15
  }