@nuskin/ns-product-lib 2.5.0-cx24-2179.2.13 → 2.5.0-cx24-2179.2.15
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 +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [2.5.0-cx24-2179.2.15](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.14...v2.5.0-cx24-2179.2.15) (2023-01-23)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* undefined value of the URL (CX24-3122,CX24-3234) ([5605d97](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/5605d971de278b941d9d5776563fc8681a6c732a))
|
7
|
+
|
8
|
+
# [2.5.0-cx24-2179.2.14](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.13...v2.5.0-cx24-2179.2.14) (2023-01-23)
|
9
|
+
|
10
|
+
|
11
|
+
### Fix
|
12
|
+
|
13
|
+
* undefined value of the URL (CX24-3122,CX24-3234) ([f1d22e6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f1d22e60995a1d7282559286c3195b5d51e96ad0))
|
14
|
+
|
1
15
|
# [2.5.0-cx24-2179.2.13](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.12...v2.5.0-cx24-2179.2.13) (2023-01-23)
|
2
16
|
|
3
17
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -22,7 +22,8 @@ const ProductData = {
|
|
22
22
|
country: market,
|
23
23
|
environment: 'test',
|
24
24
|
clientId: '735b1eb810304bba966af0891ab54053'
|
25
|
-
}))
|
25
|
+
}));
|
26
|
+
|
26
27
|
if (config.country_code != '') {
|
27
28
|
return await this.getProductFromEquinox(skus, localeMarket, config);
|
28
29
|
}
|
@@ -31,18 +32,17 @@ const ProductData = {
|
|
31
32
|
},
|
32
33
|
|
33
34
|
getProductFromEquinox: async function (skus, locale, config) {
|
34
|
-
console.trace(config);
|
35
35
|
const filter = `{"filters": [{"field": "index_key_skuId","operation": "IN", "value": "${skus.toString()}"}]}`;
|
36
36
|
axios.defaults.withCredentials = true;
|
37
37
|
|
38
|
-
const url = `${config.API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
|
38
|
+
const url = `${config.Equinox_Markets.API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
|
39
39
|
const href = `${url}?filter=${encodeURI(filter)}`;
|
40
40
|
const response = await axios.request({
|
41
41
|
method: 'get',
|
42
42
|
url: href,
|
43
43
|
params: {
|
44
44
|
locale,
|
45
|
-
storeId: config.store_id
|
45
|
+
storeId: config.Equinox_Markets.store_id
|
46
46
|
},
|
47
47
|
headers: this.getEquinoxRequestHeaders(),
|
48
48
|
responseType: 'json'
|