![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
diet-connect
Advanced tools
Compatibility layer for using Connect/Express middleware in diet.js apps
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.