@types/node 16.11.4 → 16.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/http.d.ts +2 -1
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 22 Oct 2021 19:01:19 GMT
11
+ * Last updated: Mon, 25 Oct 2021 15:01:20 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/http.d.ts CHANGED
@@ -42,7 +42,7 @@
42
42
  declare module 'http' {
43
43
  import * as stream from 'node:stream';
44
44
  import { URL } from 'node:url';
45
- import { Socket, Server as NetServer } from 'node:net';
45
+ import { Socket, Server as NetServer, LookupFunction } from 'node:net';
46
46
  // incoming headers will never contain number
47
47
  interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
48
48
  accept?: string | undefined;
@@ -136,6 +136,7 @@ declare module 'http' {
136
136
  setHost?: boolean | undefined;
137
137
  // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
138
138
  createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
139
+ lookup?: LookupFunction | undefined;
139
140
  }
140
141
  interface ServerOptions {
141
142
  IncomingMessage?: typeof IncomingMessage | undefined;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.4",
3
+ "version": "16.11.5",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "88d11d2cd1cff427195251c34d57ab70970cdda435eec3b89cf045d7060e5d10",
223
+ "typesPublisherContentHash": "d882d0eaabc0abd311ed6a62fb9c656b4f9b017400c8cda2733714a7cbb7b66d",
224
224
  "typeScriptVersion": "3.7"
225
225
  }