@nuskin/ns-product-lib 2.9.0-cx24-4460.1 → 2.9.0-cx24-4460.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 +4 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# [2.9.0-cx24-4460.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.9.0-cx24-4460.1...v2.9.0-cx24-4460.2) (2023-06-21)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Change API Base URLs for My Site ([f6e2cbf](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/f6e2cbf3ce9bcbd1c8fa85c53b8000de8048d3fc))
|
7
|
+
* Change API Base URLs for My Site ([5621d64](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/5621d64be86d75c91837e11ca8f4267c49707971))
|
8
|
+
|
1
9
|
# [2.9.0-cx24-4460.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0...v2.9.0-cx24-4460.1) (2023-06-20)
|
2
10
|
|
3
11
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -68,7 +68,10 @@ const ProductData = {
|
|
68
68
|
|
69
69
|
const filter = skuFilter.join(" OR ")
|
70
70
|
|
71
|
-
|
71
|
+
let url = `${config.API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
|
72
|
+
if (window && window.aem && window.aem.ShoppingContext && window.aem.ShoppingContext.getShoppingContext().context === 'storefront') {
|
73
|
+
url = `${config.MySite_API_Base_URLs}/orchestrationservices/storefront/catalogs/search/`;
|
74
|
+
}
|
72
75
|
const href = `${url}?filter='\\\\''${encodeURI(filter)}'\\''`;
|
73
76
|
axios.interceptors.response.use((res) => res, productNotFoundInterceptor);
|
74
77
|
const response = await axios.request({
|