@nuskin/ns-product-lib 2.7.0-cx24-3682.24 → 2.7.0-cx24-3682.26
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,18 @@
|
|
1
|
+
# [2.7.0-cx24-3682.26](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.0-cx24-3682.25...v2.7.0-cx24-3682.26) (2023-03-30)
|
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 ([60a05bc](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/60a05bcc303348bb95815c3dadbf688ba28ac728)), closes [#CX24-3682](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3682)
|
7
|
+
* MySite product cards show blank data when users have setup AEM Base SKU's(55) in Admin #CX24-3682 ([317d001](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/317d00129641d7422370b6c76f01c1a0459c9f2f)), closes [#CX24-3682](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3682)
|
8
|
+
|
9
|
+
# [2.7.0-cx24-3682.25](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.0-cx24-3682.24...v2.7.0-cx24-3682.25) (2023-03-29)
|
10
|
+
|
11
|
+
|
12
|
+
### New
|
13
|
+
|
14
|
+
* MySite product cards show blank data when users have setup AEM Base SKU's(55) in Admin #CX24-3682 ([26cfd63](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/26cfd63fdc12aff4465937e76b19ca9b3c76a6d5)), closes [#CX24-3682](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3682)
|
15
|
+
|
1
16
|
# [2.7.0-cx24-3682.24](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.0-cx24-3682.23...v2.7.0-cx24-3682.24) (2023-03-29)
|
2
17
|
|
3
18
|
|
package/package.json
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
* @property {string} identifier e.g., Normal - "blt8b757df6dcaa199c" | Kit - "02001076"
|
49
49
|
* @property {EquinoxProductProperties} properties
|
50
50
|
* @property {EquinoxProductVariant[]} sku or varaints - available only when product is a normal product.
|
51
|
-
* @property {boolean
|
51
|
+
* @property {boolean} [exists] indicates whethere the SKU exists or not (HTTP 404) e.g., false
|
52
52
|
*/
|
53
53
|
|
54
54
|
/**
|
@@ -24,7 +24,7 @@ function productNotFound(product, market) {
|
|
24
24
|
isExclusive: 'false',
|
25
25
|
market,
|
26
26
|
name: ` ${product.identifier}`,
|
27
|
-
productStatus: '
|
27
|
+
productStatus: 'stopped',
|
28
28
|
scanQualifiedCount: '0',
|
29
29
|
status: 'active',
|
30
30
|
title: ` ${product.identifier}`
|
@@ -35,11 +35,11 @@ function productNotFound(product, market) {
|
|
35
35
|
}
|
36
36
|
|
37
37
|
/**
|
38
|
-
* @param {boolean|
|
38
|
+
* @param {boolean|undefined} exists
|
39
39
|
*/
|
40
40
|
function mapExists(exists) {
|
41
41
|
if (exists === undefined) {
|
42
|
-
return
|
42
|
+
return true;
|
43
43
|
}
|
44
44
|
|
45
45
|
return exists;
|
package/src/product.js
CHANGED
package/src/productData.js
CHANGED
@@ -496,14 +496,10 @@ const ProductData = {
|
|
496
496
|
// for equinox products that exists.
|
497
497
|
// @todo: clean-up
|
498
498
|
if (exists === undefined) {
|
499
|
-
return
|
500
|
-
}
|
501
|
-
|
502
|
-
if (exists === false) {
|
503
|
-
return false;
|
499
|
+
return true;
|
504
500
|
}
|
505
501
|
|
506
|
-
return
|
502
|
+
return exists;
|
507
503
|
},
|
508
504
|
|
509
505
|
/**
|