@azzas/azzas-tracker-web 2.0.0-preview.7 → 2.0.0-preview.8

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.
@@ -2499,6 +2499,12 @@ var AzzasTracker = function() {
2499
2499
  return context.meta.ordering || null;
2500
2500
  }
2501
2501
  };
2502
+ // src/core/farm.ts
2503
+ var BRAND_CODES2 = {
2504
+ farm: "farmrio",
2505
+ "farm etc": "farmetc",
2506
+ "farm rio": "farmrio"
2507
+ };
2502
2508
  // src/params/adapters/deco/utils.ts
2503
2509
  var getItemCategory3 = function(item) {
2504
2510
  var _text_match;
@@ -2520,11 +2526,6 @@ var AzzasTracker = function() {
2520
2526
  var deepest = (_validHierarchy_ = validHierarchy[validHierarchy.length - 1]) !== null && _validHierarchy_ !== void 0 ? _validHierarchy_ : "";
2521
2527
  return capitalize(deepest);
2522
2528
  };
2523
- var BRAND_CODES2 = {
2524
- farm: "farmrio",
2525
- "farm etc": "farmetc",
2526
- "farm rio": "farmrio"
2527
- };
2528
2529
  // src/params/adapters/deco/index.ts
2529
2530
  var IN_STOCK_SCHEMA = "https://schema.org/InStock";
2530
2531
  var LIST_PRICE_SCHEMA = "https://schema.org/ListPrice";
@@ -2893,9 +2894,14 @@ var AzzasTracker = function() {
2893
2894
  }
2894
2895
  return null;
2895
2896
  },
2897
+ brand: function(context, config2) {
2898
+ if (config2 === null || config2 === void 0 ? void 0 : config2.brand) return config2.brand;
2899
+ if (context === null || context === void 0 ? void 0 : context.brand) return context.brand;
2900
+ return null;
2901
+ },
2896
2902
  zipcode: function(context) {
2897
- var _context_zipcode;
2898
- return (_context_zipcode = context.zipcode) !== null && _context_zipcode !== void 0 ? _context_zipcode : null;
2903
+ var _context_meta_zipcode;
2904
+ return (_context_meta_zipcode = context.meta.zipcode) !== null && _context_meta_zipcode !== void 0 ? _context_meta_zipcode : null;
2899
2905
  }
2900
2906
  });
2901
2907
  // src/params/adapters/orderForm/utils.ts
@@ -3028,8 +3034,8 @@ var AzzasTracker = function() {
3028
3034
  }).join(" | ");
3029
3035
  },
3030
3036
  zipcode: function(context) {
3031
- var _context_zipcode;
3032
- return (_context_zipcode = context.zipcode) !== null && _context_zipcode !== void 0 ? _context_zipcode : null;
3037
+ var _context_meta_zipcode;
3038
+ return (_context_meta_zipcode = context.meta.zipcode) !== null && _context_meta_zipcode !== void 0 ? _context_meta_zipcode : null;
3033
3039
  },
3034
3040
  flag_pickup: function(context) {
3035
3041
  var _orderForm_shippingData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azzas/azzas-tracker-web",
3
- "version": "2.0.0-preview.7",
3
+ "version": "2.0.0-preview.8",
4
4
  "type": "module",
5
5
  "main": "./dist/mod.cjs",
6
6
  "module": "./dist/mod.js",