Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-service-bootstrap

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-service-bootstrap - npm Package Compare versions

Comparing version 0.14.0 to 0.15.0

2

dist/package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc