
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.
@koax/compose
Advanced tools
Compose koax middleware.
$ npm install @koax/compose
var compose = require('compose')
var composed = compose([function * (action, next) {
if (action === 'foo') return 'bar'
yield 'woot'
return next()
}, function * (action, next) {
if (action === 'bar') return 'qux'
yield 'narf'
return next()
}])
composed('foo')() // => 'bar' (done)
composed('bar')() // => 'woot', 'qux' (done)
composed('dup')() // => 'woot', 'narf', 'dup' (done)
middleware - compose the given middlewareReturns: a generator of the same form as the middleware
/**
* The middleware signature
* @param {Mixed} action an immutable action that middleware can process
* @param {Function} next pass execution to next middleware (can yield or return)
* @param {Object} ctx the global context
* @return {Mixed} whatever your heart desires
*/
function * middleware (action, next, ctx) {
}
MIT
FAQs
Compose koax middleware.
We found that @koax/compose 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.