
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Wipe up spilled milk in Hapi.
A plugin to shutdown on uncaughtExceptions, while allowing in-flight responses to complete. While the server is shutting down,
new requests will be responded to with a 503
.
replyHeaders
- Response headers to return post error, while the server is still shutting down. Defaults to {}
.shutdownTimeout
- Timeout option for Hapi.Server#stop. Defaults to 10000
.lastly(error)
- An optional final callback for clean up. Called after server shutdown. The default behavior is to process.exit(1)
.const Hapi = require('hapi');
const Sopalin = require('sopalin');
const server = new Hapi.Server();
server.register({
register: Sopalin,
options: {
shutdownTimeout: 15000,
replyHeaders: {
'x-custom-retry-header': 'true'
}
}
}, (error) => {
//Everything else...
});
FAQs
A uncaught exception handler for hapi that triggers a graceful shutdown.
We found that sopalin 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.