Security News
Supply Chain Attack Detected in @solana/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.
@universal-packages/event-emitter
Advanced tools
It extends EventEmitter2
npm install @universal-packages/event-emitter
It behaves exactly as EventEmitter2 but with wildcards enabled by default and following events convention for universal-packages.
import { EventEmitter } from '@universal-packages/event-emitter'
import { startMEasurement } from '@universal-packages/time-measurer'
const measurer = startMeasurement()
const emitter = new EventEmitter()
emitter.on('event', (event) => {
console.log(event)
})
emitter.emit('event', { message: 'Hello World', measurement: measurer.finish(), payload: { foo: 'bar'} })
emitter.emit('error', { error: new Error('Something went wrong'), measurement: measurer.finish(), payload: { foo: 'bar'} })
This library is developed in TypeScript and shipped fully typed.
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.
FAQs
Event emitter 2 with universal convention
The npm package @universal-packages/event-emitter receives a total of 14,391 weekly downloads. As such, @universal-packages/event-emitter popularity was classified as popular.
We found that @universal-packages/event-emitter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.