@bull-board/express
Advanced tools
Comparing version 5.17.1 to 5.18.0
@@ -64,2 +64,3 @@ "use strict"; | ||
const router = (0, express_1.Router)(); | ||
router.use(express_1.default.json()); | ||
routes.forEach((route) => (Array.isArray(route.method) ? route.method : [route.method]).forEach((method) => { | ||
@@ -71,2 +72,3 @@ router[method](route.route, (0, wrapAsync_1.wrapAsync)(async (req, res) => { | ||
params: req.params, | ||
body: req.body, | ||
}); | ||
@@ -73,0 +75,0 @@ res.status(response.status || 200).json(response.body); |
{ | ||
"name": "@bull-board/express", | ||
"version": "5.17.1", | ||
"version": "5.18.0", | ||
"description": "A Express.js server adapter for Bull-Board dashboard.", | ||
@@ -31,9 +31,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@bull-board/api": "5.17.1", | ||
"@bull-board/ui": "5.17.1", | ||
"ejs": "^3.1.7", | ||
"@bull-board/api": "5.18.0", | ||
"@bull-board/ui": "5.18.0", | ||
"ejs": "^3.1.10", | ||
"express": "^4.17.3" | ||
}, | ||
"devDependencies": { | ||
"@types/ejs": "^3.0.6", | ||
"@types/ejs": "^3.1.5", | ||
"@types/express": "^4.17.12", | ||
@@ -40,0 +40,0 @@ "@types/express-serve-static-core": "^4.17.28" |
Sorry, the diff of this file is not supported yet
11664
142
+ Added@bull-board/api@5.18.0(transitive)
+ Added@bull-board/ui@5.18.0(transitive)
- Removed@bull-board/api@5.17.1(transitive)
- Removed@bull-board/ui@5.17.1(transitive)
Updated@bull-board/api@5.18.0
Updated@bull-board/ui@5.18.0
Updatedejs@^3.1.10