@opexa/portal-sdk 0.59.116 → 0.59.117

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
@@ -9947,6 +9947,7 @@ var Transformer = class {
9947
9947
  const name = node.displayName?.trim() || node.name;
9948
9948
  if (!name) return null;
9949
9949
  const fallback = `${ENDPOINTS.production.static}/images/${node.provider.toLowerCase()}/thumbnail-${node.id}.webp`;
9950
+ const fallback2 = `${ENDPOINTS.production.static}/images/${node.provider.toLowerCase()}/thumbnail-${objectId.ObjectId.from(node.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
9950
9951
  return {
9951
9952
  id: node.id,
9952
9953
  reference: node.reference,
@@ -9954,7 +9955,9 @@ var Transformer = class {
9954
9955
  type: node.type,
9955
9956
  provider: node.provider,
9956
9957
  images: [
9957
- ...new Set(node.image?.url ? [node.image.url, fallback] : [fallback])
9958
+ ...new Set(
9959
+ node.image?.url ? [node.image.url, fallback, fallback2] : [fallback, fallback2]
9960
+ )
9958
9961
  ],
9959
9962
  tags: [],
9960
9963
  favorite: false
@@ -10385,11 +10388,12 @@ var Transformer = class {
10385
10388
  }
10386
10389
  topWin__next(data) {
10387
10390
  const image = `${ENDPOINTS.production.static}/images/${data.game.provider.toLowerCase()}/thumbnail-${data.game.id}.webp?cache_id=${IMAGE_CACHE_ID}`;
10391
+ const imageFallback = `${ENDPOINTS.production.static}/images/${data.game.provider.toLowerCase()}/thumbnail-${objectId.ObjectId.from(data.game.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
10388
10392
  return {
10389
10393
  id: data.id,
10390
10394
  game: {
10391
10395
  ...data.game,
10392
- images: [image]
10396
+ images: [image, imageFallback]
10393
10397
  },
10394
10398
  member: data.member,
10395
10399
  multiplier: parseDecimal(data.multiplier, 0),