@nuskin/ns-product-lib 2.13.0-cx24-5107.8 → 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,10 @@
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
+
1
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)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.13.0-cx24-5107.8",
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": {
@@ -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) {