@umituz/react-native-subscription 2.16.2 → 2.16.3
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.
|
|
3
|
+
"version": "2.16.3",
|
|
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",
|
|
@@ -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
|
|
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) {
|