Socket
Socket
Sign inDemoInstall

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 0.9.11 to 0.9.12

1

dist/stores/cart-store.d.ts

@@ -24,4 +24,5 @@ import BaseStore from "./base-store";

increaseSelectedQty(): void;
private resetSelectedQty;
private updateCart;
private loadCart;
}

@@ -117,2 +117,3 @@ "use strict";

notificationStore.notifySuccess(translationStore.t("cart.added", "{0} lisati {1}tk ostukorvi", [item.productName || "", item.qty.toString()]));
this.resetSelectedQty();
}

@@ -171,2 +172,5 @@ else {

};
CartStore.prototype.resetSelectedQty = function () {
this.selectedQty = 1;
};
CartStore.prototype.updateCart = function () {

@@ -206,4 +210,7 @@ var serializedItems = JSON.stringify(this.cartItems);

], CartStore.prototype, "resetCart", null);
__decorate([
mobx_1.action
], CartStore.prototype, "resetSelectedQty", null);
return CartStore;
}(base_store_1.default));
exports.default = CartStore;

2

package.json
{
"name": "vanilli-shop-client",
"version": "0.9.11",
"version": "0.9.12",
"description": "Client for Vanilli Shop API",

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

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

notificationStore.notifySuccess(translationStore.t("cart.added", "{0} lisati {1}tk ostukorvi", [item.productName || "", item.qty.toString()]));
this.resetSelectedQty();
} else {

@@ -187,2 +188,7 @@ notificationStore.notifyError(translationStore.t("cart.min-qty", "Lisatav kogus peab olema vähemalt 1"));

@action
private resetSelectedQty() {
this.selectedQty = 1;
}
private updateCart() {

@@ -189,0 +195,0 @@ const serializedItems = JSON.stringify(this.cartItems);

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