@nuskin/ns-product-lib
Advanced tools
Comparing version 2.15.0 to 2.15.1
{ | ||
"name": "@nuskin/ns-product-lib", | ||
"version": "2.15.0", | ||
"version": "2.15.1", | ||
"description": "This project contains shared Product models and code between the backend and frontend.", | ||
@@ -24,3 +24,3 @@ "main": "src/index.js", | ||
"@nuskin/ns-common-lib": "1.4.7", | ||
"@nuskin/ns-util": "4.5.3", | ||
"@nuskin/ns-util": "4.5.4", | ||
"axios": ">=1.6.5", | ||
@@ -27,0 +27,0 @@ "axios-mock-adapter": "1.21.2", |
@@ -10,3 +10,3 @@ | ||
function backOrderDate(product) { | ||
if (product.inventoryProperties && product.inventoryProperties.expectedBackOrderAvailabilityDate) { | ||
if (product.inventoryProperties && Object.hasOwnProperty.call(product.inventoryProperties, 'expectedBackOrderAvailabilityDate')) { | ||
return product.inventoryProperties.expectedBackOrderAvailabilityDate; | ||
@@ -13,0 +13,0 @@ } |
@@ -28,8 +28,8 @@ "use strict"; | ||
if (config.active) { | ||
return (config.MySite_graphql_active_list.includes(market)) ? | ||
await getProduct(skus[0], market, locale, config) : | ||
return (config.MySite_graphql_active_list.includes(market)) ? | ||
await getProduct(skus[0], market, locale, config) : | ||
await this.getProductFromEquinox(skus, localeMarket, config) | ||
} else { | ||
return (config.MySite_graphql_active_list.includes(market)) ? | ||
await getProduct(skus[0], market, locale, config) : | ||
return (config.MySite_graphql_active_list.includes(market)) ? | ||
await getProduct(skus[0], market, locale, config) : | ||
await this.getProductFromLegacy(skus, localeMarket); | ||
@@ -154,6 +154,4 @@ } | ||
getAvailableQty: function (inventory) { | ||
if (!inventory || (!Object.prototype.hasOwnProperty.call(inventory, 'backOrdered') | ||
|| !Object.prototype.hasOwnProperty.call(inventory, 'atpQty') | ||
|| !Object.prototype.hasOwnProperty.call(inventory, 'backOrderedQty')) | ||
) { | ||
if (!inventory || !Object.hasOwnProperty.call(inventory, 'backOrdered') | ||
|| !Object.hasOwnProperty.call(inventory, 'atpQty') || !Object.hasOwnProperty.call(inventory, 'backOrderedQty')) { | ||
return 0; | ||
@@ -160,0 +158,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142990
4815