@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.mjs CHANGED
@@ -3371,7 +3371,7 @@ var init_ApiClient = __esm({
3371
3371
  init_ApiCache();
3372
3372
  init_EventBatcher();
3373
3373
  init_FlagStorage();
3374
- SDK_VERSION = "1.5.3";
3374
+ SDK_VERSION = "1.5.4";
3375
3375
  ApiClient = class {
3376
3376
  constructor(appKey, apiUrl, debug = false, environment = "Production", offlineQueueEnabled = true, timeout = 3e4) {
3377
3377
  this.cache = new ApiCache();
@@ -5640,10 +5640,11 @@ function useSubscriptionSync() {
5640
5640
  if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit: active entitlement found", activeTransactions[0].productId);
5641
5641
  return true;
5642
5642
  }
5643
- if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit: no entitlements, checking server");
5643
+ if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit: no active entitlements \u2192 showing paywall");
5644
+ return false;
5644
5645
  }
5645
5646
  } catch (err) {
5646
- if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit check failed, falling through", err);
5647
+ if (PaywalloClient.getConfig()?.debug) console.log("[Paywallo SUB] StoreKit check failed, falling through to server", err);
5647
5648
  }
5648
5649
  const cached = cacheRef.current;
5649
5650
  if (cached && cached.expiresAt > Date.now()) return isActiveCacheEntry(cached);