@manifoldxyz/marketplace-sdk 4.0.2 → 4.0.3

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.
@@ -1442,6 +1442,14 @@ class MarketplaceListing {
1442
1442
  _processTokenData(data) {
1443
1443
  if (data === null || data === void 0 ? void 0 : data.image) {
1444
1444
  data.image = this._cleanURI(data.image);
1445
+ // Handle video files incorrectly placed in the image field
1446
+ if (js_ts_utils_1.Media.isVideo.test(data.image) && !data.animation_url) {
1447
+ // Move video from image to animation_url
1448
+ data.animation_url = data.image;
1449
+ data.original_animation_url = data.image;
1450
+ // Clear image field or use a fallback
1451
+ data.image = undefined;
1452
+ }
1445
1453
  }
1446
1454
  if (data === null || data === void 0 ? void 0 : data.animation_url) {
1447
1455
  data.animation_url = this._cleanURI(data.animation_url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manifoldxyz/marketplace-sdk",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "typings": "dist/index.d.ts",
5
5
  "description": "",
6
6
  "main": "dist/index.js",