@nuskin/ns-product-lib 1.5.0-cx24-1810.12 → 1.5.0-cx24-1810.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/src/productData.js +2 -7
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# [1.5.0-cx24-1810.13](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.12...v1.5.0-cx24-1810.13) (2022-08-01)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Get Product Data from Equinox (#CX24-1810) ([0458758](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/04587584f3236282c505fc736f4e05be3357ff84)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
|
7
|
+
* Get Product Data from Equinox (#CX24-1810) ([2d3373a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2d3373a1eb3757b92b05c455e7456611a6b57c8e)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
|
8
|
+
* Get Product Data from Equinox (#CX24-1810) ([260b1f8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/260b1f8f1cb38065767f08772617b621ccf40c0f)), closes [#CX24-1810](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-1810)
|
9
|
+
|
1
10
|
# [1.5.0-cx24-1810.12](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.5.0-cx24-1810.11...v1.5.0-cx24-1810.12) (2022-07-29)
|
2
11
|
|
3
12
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -9,7 +9,7 @@ const ProductData = {
|
|
9
9
|
let filter = '{"filters":[{"field":"index_key_skuId","operation":"IN","value":"' +
|
10
10
|
skus.toString() +
|
11
11
|
'"}]}'
|
12
|
-
|
12
|
+
axios.defaults.withCredentials = true
|
13
13
|
let productDataResponse = await axios.request({
|
14
14
|
method: 'get',
|
15
15
|
url: 'https://storefront.api.wts.nuskin.io/orchestrationservices/storefront/catalogs/search/',
|
@@ -17,14 +17,9 @@ const ProductData = {
|
|
17
17
|
locale: locale,
|
18
18
|
storeId: '406',
|
19
19
|
filter: filter
|
20
|
-
},
|
21
|
-
headers: {
|
22
|
-
'Cookie': cookie
|
23
20
|
}
|
24
21
|
});
|
25
22
|
productResponse = this.eqProductMapper(productDataResponse.data.product)
|
26
|
-
console.log(productDataResponse.headers)
|
27
|
-
cookie = productDataResponse.headers.cookie
|
28
23
|
|
29
24
|
} else {
|
30
25
|
let lambdaUrl = `${marketConfig.awsUrl}/productData/v1`;
|
@@ -68,7 +63,7 @@ const ProductData = {
|
|
68
63
|
"alt": ""
|
69
64
|
}
|
70
65
|
],
|
71
|
-
"thumbnail": "/content/products/24/
|
66
|
+
"thumbnail": "/content/products/24/11/08/24110845/jcr:content/fullImage.img.160.160.png/1490766406581-cache.png",
|
72
67
|
"ingredients": "",
|
73
68
|
"benefits": "",
|
74
69
|
"usage": "",
|