@types/node 16.11.1 → 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.
node/README.md CHANGED
@@ -8,9 +8,9 @@ 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: Sun, 17 Oct 2021 04:01:18 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
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
node/child_process.d.ts CHANGED
@@ -789,6 +789,7 @@ declare module 'child_process' {
789
789
  function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
790
790
  interface ExecOptions extends CommonOptions {
791
791
  shell?: string | undefined;
792
+ signal?: AbortSignal | undefined;
792
793
  maxBuffer?: number | undefined;
793
794
  killSignal?: NodeJS.Signals | number | undefined;
794
795
  }
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/index.d.ts CHANGED
@@ -30,7 +30,6 @@
30
30
  // Thanik Bhongbhibhat <https://github.com/bhongy>
31
31
  // Marcin Kopacz <https://github.com/chyzwar>
32
32
  // Trivikram Kamat <https://github.com/trivikr>
33
- // Minh Son Nguyen <https://github.com/nguymin4>
34
33
  // Junxiao Shi <https://github.com/yoursunny>
35
34
  // Ilia Baryshnikov <https://github.com/qwelias>
36
35
  // ExE Boss <https://github.com/ExE-Boss>
node/net.d.ts CHANGED
@@ -255,12 +255,12 @@ declare module 'net' {
255
255
  * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`.
256
256
  * @since v0.9.6
257
257
  */
258
- readonly localAddress: string;
258
+ readonly localAddress?: string;
259
259
  /**
260
260
  * The numeric representation of the local port. For example, `80` or `21`.
261
261
  * @since v0.9.6
262
262
  */
263
- readonly localPort: number;
263
+ readonly localPort?: number;
264
264
  /**
265
265
  * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
266
266
  * the socket is destroyed (for example, if the client disconnected).
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.1",
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",
@@ -155,11 +155,6 @@
155
155
  "url": "https://github.com/trivikr",
156
156
  "githubUsername": "trivikr"
157
157
  },
158
- {
159
- "name": "Minh Son Nguyen",
160
- "url": "https://github.com/nguymin4",
161
- "githubUsername": "nguymin4"
162
- },
163
158
  {
164
159
  "name": "Junxiao Shi",
165
160
  "url": "https://github.com/yoursunny",
@@ -225,6 +220,6 @@
225
220
  },
226
221
  "scripts": {},
227
222
  "dependencies": {},
228
- "typesPublisherContentHash": "ff17ac1347ef82ac3f00b3e6266533bf928948b2bdb61a2c5dfe7751c2b729f9",
223
+ "typesPublisherContentHash": "d882d0eaabc0abd311ed6a62fb9c656b4f9b017400c8cda2733714a7cbb7b66d",
229
224
  "typeScriptVersion": "3.7"
230
225
  }