-
If a `connection.query()` has an error and is used inside a domain, the error gets caught there first, and then it get's caught with the `try/catch` or `.catch` on promise.
This is a problem if you…
-
# 浅谈 Koa 和 Express 的中间件设计模式
异步任务与洋葱圈模型
[https://blog.xav1er.com/p/middleware-of-koa-and-express/](https://blog.xav1er.com/p/middleware-of-koa-and-express/)
-
Something like this:
`var express = require('express')
var app = express()
var S3Proxy = require('s3proxy')
const s3proxy = new S3Proxy({ bucket: 's3proxy-public' })
proxy.init()
// load the…
gmoon updated
6 years ago
-
Many express middlewares depend on other middlewares (cookie-sessions => cookie-parser for example). These dependencies are only expressed in documentation. It's up to the developer to put them in t…
-
Looks really neat, but I could not find any information about why is this not exposed as a express middleware? This would make it follow the best practice middleware.
-
In the installation section of the README:
```
The oauth2-server module is framework-agnostic but there are several officially supported wrappers available for popular HTTP server frameworks such as…
-
Reported on the following [trello card](https://trello.com/c/HJg26iRN/415-use-sentry-for-backend-errors)
Currently errors caught in handlers are dealt with directly using `res.status().json()`. eg:…
-
Is there any way in which this can be turned into middleware? i.e.:
``` javascript
app.use(express_async_handler)
```
Having to wrap every async function with `express-async-handler` just does…
-
We have some middlewares before the proxy middleware to handle setting cookies (like authentication and others).
We set cookies like this in previous middlewares: `res.cookie('name', 'value')`.
Re…
-
### What version of Bun is running?
1.0.11+f7f6233ea
### What platform is your computer?
Darwin 23.0.0 arm64 arm
### What steps can reproduce the bug?
```javascript
// bun version 1.0.…