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

wx-svelte-menu

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wx-svelte-menu - npm Package Compare versions

Comparing version 2.0.0-beta-2 to 2.0.1

8

package.json
{
"name": "wx-svelte-menu",
"version": "2.0.0-beta-2",
"version": "2.0.1",
"description": "Svelte menu component for creating dropdown menus, context menus, or complex menu bars",

@@ -33,6 +33,6 @@ "productTag": "menu",

},
"homepage": "https://svar.dev/svelte/core/",
"homepage": "https://svar.dev/svelte/menu/",
"dependencies": {
"wx-svelte-core": "2.0.0-beta-2",
"wx-lib-dom": "0.6.0"
"wx-svelte-core": "2.0.1",
"wx-lib-dom": "0.7.1"
},

@@ -39,0 +39,0 @@ "files": [

@@ -8,2 +8,10 @@ export function walkData(data, cb) {

export function mapData(data, cb) {
return data.map(a => {
const out = cb(a);
if (a.data && a.data.length) out.data = mapData(a.data, cb);
return out;
});
}
export function filterMenu(data, cb) {

@@ -25,7 +33,5 @@ const out = [];

export function prepareMenuData(data) {
walkData(data, a => {
a.id = a.id || uid++;
return mapData(data, a => {
return { ...a, id: a.id || uid++ };
});
return data;
}

@@ -32,0 +38,0 @@

@@ -0,1 +1,5 @@

### 2.0.1
- [add] svelte 5 support
### 1.3.0

@@ -2,0 +6,0 @@

Sorry, the diff of this file is not supported yet

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