@nuskin/ns-product-lib 2.5.0-cx24-2179.2.13 → 2.5.0-cx24-2179.2.14
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 +4 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [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)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* 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))
|
7
|
+
|
1
8
|
# [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
9
|
|
3
10
|
|
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
|
}
|
@@ -35,14 +36,14 @@ const ProductData = {
|
|
35
36
|
const filter = `{"filters": [{"field": "index_key_skuId","operation": "IN", "value": "${skus.toString()}"}]}`;
|
36
37
|
axios.defaults.withCredentials = true;
|
37
38
|
|
38
|
-
const url = `${config.API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
|
39
|
+
const url = `${config.Equinox_Markets.API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
|
39
40
|
const href = `${url}?filter=${encodeURI(filter)}`;
|
40
41
|
const response = await axios.request({
|
41
42
|
method: 'get',
|
42
43
|
url: href,
|
43
44
|
params: {
|
44
45
|
locale,
|
45
|
-
storeId: config.store_id
|
46
|
+
storeId: config.Equinox_Markets.store_id
|
46
47
|
},
|
47
48
|
headers: this.getEquinoxRequestHeaders(),
|
48
49
|
responseType: 'json'
|