@umituz/react-native-subscription 2.27.136 → 2.27.138

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.27.136",
3
+ "version": "2.27.138",
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",
@@ -69,7 +69,7 @@ export const usePurchasePackage = () => {
69
69
 
70
70
  if (error instanceof Error) {
71
71
  // Handle RevenueCat-specific error codes
72
- const errorCode = (error as any).code;
72
+ const errorCode = 'code' in error ? (error as { code?: string }).code : undefined;
73
73
  const errorMessage = error.message;
74
74
 
75
75
  switch (errorCode) {