@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 CHANGED
@@ -9924,7 +9924,8 @@ var Transformer = class {
9924
9924
  return compact(o);
9925
9925
  }
9926
9926
  game(data) {
9927
- const images = [data.customImage, data.image].filter(Boolean).map((url) => {
9927
+ const fallback = `${ENDPOINTS.production.static}/images/${data.provider.toLowerCase()}/thumbnail-${objectId.ObjectId.from(data.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
9928
+ const images = [data.customImage, data.image, fallback].filter(Boolean).map((url) => {
9928
9929
  invariant(url);
9929
9930
  return url.includes("?") ? `${url}&cache_id=${IMAGE_CACHE_ID}` : `${url}?cache_id=${IMAGE_CACHE_ID}`;
9930
9931
  });
@@ -9941,7 +9942,7 @@ var Transformer = class {
9941
9942
  return o;
9942
9943
  }
9943
9944
  walletGame(node) {
9944
- if (node.hidden || node.status !== "ACTIVE" || !node.type || !node.provider) {
9945
+ if (node.hidden || !node.type || !node.provider) {
9945
9946
  return null;
9946
9947
  }
9947
9948
  const name = node.displayName?.trim() || node.name;