@types/http-terminator
Advanced tools
Comparing version 2.0.5 to 3.0.0
{ | ||
"name": "@types/http-terminator", | ||
"version": "2.0.5", | ||
"description": "TypeScript definitions for http-terminator", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-terminator", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Steve Ripberger", | ||
"githubUsername": "sripberger", | ||
"url": "https://github.com/sripberger" | ||
} | ||
], | ||
"version": "3.0.0", | ||
"description": "Stub TypeScript definitions entry for http-terminator, which provides its own types definitions", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/http-terminator" | ||
}, | ||
"scripts": {}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/node": "*" | ||
"http-terminator": "*" | ||
}, | ||
"typesPublisherContentHash": "9e10f3f027c1c02df102e9ec81ec6c2ee2edf4b9d7c05b59f5d352fcea3c275c", | ||
"typeScriptVersion": "4.5" | ||
"deprecated": "This is a stub types definition. http-terminator provides its own type definitions, so you do not need this installed." | ||
} |
@@ -1,58 +0,3 @@ | ||
# Installation | ||
> `npm install --save @types/http-terminator` | ||
This is a stub types definition for @types/http-terminator (https://github.com/gajus/http-terminator#readme). | ||
# Summary | ||
This package contains type definitions for http-terminator (https://github.com/gajus/http-terminator#readme). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-terminator. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-terminator/index.d.ts) | ||
````ts | ||
/// <reference types="node" /> | ||
import { Server as HttpServer } from "http"; | ||
import { Server as HttpsServer } from "https"; | ||
/** | ||
* Terminator configuration interface. | ||
*/ | ||
export interface HttpTerminatorConfig { | ||
/** | ||
* Number of milliseconds to allow for the active sockets to complete | ||
* serving the response (default: 5000). | ||
*/ | ||
gracefulTerminationTimeout?: number | undefined; | ||
/** | ||
* Intsance of http.Server or https.Server. | ||
*/ | ||
server: HttpServer | HttpsServer; | ||
} | ||
/** | ||
* Terminator interface. | ||
*/ | ||
export interface HttpTerminator { | ||
/** | ||
* Terminates the HTTP server. | ||
*/ | ||
terminate(): Promise<void>; | ||
} | ||
/** | ||
* Creates an HttpTerminator. | ||
* @param config Terminator configuration | ||
* @returns The created HttpTerminator. | ||
*/ | ||
export function createHttpTerminator( | ||
config: HttpTerminatorConfig, | ||
): HttpTerminator; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
# Credits | ||
These definitions were written by [Steve Ripberger](https://github.com/sripberger). | ||
http-terminator provides its own type definitions, so you don't need @types/http-terminator installed! |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1793
3
0
2
1
1
3
1
1
+ Addedhttp-terminator@*
+ Addeddelay@5.0.0(transitive)
+ Addedfast-printf@1.6.10(transitive)
+ Addedhttp-terminator@3.2.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-timeout@3.2.0(transitive)
+ Addedp-wait-for@3.2.0(transitive)
+ Addedroarr@7.21.1(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedsemver-compare@1.0.0(transitive)
+ Addedtype-fest@2.19.0(transitive)
- Removed@types/node@*
- Removed@types/node@22.13.9(transitive)
- Removedundici-types@6.20.0(transitive)