express-service-bootstrap
Advanced tools
Comparing version 0.14.0 to 0.15.0
{ | ||
"name": "express-service-bootstrap", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "This is a convenience package for starting a express API with security, health checks, process exits etc.", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -363,3 +363,3 @@ "use strict"; | ||
const existingMap = map.get(hostingPath) || new sorted_map_1.SortedMap(); | ||
existingMap.set(hostingPath, handler, order); | ||
existingMap.set(`${hostingPath}-${order}`, handler, order); | ||
map.set(hostingPath, existingMap, 0); | ||
@@ -366,0 +366,0 @@ } |
@@ -10,3 +10,3 @@ import { ApplicationShutdownStatus, ApplicationStartupStatus, ApplicationStatus } from './enum-application-life-cycle-status'; | ||
import { EnvironmentVariables } from './environment-variables'; | ||
import { IRouter, Request, Response } from 'express'; | ||
export { ApplicationStatus, ApplicationShutdownStatus, ApplicationStartupStatus, ApplicationBuilder, BootstrapConstructor, DisposableSingletonContainer, IProbeResult, NullProbe, IProbe, ApplicationBuilderMiddleware, ApplicationTypes, Convenience, ApplicationRouter, HostingPath, EnvironmentVariables, IRouter, Request, Response, }; | ||
import { IRouter, NextFunction, Request, Response } from 'express'; | ||
export { ApplicationStatus, ApplicationShutdownStatus, ApplicationStartupStatus, ApplicationBuilder, BootstrapConstructor, DisposableSingletonContainer, IProbeResult, NullProbe, IProbe, ApplicationBuilderMiddleware, ApplicationTypes, Convenience, ApplicationRouter, HostingPath, EnvironmentVariables, IRouter, Request, Response, NextFunction }; |
{ | ||
"name": "express-service-bootstrap", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "This is a convenience package for starting a express API with security, health checks, process exits etc.", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -56,2 +56,5 @@ # express-service-bootstrap | ||
}) | ||
.post("/", (req, res) => { | ||
console.log(req.body); | ||
}) | ||
.get("/error", (req, res) => { | ||
@@ -68,4 +71,4 @@ throw new Error("This is an error to validate final 'ErrorResponseTransformer' error handling of library"); | ||
.registerApplicationHandler(utilities.bodyParserJSONEncodingMiddleware({ limit: '50M' }), "*", 3, ApplicationTypes.Main) //register body parser json middleware for application | ||
.registerApplicationHandler(apiDocs.router, apiDocs.hostingPath, 3, ApplicationTypes.Main) //register api docs | ||
.registerApplicationHandler(utilities.injectInRequestMiddleware("DIProp", DIContainer), "*", 4, ApplicationTypes.Main) //register DI container middleware | ||
.registerApplicationHandler(apiDocs.router, apiDocs.hostingPath, 4, ApplicationTypes.Main) //register api docs | ||
.registerApplicationHandler(utilities.injectInRequestMiddleware("DIProp", DIContainer), "*", 6, ApplicationTypes.Main) //register DI container middleware | ||
.overrideCatchAllErrorResponseTransformer((req, error) => ({ //override the default catch all error response transformer | ||
@@ -72,0 +75,0 @@ path: req.path, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106894
111