@gquittet/graceful-server
Advanced tools
Comparing version 2.2.2 to 2.3.1
@@ -1,5 +0,5 @@ | ||
import * as http from 'http'; | ||
import ImprovedServer from "../interface/improvedServer"; | ||
import IStatus from "../interface/status"; | ||
declare const improvedServer: (server: http.Server, serverStatus: IStatus) => ImprovedServer; | ||
import Server from "../interface/server"; | ||
declare const improvedServer: (server: Server, serverStatus: IStatus) => ImprovedServer; | ||
export default improvedServer; |
@@ -1,4 +0,4 @@ | ||
import * as http from 'http'; | ||
import ICore from "../interface/core"; | ||
declare const core: (server: http.Server) => ICore; | ||
import Server from "../interface/server"; | ||
declare const core: (server: Server) => ICore; | ||
export default core; |
@@ -1,7 +0,7 @@ | ||
import * as http from 'http'; | ||
import State from "./core/state"; | ||
import IGracefulServer from "./interface/gracefulServer"; | ||
import IGracefulServerOptions from "./interface/gracefulServerOptions"; | ||
declare const GracefulServer: ((server: http.Server, options?: IGracefulServerOptions | undefined) => IGracefulServer) & typeof State; | ||
import Server from "./interface/server"; | ||
declare const GracefulServer: ((server: Server, options?: IGracefulServerOptions | undefined) => IGracefulServer) & typeof State; | ||
export * from "./interface/gracefulServer"; | ||
export default GracefulServer; |
/// <reference types="node" /> | ||
import * as http from 'http'; | ||
export default interface ImprovedServer extends http.Server { | ||
import * as http2 from 'http2'; | ||
import * as https from 'https'; | ||
import * as tls from 'tls'; | ||
interface ImprovedHttpServer extends http.Server { | ||
stop: () => Promise<void>; | ||
} | ||
interface ImprovedHttp2Server extends http2.Http2Server { | ||
stop: () => Promise<void>; | ||
} | ||
interface ImprovedHttp2SecureServer extends http2.Http2SecureServer { | ||
stop: () => Promise<void>; | ||
} | ||
interface ImprovedHttpsServer extends https.Server { | ||
stop: () => Promise<void>; | ||
} | ||
interface ImprovedTlsServer extends tls.Server { | ||
stop: () => Promise<void>; | ||
} | ||
declare type ImprovedServer = ImprovedHttpServer | ImprovedHttp2Server | ImprovedHttp2SecureServer | ImprovedHttpsServer | ImprovedTlsServer; | ||
export default ImprovedServer; |
@@ -15,3 +15,3 @@ { | ||
}, | ||
"version": "2.2.2", | ||
"version": "2.3.1", | ||
"main": "./lib/index.js", | ||
@@ -36,17 +36,17 @@ "scripts": { | ||
"devDependencies": { | ||
"@babel/cli": "7.12.10", | ||
"@babel/core": "7.12.10", | ||
"@babel/plugin-proposal-class-properties": "7.12.1", | ||
"@babel/plugin-proposal-object-rest-spread": "7.12.1", | ||
"@babel/preset-env": "7.12.11", | ||
"@babel/preset-typescript": "7.12.7", | ||
"@babel/cli": "7.12.13", | ||
"@babel/core": "7.12.13", | ||
"@babel/plugin-proposal-class-properties": "7.12.13", | ||
"@babel/plugin-proposal-object-rest-spread": "7.12.13", | ||
"@babel/preset-env": "7.12.13", | ||
"@babel/preset-typescript": "7.12.13", | ||
"@types/express": "4.17.11", | ||
"@types/jest": "26.0.20", | ||
"@types/node": "14.14.21", | ||
"@typescript-eslint/eslint-plugin": "4.14.0", | ||
"@typescript-eslint/parser": "4.14.0", | ||
"@types/node": "14.14.25", | ||
"@typescript-eslint/eslint-plugin": "4.14.2", | ||
"@typescript-eslint/parser": "4.14.2", | ||
"add-module-exports-webpack-plugin": "2.0.0", | ||
"babel-loader": "8.2.2", | ||
"babel-plugin-module-resolver": "4.1.0", | ||
"eslint": "7.18.0", | ||
"eslint": "7.19.0", | ||
"eslint-config-prettier": "7.2.0", | ||
@@ -63,3 +63,3 @@ "eslint-config-standard": "16.0.2", | ||
"jest": "26.6.3", | ||
"lint-staged": "10.5.3", | ||
"lint-staged": "10.5.4", | ||
"prettier": "2.2.1", | ||
@@ -69,9 +69,9 @@ "prettier-package-json": "2.1.3", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "26.4.4", | ||
"ts-jest": "26.5.0", | ||
"ts-node": "9.1.1", | ||
"ttypescript": "1.5.12", | ||
"typescript": "4.1.3", | ||
"typescript-transform-paths": "2.2.2", | ||
"webpack": "5.15.0", | ||
"webpack-cli": "4.3.1" | ||
"typescript-transform-paths": "2.2.3", | ||
"webpack": "5.21.0", | ||
"webpack-cli": "4.5.0" | ||
}, | ||
@@ -78,0 +78,0 @@ "keywords": [ |
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
27554
23
128