@nuskin/ns-shop 7.0.11-cx24-7213.1 → 7.0.11-cx24-7213.3
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/package.json
CHANGED
|
@@ -47,18 +47,14 @@ function _getEquinoxSession() {
|
|
|
47
47
|
method: 'GET',
|
|
48
48
|
endpoint: 'customers'
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
const customerSession = sessionStorage.getItem('customerSession') ? JSON.parse(sessionStorage.getItem('customerSession')) : ''
|
|
51
|
+
if (customerSession === '') {
|
|
52
|
+
sessionStorage.setItem('customerSession', true)
|
|
53
|
+
return _equinoxRequest(equinoxRequestOptions)
|
|
54
|
+
} else {
|
|
55
|
+
return null
|
|
56
|
+
}
|
|
52
57
|
|
|
53
|
-
// const customerSession = sessionStorage.getItem('customerSession') ? JSON.parse(sessionStorage.getItem('customerSession')) : ''
|
|
54
|
-
// if (customerSession === '') {
|
|
55
|
-
// sessionStorage.setItem('customerSession', true)
|
|
56
|
-
// return _equinoxRequest(equinoxRequestOptions)
|
|
57
|
-
// } else {
|
|
58
|
-
// return null
|
|
59
|
-
// }
|
|
60
|
-
|
|
61
|
-
return _equinoxRequest(equinoxRequestOptions);
|
|
62
58
|
|
|
63
59
|
}
|
|
64
60
|
|
|
@@ -408,7 +404,7 @@ function _assembleChildSkus(requestData, options) {
|
|
|
408
404
|
if(personalOffer != null && productWithVariant.length > 0 && productWithVariant[0].variantSelected){
|
|
409
405
|
selectedVariants = productWithVariant[0].variantSelected;
|
|
410
406
|
}
|
|
411
|
-
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL")) return null
|
|
407
|
+
if (personalOffer != null && selectedVariants && cs.skuId != selectedVariants[cs.productId] && (cs.type !== "BUNDLE" && cs.type !== "OPTIONAL" && cs.type !== "SKUKIT")) return null
|
|
412
408
|
const childSku =
|
|
413
409
|
(personalOffer != null && selectedVariants && selectedVariants[cs.productId] && config.MySite_graphql_active)
|
|
414
410
|
? {
|