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.4.8 to 1.4.9

4

dist/stores/cart-store.js

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

var stock = product.stock;
if (stock && 1 > stock) {
if (stock && stock >= 0 && 1 > stock) {
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()]));

@@ -240,3 +240,3 @@ return false;

var stock = product.stock;
if (stock && qty > stock) {
if (stock && stock >= 0 && qty > stock) {
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()]));

@@ -243,0 +243,0 @@ return false;

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

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

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

if (stock && 1 > stock) {
if (stock && stock >= 0 && 1 > stock) {
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()]));

@@ -274,3 +274,3 @@ return false;

if (stock && qty > stock) {
if (stock && stock >= 0 && qty > stock) {
notificationStore.notifyError(translationStore.t("product.out-of-stock", "Toodet {0} on saadaval ainult {1}", [product.name, stock.toString()]));

@@ -277,0 +277,0 @@ return false;

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