New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/http-terminator

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/http-terminator - npm Package Compare versions

Comparing version 2.0.5 to 3.0.0

25

http-terminator/package.json
{
"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."
}

59

http-terminator/README.md

@@ -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!
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