@nuskin/ns-product-lib 1.4.2-cx15-4839.1 → 1.4.2-cx15-4839.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/product.js +2 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.4.2-cx15-4839.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.4.2-cx15-4839.1...v1.4.2-cx15-4839.2) (2022-04-07)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* made restrictedMarkets default to [] (#CX15-4839) ([110db9d](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/110db9d30a38727ff42931b840c9325380638b4c)), closes [#CX15-4839](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX15-4839)
|
7
|
+
|
1
8
|
## [1.4.2-cx15-4839.1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.4.1...v1.4.2-cx15-4839.1) (2022-04-07)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/product.js
CHANGED
@@ -16,6 +16,7 @@ const Product = function(productData) {
|
|
16
16
|
this.childSkus = [];
|
17
17
|
this.custTypes = [];
|
18
18
|
this.addOns = [];
|
19
|
+
this.restrictedMarkets = [];
|
19
20
|
this.productCarouselImages = [];
|
20
21
|
this.locallyProduced = false;
|
21
22
|
|
@@ -623,6 +624,7 @@ const Product = function(productData) {
|
|
623
624
|
this.searchScore = productData.searchScore ? productData.searchScore : 0;
|
624
625
|
this.marketAttributes = productData.marketAttributes;
|
625
626
|
this.addOns = productData.addOns || [];
|
627
|
+
this.restrictedMarkets = productData.restrictedMarkets || [];
|
626
628
|
|
627
629
|
if (data.priceType) {
|
628
630
|
this.addPricing(data.priceType, data.price);
|