@umituz/react-native-subscription 2.27.142 → 2.27.143
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.
|
|
3
|
+
"version": "2.27.143",
|
|
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",
|
|
@@ -2,6 +2,7 @@ import Purchases, { type CustomerInfo, type PurchasesOfferings } from "react-nat
|
|
|
2
2
|
import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
|
|
3
3
|
import type { RevenueCatConfig } from "../../core/RevenueCatConfig";
|
|
4
4
|
import { resolveApiKey } from "../utils/ApiKeyResolver";
|
|
5
|
+
import { REVENUE_CAT_IGNORED_LOG_MESSAGES } from "../../core/SubscriptionDisplayConfig";
|
|
5
6
|
|
|
6
7
|
export interface InitializerDeps {
|
|
7
8
|
config: RevenueCatConfig;
|
|
@@ -27,12 +28,10 @@ function configureLogHandler(): void {
|
|
|
27
28
|
if (typeof Purchases.setLogHandler !== 'function') return;
|
|
28
29
|
try {
|
|
29
30
|
Purchases.setLogHandler((_logLevel, message) => {
|
|
30
|
-
|
|
31
|
-
if (ignoreMessages.some(m => message.includes(m))) return;
|
|
31
|
+
if (REVENUE_CAT_IGNORED_LOG_MESSAGES.some(m => message.includes(m))) return;
|
|
32
32
|
});
|
|
33
33
|
configurationState.isLogHandlerConfigured = true;
|
|
34
34
|
} catch {
|
|
35
|
-
// Failing to set log handler should not block initialization
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|