@umituz/react-native-subscription 2.16.2 → 2.16.4

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.16.2",
3
+ "version": "2.16.4",
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",
@@ -114,7 +114,6 @@ export function useFeatureGate(
114
114
  };
115
115
  }
116
116
 
117
- // Re-export individual gates for standalone use
118
117
  export { useAuthGate, useSubscriptionGate, useCreditsGate };
119
118
  export type {
120
119
  UseAuthGateParams,
@@ -3,6 +3,8 @@
3
3
  * Shared utilities for subscription hook operations
4
4
  */
5
5
 
6
+ import { getSubscriptionService } from "../../infrastructure/services/SubscriptionService";
7
+
6
8
  export type AsyncSubscriptionOperation<T> = () => Promise<T>;
7
9
 
8
10
  /**
@@ -10,7 +12,7 @@ export type AsyncSubscriptionOperation<T> = () => Promise<T>;
10
12
  */
11
13
  export interface ServiceCheckResult {
12
14
  success: boolean;
13
- service: ReturnType<typeof import("../../infrastructure/services/SubscriptionService").getSubscriptionService> | null;
15
+ service: ReturnType<typeof getSubscriptionService> | null;
14
16
  error?: string;
15
17
  }
16
18
 
@@ -19,7 +21,6 @@ export interface ServiceCheckResult {
19
21
  * Returns service instance or error
20
22
  */
21
23
  export function checkSubscriptionService(): ServiceCheckResult {
22
- const { getSubscriptionService } = require("../../infrastructure/services/SubscriptionService");
23
24
  const service = getSubscriptionService();
24
25
 
25
26
  if (!service) {
@@ -22,7 +22,6 @@ import type {
22
22
  UseSubscriptionSettingsConfigParams,
23
23
  } from "../types/SubscriptionSettingsTypes";
24
24
 
25
- // Re-export types for convenience
26
25
  export type {
27
26
  SubscriptionSettingsConfig,
28
27
  SubscriptionSettingsItemConfig,