New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

couponable

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couponable - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

index.js

@@ -32,6 +32,2 @@ function priceFormat(amountInCents) {

if (orderItem.shippingOption) {
total += orderItem.shippingOption.priceInCents || 0;
}
if (orderItem.variation) {

@@ -38,0 +34,0 @@ total += orderItem.variation.priceInCents || 0;

2

package.json
{
"name": "couponable",
"description": "Helper functions for dealing with coupons.",
"version": "2.0.0",
"version": "3.0.0",
"author": "Chris McC",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -15,6 +15,5 @@ var couponable = require('.');

quantity: 2,
shippingOption: {priceInCents: 2},
variation: {priceInCents: 2},
priceInCents: 2
}), 12);
}), 8);
});

@@ -21,0 +20,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