Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nuskin/ns-product-lib

Package Overview
Dependencies
Maintainers
5
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuskin/ns-product-lib - npm Package Compare versions

Comparing version 2.15.0 to 2.15.1

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc