vanilli-shop-client
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -21,3 +21,2 @@ import { IBaseDto, IPropertyDto } from "./base"; | ||
static getLink(product: IProductBaseDto): string; | ||
static getCurrentPrice(product: IProductBaseDto): number; | ||
} | ||
@@ -24,0 +23,0 @@ export interface IProductDetailsDto extends IProductBaseDto { |
@@ -20,5 +20,2 @@ "use strict"; | ||
}; | ||
Product.getCurrentPrice = function (product) { | ||
return product.discountPrice || product.price; | ||
}; | ||
return Product; | ||
@@ -25,0 +22,0 @@ }()); |
{ | ||
"name": "vanilli-shop-client", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "Client for Vanilli Shop API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -34,6 +34,2 @@ import {IBaseDto, IPropertyDto} from "./base"; | ||
} | ||
static getCurrentPrice(product: IProductBaseDto): number { | ||
return product.discountPrice || product.price; | ||
} | ||
} | ||
@@ -40,0 +36,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
128489
2975