vanilli-shop-client
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -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); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
196891
4410
0