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

orderiom-api-package

Package Overview
Dependencies
Maintainers
1
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orderiom-api-package - npm Package Compare versions

Comparing version 0.3.13 to 0.3.14

2

package.json
{
"name": "orderiom-api-package",
"version": "0.3.13",
"version": "0.3.14",
"description": "This package will install all necessary API calls for every orderiom restaurant",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -164,6 +164,9 @@ import axios from "axios";

if(basketProduct) basketProduct.changingQuantity = true;
data.quantity = parseInt(data.quantity);
axios.post("api/basket/add", {
...basketId,
productId: data.productId,
quantity: data.quantity === null || data.quantity === undefined ? 1 : data.quantity,
quantity: !data.quantity || data.quantity < 1 ? 1 : data.quantity,
attributeItems: data.attributeItems.length ? data.attributeItems : undefined,

@@ -320,6 +323,9 @@ restaurantId: data.restaurantId,

data.quantity = parseInt(data.quantity);
if(basketProduct) basketProduct.changingQuantity = true;
return axios.post('api/basket/add-product-package-items', {
...basketId,
...data
...data,
quantity: !data.quantity || data.quantity < 1 ? 1 : data.quantity,
}).then(async () => {

@@ -326,0 +332,0 @@ return await dispatch('shoppingCartUpdateCallback', { restaurantId: data.restaurantId });

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