@nuskin/ns-product-lib 2.5.0-cx24-2931.1.1 → 2.5.0-cx24-2931.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/productData.js +11 -16
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# [2.5.0-cx24-2931.1.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2931.1.1...v2.5.0-cx24-2931.1.2) (2022-12-14)
|
2
|
+
|
3
|
+
|
4
|
+
### Update
|
5
|
+
|
6
|
+
* use configuration-sdk to pull the configurations (CX24-2931) ([73acfe8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/73acfe8c8aac29e11367f329889956b857460d72))
|
7
|
+
* use configuration-sdk to pull the configurations (CX24-2931) ([65c81f5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/65c81f5486712690f9cda8faf4e2264238009e82))
|
8
|
+
|
1
9
|
# [2.5.0-cx24-2931.1.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-CX24.3.1...v2.5.0-cx24-2931.1.1) (2022-12-13)
|
2
10
|
|
3
11
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
const {
|
2
|
+
const { getConfiguration } = require('@nuskin/configuration-sdk');
|
3
3
|
// import { ConfigService } from '@nuskin/ns-util';
|
4
4
|
const axios = require("axios");
|
5
5
|
const contentstack = require('./contentstack/contentstack');
|
@@ -17,21 +17,16 @@ const ProductData = {
|
|
17
17
|
const localeMarket = `${locale}_${market}`;
|
18
18
|
|
19
19
|
if (isEquinoxEnabled) {
|
20
|
-
const
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
).Equinox_Markets;
|
31
|
-
console.log(Dev_Markets, Kong_Subdomain, store_id);
|
32
|
-
|
33
|
-
if (store_id !== null) {
|
34
|
-
return await this.getProductFromEquinox(skus, localeMarket, store_id);
|
20
|
+
const config = getConfiguration({
|
21
|
+
configMapNames: ['Equinox_Markets'],
|
22
|
+
country: market,
|
23
|
+
environment: 'test',
|
24
|
+
clientId: '735b1eb810304bba966af0891ab54053'
|
25
|
+
});
|
26
|
+
console.log(config);
|
27
|
+
|
28
|
+
if (config !== null) {
|
29
|
+
// return await this.getProductFromEquinox(skus, localeMarket, store_id);
|
35
30
|
}
|
36
31
|
}
|
37
32
|
|