@virex-tech/paywallo-sdk 1.5.3 → 1.5.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/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3381,7 +3381,7 @@ var init_ApiClient = __esm({
|
|
|
3381
3381
|
init_ApiCache();
|
|
3382
3382
|
init_EventBatcher();
|
|
3383
3383
|
init_FlagStorage();
|
|
3384
|
-
SDK_VERSION = "1.5.
|
|
3384
|
+
SDK_VERSION = "1.5.4";
|
|
3385
3385
|
ApiClient = class {
|
|
3386
3386
|
constructor(appKey, apiUrl, debug = false, environment = "Production", offlineQueueEnabled = true, timeout = 3e4) {
|
|
3387
3387
|
this.cache = new ApiCache();
|
|
@@ -5707,10 +5707,11 @@ function useSubscriptionSync() {
|
|
|
5707
5707
|
if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit: active entitlement found", activeTransactions[0].productId);
|
|
5708
5708
|
return true;
|
|
5709
5709
|
}
|
|
5710
|
-
if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit: no entitlements
|
|
5710
|
+
if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit: no active entitlements \u2192 showing paywall");
|
|
5711
|
+
return false;
|
|
5711
5712
|
}
|
|
5712
5713
|
} catch (err) {
|
|
5713
|
-
if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit check failed, falling through", err);
|
|
5714
|
+
if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit check failed, falling through to server", err);
|
|
5714
5715
|
}
|
|
5715
5716
|
const cached = cacheRef.current;
|
|
5716
5717
|
if (cached && cached.expiresAt > Date.now()) return isActiveCacheEntry(cached);
|