New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

orderiom-api-package

Package Overview
Dependencies
Maintainers
1
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orderiom-api-package - npm Package Compare versions

Comparing version 0.4.24 to 0.4.25

2

package.json
{
"name": "orderiom-api-package",
"version": "0.4.24",
"version": "0.4.25",
"description": "This package will install all necessary API calls for every orderiom restaurant",

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

@@ -246,3 +246,3 @@ import {commonErrorCallback, calculateBasketIdParameter, updateBasket, deliveryCodeToName, weekdays, restaurantIdEnv, $http} from '../common';

const actions = {
getCategories({ commit, dispatch, rootState }, restaurantId) {
getCategories({ commit, dispatch, rootState, state }, restaurantId) {
let basketId = undefined;

@@ -268,3 +268,13 @@ try {

commit('setCategories', categories);
commit("setSelectedCategory", categories[0]);
if(categories.length){
if(!state.selectedCategory) {
commit("setSelectedCategory", categories[0]);
}else{
const catInList = categories.find(cat => cat.id === state.selectedCategory.id);
if(!catInList || JSON.stringify(state.selectedCategory) !== JSON.stringify(catInList)){
commit("setSelectedCategory", categories[0]);
}
}
}
dispatch("getProducts", {

@@ -280,3 +290,13 @@ category: categories[0],

commit('setCategories', categories);
commit("setSelectedCategory", categories[0]);
if(categories.length){
if(!state.selectedCategory) {
commit("setSelectedCategory", categories[0]);
}else{
const catInList = categories.find(cat => cat.id === state.selectedCategory.id);
if(!catInList || JSON.stringify(state.selectedCategory) !== JSON.stringify(catInList)){
commit("setSelectedCategory", categories[0]);
}
}
}
dispatch("getProducts", {

@@ -283,0 +303,0 @@ category: categories[0],

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