@nuskin/ns-product-lib 2.13.0-cx24-5107.7 → 2.13.0-cx24-5107.9

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.13.0-cx24-5107.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.8...v2.13.0-cx24-5107.9) (2023-10-05)
2
+
3
+
4
+ ### Fix
5
+
6
+ * switch off legacy product data api ([62ca7a0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/62ca7a0c3a3901e98c88340e5652fbec77575a7e))
7
+
8
+ # [2.13.0-cx24-5107.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.7...v2.13.0-cx24-5107.8) (2023-10-03)
9
+
10
+
11
+ ### Fix
12
+
13
+ * variants label ([4d217a2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/4d217a2e8c390cb12e5c3f379bd7296f10df20aa))
14
+
1
15
  # [2.13.0-cx24-5107.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.13.0-cx24-5107.6...v2.13.0-cx24-5107.7) (2023-09-29)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.13.0-cx24-5107.7",
3
+ "version": "2.13.0-cx24-5107.9",
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": {
@@ -165,7 +165,6 @@ function mapProduct(product, market, locale, config) {
165
165
 
166
166
  //map only if it is normal product
167
167
  if (product.variants && !kitBundleProducts) {
168
- console.log(variants);
169
168
  productDetail.variants = mapVariants(product);
170
169
  }
171
170
 
@@ -248,7 +247,7 @@ function mapVariants(product) {
248
247
  "size": variant.size,
249
248
  "status": mapProductStatus(variant.status.status),
250
249
  "variantType": "Other",
251
- "variantDropdownLabel": product.variantSelectLabel || '',
250
+ "variantDropdownLabel": variant.variantLabel || '',
252
251
  "variantDropdownPlaceholder": "Select Type",
253
252
  "variantsLabel": variant.variantLabel || '',
254
253
  "variants": [],
@@ -21,14 +21,17 @@ const ProductData = {
21
21
  * @param {string} market
22
22
  */
23
23
  getProductData: async function (skus, locale, market) {
24
- const localeMarket = `${locale}_${market}`;
24
+ // const localeMarket = `${locale}_${market}`;
25
25
 
26
26
  const config = (await getConfiguration(['Equinox_Markets'])).Equinox_Markets;
27
- if (config.active) {
28
- return await getProduct(skus[0], market, locale, config);
29
- } else {
30
- return await this.getProductFromLegacy(skus, localeMarket);
31
- }
27
+ // if (config.active) {
28
+ // return await getProduct(skus[0], market, locale, config);
29
+ // } else {
30
+ // return await this.getProductFromLegacy(skus, localeMarket);
31
+ // }
32
+
33
+ return await getProduct(skus[0], market, locale, config);
34
+
32
35
  },
33
36
 
34
37
  getProductFromEquinox: async function (skus, locale, config) {