@nuskin/ns-product-lib 2.5.0-cx24-2931.1.9 → 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 +7 -0
- package/package.json +1 -1
- package/src/productData.js +9 -10
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
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
|
+
|
1
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)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -17,20 +17,19 @@ const ProductData = {
|
|
17
17
|
const localeMarket = `${locale}_${market}`;
|
18
18
|
|
19
19
|
if (isEquinoxEnabled) {
|
20
|
-
|
21
|
-
configMapNames: ['Equinox_Markets'],
|
22
|
-
country: market,
|
23
|
-
environment: 'dev',
|
24
|
-
clientId: '735b1eb810304bba966af0891ab54053'
|
25
|
-
});
|
26
|
-
return await this.getProductFromEquinox(skus, localeMarket, config);
|
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
|
33
|
-
|
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
|
|