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

@reactioncommerce/api-plugin-carts

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactioncommerce/api-plugin-carts - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

src/mutations/transformAndValidateCart.test.js

2

package.json
{
"name": "@reactioncommerce/api-plugin-carts",
"description": "Carts plugin for the Reaction API",
"version": "1.3.2",
"version": "1.3.3",
"main": "index.js",

@@ -6,0 +6,0 @@ "type": "module",

@@ -17,3 +17,3 @@ import Logger from "@reactioncommerce/logger";

export default async function transformAndValidateCart(context, cart) {
const cartSchema = context.simpleSchemas.Cart;
const { simpleSchemas: { Cart: cartSchema } } = context;
updateCartFulfillmentGroups(context, cart);

@@ -20,0 +20,0 @@

@@ -23,3 +23,6 @@ import hashToken from "@reactioncommerce/api-utils/hashToken.js";

return Cart.findOne({ $or: [{ _id: cartId }, { anonymousAccessToken: hashToken(cartToken) }] });
return Cart.findOne({
_id: cartId,
anonymousAccessToken: hashToken(cartToken)
});
}
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