
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Promisify using ES6 Proxy
Like bluebird's promisifyAll, but using ES6 Proxy which enables it to be:
npm i proximify
import Koa from 'koa';
import http from 'http';
import proximify from 'proximify'
const app = proximify(new Koa());
// Works on properties added later on, and at any depth
app.server = http.createServer(app.callback());
app.server.listenAsync(3000).then(...)
proximify(target, options)
target [object](required) Object whose methods need to be patched.
options [object]:
deep [boolean](default:true): If true, applies to child properties recursively
store [boolean](default:true): If true, stores the proxy in place of original property (i.e. replaces the original property with its proxy)
applyOnData [boolean](default:true): If true, applies to any objects returned (resolved as promise) by the async methods. (equivalent of doing proximify(...) on objects returned from async function)
const io1 = proximify(new IO(server))
const io2 = proximify(new IO(server), {applyOnData: false})
const socket1 = io.onceAsync('connection')
const socket2 = io.onceAsync('connection')
const data1 = socket.onceAsync('test') // works ok
const data2 = socket.onceAsync('test') // error "onceAsync" undefined
suffix [string](default:'Async'): Suffix to use to invoke the promisified version of the method.
filter [function]: (Not yet implemented)
promisifier [function]: (Not yet implemented)
FAQs
Promisify using ES6 Proxy
We found that proximify 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.