@nuskin/ns-product-lib 2.11.0-cx24-5092.26 → 2.11.0-cx24-5092.28

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.11.0-cx24-5092.28](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.27...v2.11.0-cx24-5092.28) (2023-09-18)
2
+
3
+
4
+ ### New
5
+
6
+ * Moving from AEM to CS for EQ markets ([2374b2e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2374b2e9abaac6bb92cfcea1d5b35a40f4cf742c))
7
+
8
+ # [2.11.0-cx24-5092.27](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.26...v2.11.0-cx24-5092.27) (2023-09-18)
9
+
10
+
11
+ ### New
12
+
13
+ * Moving from AEM to CS for EQ markets ([33228f8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/33228f8aad2be23c989d4d96f109c155c9fe7ac3))
14
+
1
15
  # [2.11.0-cx24-5092.26](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.25...v2.11.0-cx24-5092.26) (2023-09-18)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.11.0-cx24-5092.26",
3
+ "version": "2.11.0-cx24-5092.28",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -104,15 +104,15 @@ const ProductGraphQL = {
104
104
  let res;
105
105
  if (response.variants.length >= 1) {
106
106
  res = await this.mapProductRegular(response, market, locale, config)
107
+ const productID = (response.id) ? response.id : response.variants[0].id
108
+ const promotions = await this.getProductPromotions(response.variants[0].sku, productID, config, locale)
109
+ console.log(promotions)
107
110
  }
108
111
  if (response.bundles) {
109
112
  res = await this.mapProductBundle(response, market.locale, config)
110
113
  }
111
114
 
112
- const productID = (response.id) ? response.id : response.variants[0].id
113
115
 
114
- const promotions = await this.getProductPromotions(response.variants[0].sku, productID, config, locale)
115
- console.log(promotions)
116
116
  return res;
117
117
  },
118
118
 
@@ -266,7 +266,7 @@ const ProductGraphQL = {
266
266
  },
267
267
  mapProductBundle: async function (response, market, locale) {
268
268
  let res;
269
- res = this.mapProductRegular(response.bundles.kitProducts[0].product, market, locale)
269
+ res = this.mapProductRegular(response.bundle.kitProducts[0].product, market, locale)
270
270
  return res;
271
271
  },
272
272
  /**