@nuskin/ns-product-lib 2.5.0-cx24-2931.1.7 → 2.5.0-cx24-2931.1.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.5.0-cx24-2931.1.9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.8...v2.5.0-cx24-2931.1.9) (2022-12-14)
2
+
3
+
4
+ ### Update
5
+
6
+ * use configuration-sdk to pull the configurations (CX24-2931) ([24096f4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/24096f46bc77881ca7273b10d9fbef85757d2d92))
7
+
8
+ # [2.5.0-cx24-2931.1.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.7...v2.5.0-cx24-2931.1.8) (2022-12-14)
9
+
10
+
11
+ ### Update
12
+
13
+ * use configuration-sdk to pull the configurations (CX24-2931) ([2f1a466](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2f1a466c39ea57e095e8de53cd4651aa2cf6cc8d))
14
+
1
15
  # [2.5.0-cx24-2931.1.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.6...v2.5.0-cx24-2931.1.7) (2022-12-14)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.5.0-cx24-2931.1.7",
3
+ "version": "2.5.0-cx24-2931.1.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": {
@@ -17,20 +17,20 @@ const ProductData = {
17
17
  const localeMarket = `${locale}_${market}`;
18
18
 
19
19
  if (isEquinoxEnabled) {
20
- const config = (await getConfiguration({
20
+ const config = await getConfiguration({
21
21
  configMapNames: ['Equinox_Markets'],
22
22
  country: market,
23
23
  environment: 'dev',
24
24
  clientId: '735b1eb810304bba966af0891ab54053'
25
- })).Equinox_Markets;
26
-
25
+ });
27
26
  return await this.getProductFromEquinox(skus, localeMarket, config);
28
27
  }
29
-
28
+
30
29
  return await this.getProductFromLegacy(skus, localeMarket);
31
30
  },
32
-
31
+
33
32
  getProductFromEquinox: async function (skus, locale, config) {
33
+ console.log(config);
34
34
  const filter = `{"filters": [{"field": "index_key_skuId","operation": "IN", "value": "${skus.toString()}"}]}`;
35
35
  axios.defaults.withCredentials = true;
36
36