
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Please see the latest official package @zoom/rivet, thank you!
Provides a consitent interface that mirrors Boom
// Here's the code in full
'use strict';
function Zoom(data, statusCode) {
this.data = data;
this.statusCode = statusCode || 200;
}
Zoom.create = function(data) {
return new Zoom(data);
}
module.exports = Zoom;
function handler(request, reply) {
doAsync(function(err, result) {
if (err) {
return reply(Boom.badImplementation(err, 'Something went wrong'));
}
return Zoom.create(result);
})
}
// This would yield
{
"statusCode": 200,
"data": {
"foo": true,
"bar": 42
}
}
// If an error occured, the (Boom) response would look like
{
"statusCode": 400,
"error": "whatever",
"message": "Something went wrong",
}
FAQs
Like hapijs boom but for non-error return data
We found that zoom demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.