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.4.0 to 1.4.1

1

dist/stores/product-store.d.ts

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

private setLastQueryParams;
private initProductSearch;
}

28

dist/stores/product-store.js

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

return __awaiter(this, void 0, void 0, function () {
var notificationStore, lastQueryParams, result, data, e_1;
var notificationStore, result, data, e_1;
return __generator(this, function (_a) {

@@ -90,10 +90,3 @@ switch (_a.label) {

notificationStore = this.notificationStore;
request.additionalProps = this.searchProps;
lastQueryParams = this.lastQueryParams;
if (lastQueryParams) {
queryParams = {
sortBy: lastQueryParams.sortBy,
sortDesc: lastQueryParams.sortDesc
};
}
queryParams = this.initProductSearch(request, queryParams);
this.toggleProductList();

@@ -312,2 +305,19 @@ _a.label = 1;

};
ProductStore.prototype.initProductSearch = function (request, queryParams) {
var lastCategoryId = this.lastSearchRequest.categoryId;
if (lastCategoryId) {
if (!request.categoryId) {
request.categoryId = lastCategoryId;
}
}
request.additionalProps = this.searchProps;
var lastQueryParams = this.lastQueryParams;
if (lastQueryParams) {
queryParams = {
sortBy: lastQueryParams.sortBy,
sortDesc: lastQueryParams.sortDesc
};
}
return queryParams;
};
__decorate([

@@ -314,0 +324,0 @@ mobx_1.observable

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

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

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

const notificationStore = this.notificationStore;
request.additionalProps = this.searchProps;
const lastQueryParams = this.lastQueryParams;
if (lastQueryParams) {
queryParams = {
sortBy: lastQueryParams.sortBy,
sortDesc: lastQueryParams.sortDesc
}
}
queryParams = this.initProductSearch(request, queryParams);
this.toggleProductList();

@@ -233,2 +224,24 @@

}
private initProductSearch(request: IProductSearchDto, queryParams?: IQueryParams): IQueryParams | undefined {
const lastCategoryId = this.lastSearchRequest.categoryId;
if (lastCategoryId) {
if (!request.categoryId) {
request.categoryId = lastCategoryId;
}
}
request.additionalProps = this.searchProps;
const lastQueryParams = this.lastQueryParams;
if (lastQueryParams) {
queryParams = {
sortBy: lastQueryParams.sortBy,
sortDesc: lastQueryParams.sortDesc
}
}
return queryParams;
}
}
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