vanilli-shop-client
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -29,3 +29,3 @@ "use strict"; | ||
var stock = product.stock; | ||
return stock === undefined || stock > 0; | ||
return stock == null || stock > 0; | ||
}; | ||
@@ -32,0 +32,0 @@ return Product; |
@@ -241,3 +241,3 @@ "use strict"; | ||
var stock = product.stock; | ||
if (stock !== undefined && qty > stock) { | ||
if (stock != null && qty > stock) { | ||
var productName = product.name; | ||
@@ -244,0 +244,0 @@ if (stock === 0) { |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -49,3 +49,3 @@ import {IBaseDto, IPropertyDto} from "./base"; | ||
const stock = product.stock; | ||
return stock === undefined || stock > 0; | ||
return stock == null || stock > 0; | ||
} | ||
@@ -52,0 +52,0 @@ } |
@@ -276,3 +276,3 @@ import BaseStore from "./base-store"; | ||
if (stock !== undefined && qty > stock) { | ||
if (stock != null && qty > stock) { | ||
const productName = product.name; | ||
@@ -279,0 +279,0 @@ |
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
261610