
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
- **🚀 5kb publishing subscription tool** - **🍠Written in TypeScript** - **💪 Unit testing provides stability assurance** ## Install
$ npm install --save transit
// using ES6 modules
import transit from 'transit'
// using modules
var transit = require('transit')
import transit from 'transit'
const event = transit()
event.on('foo', (data) => {
console.log(data) // abc
})
event.on('add', (data) => {
console.log(data) // 1
})
event.emit('foo', 'abc')
event.emit('add', 1)
event.off('foo')
event.clear()
import transit from 'transit'
interface Events {
foo: string
bar?: number
add: symbol
}
const event = transit<Events>()
event.on('foo', (data) => {
// (parameter) data: string
console.log(data) // abc
})
event.on('bar', (data) => {
// (parameter) data: number
console.log(data) // 1
})
event.emit('foo', 'abc')
event.emit('bar')
event.emit('add', 1) // Argument of type 'number' is not assignable to parameter of type 'symbol'
event.emit('divide', 1) // Argument of type '"add1"' is not assignable to parameter of type 'keyof Events'.
on
eventType: string | symbol
handler: (data?: unknown) => void
emit
eventType: string | symbol
data?: unknown
off
eventType: string | symbol
clear
FAQs
- **🚀 5kb publishing subscription tool** - **🍠Written in TypeScript** - **💪 Unit testing provides stability assurance** ## Install
We found that transit 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.