mkfashion-sdk 2.2.2 → 2.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mkfashion.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mkfashion-sdk",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "SDK para integrar o provador virtual mKFashion com suporte a Wake Commerce",
5
5
  "main": "src/mkfashion.js",
6
6
  "scripts": {
package/src/mkfashion.js CHANGED
@@ -361,7 +361,9 @@ const mkfashion = {
361
361
  identifier === product.productId
362
362
  if (isMatch) {
363
363
  this._log('Produto retornado do cache (add_to_cart)', { identifier })
364
- return { success: true, product: product }
364
+ // Retorna com ambas as chaves (data + product) para compatibilidade
365
+ // Bundle Gregory usa t.data.produtoVarianteId
366
+ return { success: true, data: product, product: product }
365
367
  }
366
368
  }
367
369