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 1.1.7 to 1.1.8

6

dist/stores/coupon-store.js

@@ -72,3 +72,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var notificationStore, result, data, e_1;
var notificationStore, result, data, coupon, e_1;
return __generator(this, function (_a) {

@@ -87,3 +87,5 @@ switch (_a.label) {

if (data.valid) {
this.setAppliedCoupon(data.result);
coupon = data.result;
this.setAppliedCoupon(coupon);
notificationStore.notifySuccess(this.translationStore.t("coupon.success", "Tellimusele rakendati {0}%-ne soodustus", [coupon.percentage.toFixed(2)]));
}

@@ -90,0 +92,0 @@ else {

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

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

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

if (data.valid) {
this.setAppliedCoupon(data.result);
const coupon = data.result;
this.setAppliedCoupon(coupon);
notificationStore.notifySuccess(this.translationStore.t("coupon.success", `Tellimusele rakendati {0}%-ne soodustus`, [coupon.percentage.toFixed(2)]));
} else {

@@ -21,0 +23,0 @@ notificationStore.notifyErrors(data.errors);

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