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
230
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.3.23 to 0.3.24

2

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

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

@@ -36,5 +36,14 @@ import axios from "axios";

if(!state.products) return []
return Array.from(new Set(state.products.map(productInCategory =>
productInCategory.subcategory_name || 'uncategorised'
)))
const subCategories = [];
const ids = Array.from(new Set(state.products.map(productInCategory=>
productInCategory.subcategory_id
)))
ids.forEach(id=>{
let filter = state.products.find(i=> i.subcategory_id === id)
subCategories.push({name: filter.subcategory_name, id: filter.subcategory_id, imagePath: filter.subcategory_image})
})
return subCategories
}

@@ -41,0 +50,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