Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.6.7 to 1.6.8

1

dist/models/product.d.ts

@@ -33,2 +33,3 @@ import { IBaseDto, IPropertyDto } from "./base";

static getLink(product: IProductBaseDto): string;
static getLinkWithCategory(product: IProductDto): string;
static getDiscountPercentage(product: IProductBaseDto): number;

@@ -35,0 +36,0 @@ static hasStock(product: IProductBaseDto): boolean;

@@ -20,2 +20,10 @@ "use strict";

};
Product.getLinkWithCategory = function (product) {
var refType = ProductRefTypeEnum.Id;
var ref = product.ref;
if (ref === product.code) {
refType = ProductRefTypeEnum.Code;
}
return "/products/" + product.categoryName + "/" + ref + "?refType=" + refType;
};
Product.getDiscountPercentage = function (product) {

@@ -22,0 +30,0 @@ var discountPrice = product.discountPrice;

2

package.json
{
"name": "vanilli-shop-client",
"version": "1.6.7",
"version": "1.6.8",
"description": "Client for Vanilli Shop API",

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

@@ -49,2 +49,13 @@ import {IBaseDto, IPropertyDto} from "./base";

static getLinkWithCategory(product: IProductDto): string {
let refType = ProductRefTypeEnum.Id;
const ref = product.ref;
if (ref === product.code) {
refType = ProductRefTypeEnum.Code;
}
return `/products/${product.categoryName}/${ref}?refType=${refType}`;
}
static getDiscountPercentage(product: IProductBaseDto): number {

@@ -51,0 +62,0 @@ const discountPrice = product.discountPrice;

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