@nuskin/product-components 3.17.12-brw-4218.2 → 3.17.12-cx24-7022.2
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/.releaserc +1 -1
- package/docs/CHANGELOG.md +1 -1
- package/gl-sbom-npm-yarn.cdx.json +2 -2
- package/mixins/NsProductMixin.js +3 -17
- package/package.json +1 -1
package/.releaserc
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.17.12-
|
|
1
|
+
## [3.17.12-cx24-7022.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.17.12-cx24-7022.1...v3.17.12-cx24-7022.2) (2024-08-29)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.4",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:191ead6e-3231-4aec-b1af-3e1a8a1d0072",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2024-08-
|
|
7
|
+
"timestamp": "2024-08-29T09:29:04Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "GitLab",
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -662,7 +662,6 @@ const NsProductMixin = {
|
|
|
662
662
|
);
|
|
663
663
|
})
|
|
664
664
|
.catch(error => {
|
|
665
|
-
this.maxQuantity = shopProduct.maxQuantity;
|
|
666
665
|
console.error("Failed to retrieve add to cart quantity.", error);
|
|
667
666
|
})
|
|
668
667
|
.finally(() => {
|
|
@@ -707,14 +706,9 @@ const NsProductMixin = {
|
|
|
707
706
|
let backOrderDate = new Date(this.product.backOrderDate);
|
|
708
707
|
let today = new Date();
|
|
709
708
|
if (backOrderDate < today) {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
} else {
|
|
714
|
-
this.statusMessage = this.localTranslations.outOfStock;
|
|
715
|
-
this.statusMessageKey = "outOfStock";
|
|
716
|
-
this.disable();
|
|
717
|
-
}
|
|
709
|
+
this.statusMessage = this.localTranslations.outOfStock;
|
|
710
|
+
this.statusMessageKey = "outOfStock";
|
|
711
|
+
this.disable();
|
|
718
712
|
}
|
|
719
713
|
}
|
|
720
714
|
} else {
|
|
@@ -1124,14 +1118,6 @@ const NsProductMixin = {
|
|
|
1124
1118
|
productToAdd.equinoxProductId = productIdentifier;
|
|
1125
1119
|
//productToAdd.properties = productData.products[0].properties
|
|
1126
1120
|
}
|
|
1127
|
-
if (
|
|
1128
|
-
productToAdd.backOrderDate &&
|
|
1129
|
-
new Date(productToAdd.backOrderDate) > new Date()
|
|
1130
|
-
) {
|
|
1131
|
-
productToAdd.inventory = "BACKORDER";
|
|
1132
|
-
productToAdd.properties.isBackOrdered = true;
|
|
1133
|
-
productToAdd.properties.inventoryStatus = "BACKORDER";
|
|
1134
|
-
}
|
|
1135
1121
|
options.product = new ShopProduct(productToAdd);
|
|
1136
1122
|
options.add = {
|
|
1137
1123
|
item: {
|