
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
diet-connect
Advanced tools
Compatibility layer for using Connect/Express middleware in diet.js apps
Use your favorite Express middleware out of the box
const compatible = require('diet-connect')
const logger = require('morgan')
const serve = require('express-static')
...
app.header(compatible(logger('dev')))
app.footer(compatible(serve(app.path + 'static')))
Proxies any assignment to req object by middleware to the signal object ($). For example, using express session usually adds .session to req; here it's attached to $
const session = require('express-session')
app.header(compatible(session(options)))
app.get('/counter', function ($) {
$.session.views = $.session.views || 0
$.session.views++
$.end('you have viewed this page ' + $.session.views + ' times')
})
// refresh the page to see the counter go up
body-parser Diet is inherently incompatible with Express' body parser, as Diet already does
body parsingBug reports, feature requests, and questions are all welcome: open a GitHub issue and I'll get back to you.
This is especially true if a certain piece of middleware doesn't work. Please open an issue and I'll see what we need to do to get compatibility.
FAQs
Compatibility layer for using Connect/Express middleware in diet.js apps
We found that diet-connect 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.