@umituz/react-native-subscription 2.37.78 → 2.37.80

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.37.78",
3
+ "version": "2.37.80",
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
  },
40
40
  "peerDependencies": {
41
41
  "@tanstack/react-query": ">=5.0.0",
42
- "@umituz/react-native-auth": ">=3.0.0",
42
+ "@umituz/react-native-auth": "*",
43
43
  "expo": ">=54.0.0",
44
44
  "expo-constants": ">=17.0.0",
45
45
  "expo-image": ">=3.0.0",
@@ -66,9 +66,9 @@
66
66
  "@types/react-native": "^0.72.8",
67
67
  "@typescript-eslint/eslint-plugin": "^8.50.1",
68
68
  "@typescript-eslint/parser": "^8.50.1",
69
- "@umituz/react-native-auth": "^3.8.3",
70
- "@umituz/react-native-design-system": "latest",
71
- "@umituz/react-native-firebase": "^2.4.0",
69
+ "@umituz/react-native-auth": "*",
70
+ "@umituz/react-native-design-system": "*",
71
+ "@umituz/react-native-firebase": "*",
72
72
  "eslint": "^9.39.2",
73
73
  "eslint-plugin-react": "^7.37.5",
74
74
  "eslint-plugin-react-hooks": "^7.0.1",
@@ -64,7 +64,7 @@ export const useDeductCredit = ({
64
64
  console.error('[useDeductCredit] Unexpected error during credit refund', {
65
65
  amount,
66
66
  userId,
67
- error
67
+ error: error instanceof Error ? error.message : String(error),
68
68
  });
69
69
  return false;
70
70
  }
@@ -36,8 +36,8 @@ export const PaywallModal: React.FC<PaywallModalProps> = React.memo((props) => {
36
36
  if (!url) return;
37
37
  try {
38
38
  if (await Linking.canOpenURL(url)) await Linking.openURL(url);
39
- } catch (_err) {
40
- // Silently fail - legal links are non-critical
39
+ } catch (error) {
40
+ console.error('[PaywallModal] Failed to open URL:', error instanceof Error ? error.message : String(error));
41
41
  }
42
42
  }, []);
43
43