@opexa/portal-sdk 0.59.117 → 0.59.118
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
});
|