express-api-common
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -32,2 +32,6 @@ 'use strict'; | ||
var _expressServicebus = require('express-servicebus'); | ||
var _expressServicebus2 = _interopRequireDefault(_expressServicebus); | ||
var _expressPromBundle = require('express-prom-bundle'); | ||
@@ -43,3 +47,3 @@ | ||
log('creating express server'); | ||
const { logger, notFoundHandler } = options; | ||
const { logger, notFoundHandler, bus } = options; | ||
const metricsMiddleware = (0, _expressPromBundle2.default)({ includeMethod: true }); | ||
@@ -52,2 +56,4 @@ | ||
_expressServer2.default.use((0, _expressServicebus2.default)(bus)); | ||
log('using middleware - logRequests and bodyParser'); | ||
@@ -54,0 +60,0 @@ _expressServer2.default.use((0, _logRequests2.default)(logger)); |
{ | ||
"name": "express-api-common", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "express api configured with logging, healthcheck, prometheus metrics, and other things I commonly use", | ||
@@ -29,3 +29,4 @@ "scripts": { | ||
"express": "^4.16.2", | ||
"express-prom-bundle": "^3.3.0" | ||
"express-prom-bundle": "^3.3.0", | ||
"express-servicebus": "^1.0.1" | ||
}, | ||
@@ -51,3 +52,2 @@ "devDependencies": { | ||
"jest": "^22.4.0", | ||
"llog": "0.1.0", | ||
"regenerator-runtime": "^0.11.1", | ||
@@ -54,0 +54,0 @@ "semantic-release": "^15.0.3", |
6600
21
105
5
+ Addedexpress-servicebus@^1.0.1
+ Addedexpress-servicebus@1.0.3(transitive)