@virex-tech/paywallo-sdk 1.1.0 → 1.1.1
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 +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -860,6 +860,11 @@ function usePaywallLoader(placement, visible, preloadedConfig, preloadedProducts
|
|
|
860
860
|
const storeProducts = await getIAPService().loadProducts(productIds);
|
|
861
861
|
const map = /* @__PURE__ */ new Map();
|
|
862
862
|
for (const p of storeProducts) map.set(p.productId, p);
|
|
863
|
+
if (PaywalloClient.getConfig()?.debug) {
|
|
864
|
+
for (const [id, p] of map) {
|
|
865
|
+
console.warn(`[Paywallo][CURRENCY-CHECK] product=${id} currency=${p.currency} price="${p.price}" localizedPrice="${p.localizedPrice}" priceValue=${p.priceValue} fallbackUSD=${!p.currency || p.currency === "USD" ? "POSSIBLE" : "NO"}`);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
863
868
|
setProducts(map);
|
|
864
869
|
} catch {
|
|
865
870
|
setProducts(/* @__PURE__ */ new Map());
|