Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
eventrino is a JavaScript micro-library for event handling. It's an implementation of the publisher/subscriber pattern.
babel-polyfill
)eventrino allows you to pass a string or a Symbol as an identifier for a listener. The identifier can be used to remove anonymous listener or to remove listeners that don't exist in a certain scope. String indentifiers are converted to Symbols. If you don't pass an identifier, eventrino will create one for you and will return it.
var eventrino = require('eventrino');
eventrino.subscribe('event', listenerFunction);
// Adds a global listenerconst identifier = eventrino.subscribe('event', listenerFunction);
// Adds a global listener and saves the identifier for iteventrino.subscribe('event', listenerFunction, 'function identifier', testObject);
// Adds an event listener for testObject
with the identifier function identifier
eventrino.unsubscribe('event', listenerFunction);
// Removes a global listener by function referenceeventrino.unsubscribe('event', 'listener identifier');
// Removes a global listener by its indentifiereventrino.unsubscribe('event', 'listener identifier', testObject);
// Removes a listener of an object by its identifiereventrino.unsubscribe('event', undefined, testObject);
// Removes all listeners of an objecteventrino.broadcast('event');
// Broadcasts a global eventeventrino.broacast('event', undefined, dataObject);
// Broadcasts a global event and calls all the listeners with dataObject
eventrino.broadcast('event', testObject);
// Broadcast the event only for testObject
MIT
FAQs
Event handling micro-library
The npm package eventrino receives a total of 0 weekly downloads. As such, eventrino popularity was classified as not popular.
We found that eventrino demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.