@azzas/azzas-tracker-web 2.0.2-preview.2 → 2.0.2-preview.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.
@@ -2667,7 +2667,7 @@ var AzzasTracker = function() {
2667
2667
  if (context === null || context === void 0 ? void 0 : context.products) {
2668
2668
  return context.products.map(function(item) {
2669
2669
  var _ref, _ref1, _item_isVariantOf_name, _ref2, _ref3, _item_groupRefId, _getItemCategory5, _getItemCategory23, _ref4, _ref5, _ref6, _resizeVtexImage2, _ref7, _ref8;
2670
- var _item_offers_offers, _item_offers, _item_brand_name, _item_brand, _item_offers1, _item_offers2, _item_name_split_, _item_name, _item_name1, _item_seo, _item_image, _item_offers_offers__seller, _item_offers_offers_, _item_offers_offers1, _item_offers3;
2670
+ var _item_offers_offers, _item_offers, _item_brand_name, _item_brand, _item_offers1, _item_offers2, _item_name_split_, _item_name, _item_name1, _item_isVariantOf, _item_seo, _item_image, _item_offers_offers__seller, _item_offers_offers_, _item_offers_offers1, _item_offers3;
2671
2671
  var listPrice = item === null || item === void 0 ? void 0 : (_item_offers = item.offers) === null || _item_offers === void 0 ? void 0 : (_item_offers_offers = _item_offers.offers) === null || _item_offers_offers === void 0 ? void 0 : _item_offers_offers[0].listPrice;
2672
2672
  return {
2673
2673
  quantity: 1,
@@ -2684,7 +2684,7 @@ var AzzasTracker = function() {
2684
2684
  item_ref: (_item_groupRefId = item.groupRefId) !== null && _item_groupRefId !== void 0 ? _item_groupRefId : null,
2685
2685
  item_category: (_getItemCategory5 = getItemCategory5(item)) !== null && _getItemCategory5 !== void 0 ? _getItemCategory5 : null,
2686
2686
  item_category2: (_getItemCategory23 = getItemCategory23(item)) !== null && _getItemCategory23 !== void 0 ? _getItemCategory23 : null,
2687
- item_id: (_ref4 = item === null || item === void 0 ? void 0 : item.id) !== null && _ref4 !== void 0 ? _ref4 : null,
2687
+ item_id: (_ref4 = item === null || item === void 0 ? void 0 : (_item_isVariantOf = item.isVariantOf) === null || _item_isVariantOf === void 0 ? void 0 : _item_isVariantOf.productGroupID) !== null && _ref4 !== void 0 ? _ref4 : null,
2688
2688
  item_sku: (_ref5 = item === null || item === void 0 ? void 0 : item.sku) !== null && _ref5 !== void 0 ? _ref5 : null,
2689
2689
  item_url: (_ref6 = item === null || item === void 0 ? void 0 : (_item_seo = item.seo) === null || _item_seo === void 0 ? void 0 : _item_seo.canonical) !== null && _ref6 !== void 0 ? _ref6 : null,
2690
2690
  image_url: (_resizeVtexImage2 = resizeVtexImage2(item === null || item === void 0 ? void 0 : (_item_image = item.image) === null || _item_image === void 0 ? void 0 : _item_image[0].url)) !== null && _resizeVtexImage2 !== void 0 ? _resizeVtexImage2 : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azzas/azzas-tracker-web",
3
- "version": "2.0.2-preview.2",
3
+ "version": "2.0.2-preview.3",
4
4
  "type": "module",
5
5
  "main": "./dist/mod.cjs",
6
6
  "module": "./dist/mod.js",