@nuskin/ns-product-lib 2.5.0-cx24-2931.1.6 → 2.5.0-cx24-2931.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/productData.js +7 -7
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [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
|
+
|
3
|
+
|
4
|
+
### Update
|
5
|
+
|
6
|
+
* 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))
|
7
|
+
|
8
|
+
# [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)
|
9
|
+
|
10
|
+
|
11
|
+
### Update
|
12
|
+
|
13
|
+
* use configuration-sdk to pull the configurations (CX24-2931) ([f54271c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f54271c59f12f0eefb20a7ced67efe7058f079a3))
|
14
|
+
|
1
15
|
# [2.5.0-cx24-2931.1.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.5...v2.5.0-cx24-2931.1.6) (2022-12-14)
|
2
16
|
|
3
17
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -17,20 +17,20 @@ const ProductData = {
|
|
17
17
|
const localeMarket = `${locale}_${market}`;
|
18
18
|
|
19
19
|
if (isEquinoxEnabled) {
|
20
|
-
const config =
|
20
|
+
const config = await getConfiguration({
|
21
21
|
configMapNames: ['Equinox_Markets'],
|
22
22
|
country: market,
|
23
|
-
environment: '
|
23
|
+
environment: 'dev',
|
24
24
|
clientId: '735b1eb810304bba966af0891ab54053'
|
25
|
-
})
|
26
|
-
|
27
|
-
return await this.getProductFromEquinox(skus, localeMarket, config);
|
25
|
+
});
|
26
|
+
return await this.getProductFromEquinox(skus, localeMarket, config.Equinox_Markets);
|
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
|
|