
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
timeoutn is a simple library for taming timed out async work
$ npm install timeoutn
Here is a simple timed example. Where we call done callback before async work has finished.
var timeoutn = require('timeoutn')
, timedout
function done(err) {
if (err) {
console.log(err)
}
if (timedout()) {
return console.log('Handle timed out scenario here')
}
...
}
timedout = timeoutn(2000, done, 'Error processing after 2000 ms')
setTimeout(done, 3000)
Or you could just use err passed to handle, for timed out scenario
var timeoutn = require('timeoutn')
function done(err) {
if (err) {
return console.log(err)
}
...
}
timeoutn(2000, done, 'Error processing after 2000 ms')
setTimeout(done, 3000)
Whenever you need to be sure that something has finished, and is not staling forever. You should setup timeout expectation and respond accordingly.
$ npm install
$ npm test
BSD
FAQs
Simple library for taming timed out async work
The npm package timeoutn receives a total of 0 weekly downloads. As such, timeoutn popularity was classified as not popular.
We found that timeoutn 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
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.