Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/Johnathan/vue-context-menu-popup
<ContextMenu ref="contextMenu" :menu-items="menuItems"/>
<div class="context-menu-trigger"
@click.right.prevent="$refs.contextMenu.open($event)">
Right Click Me!
</div>
import ContextMenu from 'vue-context-menu-popup'
import 'vue-context-menu-popup/dist/vue-context-menu-popup.css';
export default {
data() {
return {
menuItems: [
{
label: 'First Menu Item',
},
{
label: 'Disabled Menu Item',
disabled: true,
},
{
label: 'I have children',
children: [
{
label: 'Child Item 1',
},
{
label: 'I also have children',
children: [
{
label: 'Child Item 2',
},
],
},
],
},
]
}
},
components: {
ContextMenu
}
}
A simple context menu component
<ContextMenu :menu-items="[....]"/>
menu-items
Array (required)visible
initial value: false
contextMenuPosition
initial value: [object Object]
openPosition
initial value: 'context-menu-open-right'
close()
open(position)
Accepts an Object with an x, y
position or an instance of Event
npm install vue-context-menu-popup
npm install
npm run serve
npm run build
npm run lint
npm run test:unit
npm run doc:build
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.