@nuskin/ns-product-lib 2.7.0-cx24-3682.7 → 2.7.0-cx24-3682.8

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.7.0-cx24-3682.8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.0-cx24-3682.7...v2.7.0-cx24-3682.8) (2023-03-26)
2
+
3
+
4
+ ### New
5
+
6
+ * MySite product cards show blank data when users have setup AEM Base SKU's(55) in Admin #CX24-3682 ([3d69bbe](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/3d69bbe486f13f4ae2a9fe4c07f53c4d27932177)), closes [#CX24-3682](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3682)
7
+
1
8
  # [2.7.0-cx24-3682.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.0-cx24-3682.6...v2.7.0-cx24-3682.7) (2023-03-25)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.7.0-cx24-3682.7",
3
+ "version": "2.7.0-cx24-3682.8",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@ const httpStatus = { notFound: 404 };
8
8
  * Note: Do not polute this file. Create a new file for new interceptor.
9
9
  *
10
10
  * @param {import('axios').AxiosError} error
11
- * @returns {import('axios').AxiosError<import('../').EquinoxResponse>}
11
+ * @returns {import('axios').AxiosResponse<import('../').EquinoxResponse>}
12
12
  */
13
13
  function productNotFoundInterceptor(error) {
14
14
  const segments = 'catalogs/search';
@@ -20,18 +20,17 @@ function productNotFoundInterceptor(error) {
20
20
  const sku = getSKU(filterParam);
21
21
 
22
22
  if (sku !== null) {
23
- return {
24
- ...error,
25
- response: {
26
- ...error.response,
27
- data: {
28
- product: [
29
- productNotFound(sku)
30
- ]
31
- },
32
- statusText: getStatusText(error.response)
33
- }
34
- }
23
+ const response = {
24
+ ...error.response,
25
+ data: {
26
+ product: [
27
+ productNotFound(sku)
28
+ ]
29
+ },
30
+ statusText: getStatusText(error.response)
31
+ };
32
+
33
+ return response;
35
34
  }
36
35
 
37
36
  console.error('Unable to detect SKU from the given parameter', filterParam);