vanilli-shop-client
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193629
4343