@nuskin/ns-product-lib 2.5.0-cx24-2931.1.8 → 2.5.0-cx24-2931.1.10

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