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
0
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.18.0 to 2.19.0

4

package.json
{
"name": "@nuskin/ns-product-lib",
"version": "2.18.0",
"version": "2.19.0",
"description": "This project contains shared Product models and code between the backend and frontend.",

@@ -25,3 +25,3 @@ "main": "src/index.js",

"@nuskin/ns-util": "4.5.4",
"@nuskin/product-lib": "2.2.0",
"@nuskin/product-lib": "2.2.1",
"axios": "1.6.7",

@@ -28,0 +28,0 @@ "axios-mock-adapter": "1.21.2",

@@ -554,4 +554,7 @@ const ProductStatus = require("../models/productStatus");

const parsedPricing = JSON.parse(product.pricingJson)
const promotion = parsedPricing.promotion
let promotion = parsedPricing.promotion
if (promotion && promotion.length) {
if (promotion.length > 1) {
promotion = promotion.filter(p=>p.message !== 'Bundle discount')
}
const offerId = promotion[0].offerId || 'EQPROMO'

@@ -558,0 +561,0 @@ return {

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