@nuskin/ns-product-lib 1.4.3 → 1.4.4

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
+ ## [1.4.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.4.3...v1.4.4) (2022-06-10)
2
+
3
+
4
+ ### Fix
5
+
6
+ * Add locallyProduced flag from productStatus data in addPricingFromStatus function (#CX17-5611) ([0b4b819](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/0b4b819125e3dc0f4cc61a2116bcaeacb9555f9b)), closes [#CX17-5611](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX17-5611)
7
+
1
8
  ## [1.4.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.4.2...v1.4.3) (2022-05-03)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
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": {
package/src/product.js CHANGED
@@ -291,6 +291,7 @@ const Product = function(productData) {
291
291
  this.status = productStatus.status;
292
292
  this.availableQuantity = productStatus.availableQuantity;
293
293
  this.maxQuantity = productStatus.maxQuantity || 999;
294
+ this.locallyProduced = productStatus.locallyProduced || false;
294
295
  if (productStatus.backordered) {
295
296
  this.backOrderDate = productStatus.backorderedAvailableDate;
296
297
  }