@opexa/portal-sdk 0.59.117 → 0.59.123
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.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2628,7 +2628,8 @@ var Transformer = class {
|
|
|
2628
2628
|
return compact(o);
|
|
2629
2629
|
}
|
|
2630
2630
|
game(data) {
|
|
2631
|
-
const
|
|
2631
|
+
const fallback = `${ENDPOINTS.production.static}/images/${data.provider.toLowerCase()}/thumbnail-${ObjectId.from(data.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
|
|
2632
|
+
const images = [data.customImage, data.image, fallback].filter(Boolean).map((url) => {
|
|
2632
2633
|
invariant(url);
|
|
2633
2634
|
return url.includes("?") ? `${url}&cache_id=${IMAGE_CACHE_ID}` : `${url}?cache_id=${IMAGE_CACHE_ID}`;
|
|
2634
2635
|
});
|
|
@@ -2645,7 +2646,7 @@ var Transformer = class {
|
|
|
2645
2646
|
return o;
|
|
2646
2647
|
}
|
|
2647
2648
|
walletGame(node) {
|
|
2648
|
-
if (node.hidden ||
|
|
2649
|
+
if (node.hidden || !node.type || !node.provider) {
|
|
2649
2650
|
return null;
|
|
2650
2651
|
}
|
|
2651
2652
|
const name = node.displayName?.trim() || node.name;
|