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

vanilli-shop-client

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilli-shop-client - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

dist/stores/cart-store.d.ts

@@ -15,3 +15,3 @@ import BaseStore from "./base-store";

changeSelectedQty(qty: number): void;
addToCart(product: IProductDetailsDto): void;
addToCart(product: IProductDetailsDto, qty?: number): void;
changeItemQty(qty: number, itemId: string): void;

@@ -18,0 +18,0 @@ removeItem(id: string): void;

@@ -94,4 +94,6 @@ "use strict";

};
CartStore.prototype.addToCart = function (product) {
var qty = this.selectedQty;
CartStore.prototype.addToCart = function (product, qty) {
if (!qty) {
qty = this.selectedQty;
}
var notificationStore = this.notificationStore;

@@ -98,0 +100,0 @@ var translationStore = this.translationStore;

{
"name": "vanilli-shop-client",
"version": "1.1.2",
"version": "1.1.3",
"description": "Client for Vanilli Shop API",

@@ -26,6 +26,6 @@ "main": "dist/index.js",

"@types/uuid": "^8.3.0",
"mobx": "^6.2.0",
"mobx": "^6.3.0",
"react": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-toastify": "^7.0.3"
"react-toastify": "^7.0.4"
},

@@ -32,0 +32,0 @@ "dependencies": {

@@ -91,4 +91,7 @@ import BaseStore from "./base-store";

@action
addToCart(product: IProductDetailsDto) {
const qty = this.selectedQty;
addToCart(product: IProductDetailsDto, qty?: number) {
if (!qty) {
qty = this.selectedQty;
}
const notificationStore = this.notificationStore;

@@ -95,0 +98,0 @@ const translationStore = this.translationStore;

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