@nuskin/ns-product-lib 2.5.0-cx24-2179.2.12 → 2.5.0-cx24-2179.2.13
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 +3 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [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
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* undefined value of the URL (CX24-3122,CX24-3234) ([1ea65a7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1ea65a7cf8249dfa4a378a66e74823aca76f5566))
|
7
|
+
|
1
8
|
# [2.5.0-cx24-2179.2.12](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.5.0-cx24-2179.2.11...v2.5.0-cx24-2179.2.12) (2023-01-23)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -31,18 +31,18 @@ const ProductData = {
|
|
31
31
|
},
|
32
32
|
|
33
33
|
getProductFromEquinox: async function (skus, locale, config) {
|
34
|
-
|
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.
|
38
|
+
const url = `${config.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.
|
45
|
+
storeId: config.store_id
|
46
46
|
},
|
47
47
|
headers: this.getEquinoxRequestHeaders(),
|
48
48
|
responseType: 'json'
|