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.11.0 to 0.12.0

3

dist/package.json
{
"name": "express-service-bootstrap",
"version": "0.11.0",
"version": "0.12.0",
"description": "This is a convenience package for starting a express API with security, health checks, process exits etc.",

@@ -53,4 +53,5 @@ "main": "dist/src/index.js",

"helmet": "^7.1.0",
"node-apparatus": "^0.1.8",
"swagger-ui-express": "^5.0.0"
}
}

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { IRouter, NextFunction, Request, Response } from "express";

@@ -3,0 +2,0 @@ import { ApplicationShutdownStatus, ApplicationStartupStatus, ApplicationStatus } from "./enum-application-life-cycle-status";

@@ -1,26 +0,3 @@

/**
* BootstrapConstructor is a class that is used to create instances of classes.(this helps with dependency injection & mocking).
*/
export declare class BootstrapConstructor {
/**
* Creates an instance of a class with a constructor.
* @param typeConstructor The class constructor
* @param constructorArguments The arguments to pass to the constructor(optional)
* @returns The instance of the class
*/
createInstance<InstanceType>(typeConstructor: new (...constructorArguments: any[]) => InstanceType, constructorArguments?: any[]): InstanceType;
/**
* Creates an instance of a class without a constructor asynchronously.
* @param typeConstructorFunction The class constructor ASYNC function.
* @param constructorFunctionArguments the arguments to pass to the constructor(optional)
* @returns The instance of the class
*/
createAsyncInstanceWithoutConstructor<InstanceType>(typeConstructorFunction: (...constructorFunctionArguments: any[]) => Promise<InstanceType>, constructorFunctionArguments?: any[]): Promise<InstanceType>;
/**
* Creates an instance of a class without a constructor.
* @param typeConstructorFunction The class constructor function.
* @param constructorFunctionArguments the arguments to pass to the constructor(optional)
* @returns The instance of the class
*/
createInstanceWithoutConstructor<InstanceType>(typeConstructorFunction: (...constructorFunctionArguments: any[]) => InstanceType, constructorFunctionArguments?: any[]): InstanceType;
import { InjectableConstructor } from "node-apparatus";
export declare class BootstrapConstructor extends InjectableConstructor {
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BootstrapConstructor = void 0;
/**
* BootstrapConstructor is a class that is used to create instances of classes.(this helps with dependency injection & mocking).
*/
class BootstrapConstructor {
/**
* Creates an instance of a class with a constructor.
* @param typeConstructor The class constructor
* @param constructorArguments The arguments to pass to the constructor(optional)
* @returns The instance of the class
*/
createInstance(typeConstructor, constructorArguments) {
return new typeConstructor(...(constructorArguments || []));
}
/**
* Creates an instance of a class without a constructor asynchronously.
* @param typeConstructorFunction The class constructor ASYNC function.
* @param constructorFunctionArguments the arguments to pass to the constructor(optional)
* @returns The instance of the class
*/
createAsyncInstanceWithoutConstructor(typeConstructorFunction, constructorFunctionArguments) {
return __awaiter(this, void 0, void 0, function* () {
return yield typeConstructorFunction(...(constructorFunctionArguments || []));
});
}
/**
* Creates an instance of a class without a constructor.
* @param typeConstructorFunction The class constructor function.
* @param constructorFunctionArguments the arguments to pass to the constructor(optional)
* @returns The instance of the class
*/
createInstanceWithoutConstructor(typeConstructorFunction, constructorFunctionArguments) {
return typeConstructorFunction(...(constructorFunctionArguments || []));
}
const node_apparatus_1 = require("node-apparatus");
class BootstrapConstructor extends node_apparatus_1.InjectableConstructor {
}
exports.BootstrapConstructor = BootstrapConstructor;
//# sourceMappingURL=bootstrap-constructor.js.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import bodyParser from "body-parser";

@@ -38,4 +37,4 @@ import { BootstrapConstructor } from "./bootstrap-constructor";

*/
helmetMiddleware(helmetOptions?: Readonly<HelmetOptions>): (req: import("http").IncomingMessage, res: import("http").ServerResponse<import("http").IncomingMessage>, next: (err?: unknown) => void) => void;
helmetMiddleware(helmetOptions?: Readonly<HelmetOptions>): (req: import("http").IncomingMessage, res: import("http").ServerResponse, next: (err?: unknown) => void) => void;
swaggerAPIDocs(swaggerDocument: any, hostPath?: string): ApplicationRouter;
}

@@ -1,2 +0,1 @@

/// <reference types="node" />
/**

@@ -3,0 +2,0 @@ * EnvironmentVariables class is a wrapper around NodeJS.ProcessEnv to provide type-safe access to environment variables.

{
"name": "express-service-bootstrap",
"version": "0.11.0",
"version": "0.12.0",
"description": "This is a convenience package for starting a express API with security, health checks, process exits etc.",

@@ -53,4 +53,5 @@ "main": "dist/src/index.js",

"helmet": "^7.1.0",
"node-apparatus": "^0.1.8",
"swagger-ui-express": "^5.0.0"
}
}

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