@nuskin/ns-product-lib 2.20.1-td-1017.1 → 2.21.0-td-1017.1
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 +2 -2
- package/src/graph-ql/product.js +2 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nuskin/ns-product-lib",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.21.0-td-1017.1",
|
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": {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"@nuskin/configuration-sdk": "3.0.0",
|
23
23
|
"@nuskin/ns-common-lib": "1.4.8",
|
24
24
|
"@nuskin/ns-util": "4.7.2",
|
25
|
-
"@nuskin/product-lib": "2.4.
|
25
|
+
"@nuskin/product-lib": "2.4.2-td-1017.1",
|
26
26
|
"axios": "1.8.3",
|
27
27
|
"axios-mock-adapter": "1.21.2",
|
28
28
|
"eslint": "^8.56.0",
|
package/src/graph-ql/product.js
CHANGED
@@ -258,7 +258,8 @@ function mapProduct(product, market, locale, config) {
|
|
258
258
|
const points = kitOrVariant.points
|
259
259
|
const isBackOrdered = kitOrVariant.status.inventory === 'backordered'
|
260
260
|
const promoData = mapPromos(kitOrVariant)
|
261
|
-
const productionBom =
|
261
|
+
const productionBom = kitBundleProducts && kitBundleProducts.isProductionBom
|
262
|
+
? kitBundleProducts.isProductionBom : false;
|
262
263
|
|
263
264
|
const productDetail = {
|
264
265
|
"sku": !kitBundleProducts ? defaultVariant.sku : product.id,
|