@types/node 14.17.34 → 14.18.3

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 (47) hide show
  1. {node v14.17 → node v14.18}/LICENSE +0 -0
  2. {node v14.17 → node v14.18}/README.md +2 -2
  3. {node v14.17 → node v14.18}/assert.d.ts +4 -0
  4. {node v14.17 → node v14.18}/async_hooks.d.ts +3 -0
  5. {node v14.17 → node v14.18}/buffer.d.ts +3 -0
  6. {node v14.17 → node v14.18}/child_process.d.ts +3 -0
  7. {node v14.17 → node v14.18}/cluster.d.ts +3 -0
  8. {node v14.17 → node v14.18}/console.d.ts +4 -0
  9. {node v14.17 → node v14.18}/constants.d.ts +5 -0
  10. {node v14.17 → node v14.18}/crypto.d.ts +3 -0
  11. {node v14.17 → node v14.18}/dgram.d.ts +3 -0
  12. {node v14.17 → node v14.18}/dns.d.ts +3 -0
  13. {node v14.17 → node v14.18}/domain.d.ts +3 -0
  14. {node v14.17 → node v14.18}/events.d.ts +4 -0
  15. {node v14.17 → node v14.18}/fs/promises.d.ts +3 -0
  16. {node v14.17 → node v14.18}/fs.d.ts +3 -0
  17. {node v14.17 → node v14.18}/globals.d.ts +0 -0
  18. {node v14.17 → node v14.18}/globals.global.d.ts +0 -0
  19. {node v14.17 → node v14.18}/http.d.ts +4 -1
  20. {node v14.17 → node v14.18}/http2.d.ts +4 -1
  21. {node v14.17 → node v14.18}/https.d.ts +3 -0
  22. {node v14.17 → node v14.18}/index.d.ts +2 -1
  23. {node v14.17 → node v14.18}/inspector.d.ts +4 -0
  24. {node v14.17 → node v14.18}/module.d.ts +4 -0
  25. {node v14.17 → node v14.18}/net.d.ts +3 -0
  26. {node v14.17 → node v14.18}/os.d.ts +3 -0
  27. {node v14.17 → node v14.18}/package.json +7 -2
  28. {node v14.17 → node v14.18}/path.d.ts +4 -0
  29. {node v14.17 → node v14.18}/perf_hooks.d.ts +3 -0
  30. {node v14.17 → node v14.18}/process.d.ts +4 -0
  31. {node v14.17 → node v14.18}/punycode.d.ts +3 -0
  32. {node v14.17 → node v14.18}/querystring.d.ts +3 -0
  33. {node v14.17 → node v14.18}/readline.d.ts +3 -0
  34. {node v14.17 → node v14.18}/repl.d.ts +3 -0
  35. {node v14.17 → node v14.18}/stream.d.ts +4 -0
  36. {node v14.17 → node v14.18}/string_decoder.d.ts +3 -0
  37. {node v14.17 → node v14.18}/timers.d.ts +3 -0
  38. {node v14.17 → node v14.18}/tls.d.ts +5 -1
  39. {node v14.17 → node v14.18}/trace_events.d.ts +3 -0
  40. {node v14.17 → node v14.18}/tty.d.ts +3 -0
  41. {node v14.17 → node v14.18}/url.d.ts +3 -0
  42. {node v14.17 → node v14.18}/util.d.ts +3 -0
  43. {node v14.17 → node v14.18}/v8.d.ts +3 -0
  44. {node v14.17 → node v14.18}/vm.d.ts +3 -0
  45. {node v14.17 → node v14.18}/wasi.d.ts +3 -0
  46. {node v14.17 → node v14.18}/worker_threads.d.ts +3 -0
  47. {node v14.17 → node v14.18}/zlib.d.ts +3 -0
File without changes
@@ -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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 18 Nov 2021 19:01:40 GMT
11
+ * Last updated: Sun, 26 Dec 2021 13:01:24 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
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), [Hoàng Văn Khải](https://github.com/KSXGitHub), [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), [Seth Westphal](https://github.com/westy92), [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), and [Bond](https://github.com/bondz).
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), [Hoàng Văn Khải](https://github.com/KSXGitHub), [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), [Seth Westphal](https://github.com/westy92), [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), [Bond](https://github.com/bondz), and [Linus Unnebäck](https://github.com/LinusU).
@@ -122,3 +122,7 @@ declare module 'assert' {
122
122
 
123
123
  export = assert;
124
124
  }
125
+ declare module 'node:assert' {
126
+ import assert = require('assert');
127
+ export = assert;
128
+ }
@@ -224,3 +224,6 @@ declare module 'async_hooks' {
224
224
  enterWith(store: T): void;
225
225
  }
226
226
  }
227
+ declare module 'node:async_hooks' {
228
+ export * from 'async_hooks';
229
+ }
@@ -20,3 +20,6 @@ declare module 'buffer' {
20
20
 
21
21
  export { BuffType as Buffer };
22
22
  }
23
+ declare module 'node:buffer' {
24
+ export * from 'buffer';
25
+ }
@@ -509,3 +509,6 @@ declare module 'child_process' {
509
509
  function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
510
510
  function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
511
511
  }
512
+ declare module 'node:child_process' {
513
+ export * from 'child_process';
514
+ }
@@ -260,3 +260,6 @@ declare module 'cluster' {
260
260
 
261
261
  function eventNames(): string[];
262
262
  }
263
+ declare module 'node:cluster' {
264
+ export * from 'cluster';
265
+ }
@@ -1,4 +1,8 @@
1
1
  declare module 'console' {
2
+ import console = require('node:console');
3
+ export = console;
4
+ }
5
+ declare module 'node:console' {
2
6
  import { InspectOptions } from 'util';
3
7
 
4
8
  global {
@@ -11,3 +11,8 @@ declare module 'constants' {
11
11
  typeof fsConstants;
12
12
  export = exp;
13
13
  }
14
+
15
+ declare module 'node:constants' {
16
+ import constants = require('constants');
17
+ export = constants;
18
+ }
@@ -1184,3 +1184,6 @@ declare module 'crypto' {
1184
1184
  */
1185
1185
  function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
1186
1186
  }
1187
+ declare module 'node:crypto' {
1188
+ export * from 'crypto';
1189
+ }
@@ -139,3 +139,6 @@ declare module 'dgram' {
139
139
  prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
140
140
  }
141
141
  }
142
+ declare module 'node:dgram' {
143
+ export * from 'dgram';
144
+ }
@@ -382,3 +382,6 @@ declare module 'dns' {
382
382
  }
383
383
  }
384
384
  }
385
+ declare module 'node:dns' {
386
+ export * from 'dns';
387
+ }
@@ -22,3 +22,6 @@ declare module 'domain' {
22
22
 
23
23
  function create(): Domain;
24
24
  }
25
+ declare module 'node:domain' {
26
+ export * from 'domain';
27
+ }
@@ -76,3 +76,7 @@ declare module 'events' {
76
76
 
77
77
  export = EventEmitter;
78
78
  }
79
+ declare module 'node:events' {
80
+ import events = require('events');
81
+ export = events;
82
+ }
@@ -563,3 +563,6 @@ declare module 'fs/promises' {
563
563
 
564
564
  function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
565
565
  }
566
+ declare module 'node:fs/promises' {
567
+ export * from 'fs/promises';
568
+ }
@@ -2268,3 +2268,6 @@ declare module 'fs' {
2268
2268
  bigint?: boolean | undefined;
2269
2269
  }
2270
2270
  }
2271
+ declare module 'node:fs' {
2272
+ export * from 'fs';
2273
+ }
File without changes
File without changes
@@ -237,7 +237,7 @@ declare module 'http' {
237
237
  constructor();
238
238
 
239
239
  setTimeout(msecs: number, callback?: () => void): this;
240
- setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
240
+ setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
241
241
  getHeader(name: string): number | string | string[] | undefined;
242
242
  getHeaders(): OutgoingHttpHeaders;
243
243
  getHeaderNames(): string[];
@@ -485,3 +485,6 @@ declare module 'http' {
485
485
  */
486
486
  const maxHeaderSize: number;
487
487
  }
488
+ declare module 'node:http' {
489
+ export * from 'http';
490
+ }
@@ -594,7 +594,7 @@ declare module 'http2' {
594
594
  readonly socket: net.Socket | tls.TLSSocket;
595
595
  readonly stream: ServerHttp2Stream;
596
596
  readonly trailers: IncomingHttpHeaders;
597
- readonly url: string;
597
+ url: string;
598
598
 
599
599
  setTimeout(msecs: number, callback?: () => void): void;
600
600
  read(size?: number): Buffer | string | null;
@@ -956,3 +956,6 @@ declare module 'http2' {
956
956
  listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void
957
957
  ): ClientHttp2Session;
958
958
  }
959
+ declare module 'node:http2' {
960
+ export * from 'http2';
961
+ }
@@ -137,3 +137,6 @@ declare module 'https' {
137
137
  function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
138
138
  let globalAgent: Agent;
139
139
  }
140
+ declare module 'node:https' {
141
+ export * from 'https';
142
+ }
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 14.17
1
+ // Type definitions for non-npm package Node.js 14.18
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -41,6 +41,7 @@
41
41
  // Victor Perin <https://github.com/victorperin>
42
42
  // Yongsheng Zhang <https://github.com/ZYSzys>
43
43
  // Bond <https://github.com/bondz>
44
+ // Linus Unnebäck <https://github.com/LinusU>
44
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
46
 
46
47
  // NOTE: These definitions support NodeJS and TypeScript 3.7+
@@ -3045,3 +3045,7 @@ declare module 'inspector' {
3045
3045
  */
3046
3046
  function waitForDebugger(): void;
3047
3047
  }
3048
+ declare module 'node:inspector' {
3049
+ import EventEmitter = require('inspector');
3050
+ export = EventEmitter;
3051
+ }
@@ -50,3 +50,7 @@ declare module 'module' {
50
50
  }
51
51
  export = Module;
52
52
  }
53
+ declare module 'node:module' {
54
+ import module = require('module');
55
+ export = module;
56
+ }
@@ -291,3 +291,6 @@ declare module 'net' {
291
291
  function isIPv4(input: string): boolean;
292
292
  function isIPv6(input: string): boolean;
293
293
  }
294
+ declare module 'node:net' {
295
+ export * from 'net';
296
+ }
@@ -237,3 +237,6 @@ declare module 'os' {
237
237
  */
238
238
  function setPriority(pid: number, priority: number): void;
239
239
  }
240
+ declare module 'node:os' {
241
+ export * from 'os';
242
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.17.34",
3
+ "version": "14.18.3",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -209,6 +209,11 @@
209
209
  "name": "Bond",
210
210
  "url": "https://github.com/bondz",
211
211
  "githubUsername": "bondz"
212
+ },
213
+ {
214
+ "name": "Linus Unnebäck",
215
+ "url": "https://github.com/LinusU",
216
+ "githubUsername": "LinusU"
212
217
  }
213
218
  ],
214
219
  "main": "",
@@ -220,6 +225,6 @@
220
225
  },
221
226
  "scripts": {},
222
227
  "dependencies": {},
223
- "typesPublisherContentHash": "e2a1fbcecdca546c154d6cef43d8b0cd889ae502a33a0aa58c210786c3a2fa7e",
228
+ "typesPublisherContentHash": "feccfa53d66b9ccffb14dd0e28b04bb36f497195fbffbb19ce9292ad861e3b3e",
224
229
  "typeScriptVersion": "3.8"
225
230
  }
@@ -151,3 +151,7 @@ declare module 'path' {
151
151
  const path: path.PlatformPath;
152
152
  export = path;
153
153
  }
154
+ declare module 'node:path' {
155
+ import path = require('path');
156
+ export = path;
157
+ }
@@ -269,3 +269,6 @@ declare module 'perf_hooks' {
269
269
 
270
270
  function monitorEventLoopDelay(options?: EventLoopMonitorOptions): EventLoopDelayMonitor;
271
271
  }
272
+ declare module 'node:perf_hooks' {
273
+ export * from 'perf_hooks';
274
+ }
@@ -407,3 +407,7 @@ declare module 'process' {
407
407
 
408
408
  export = process;
409
409
  }
410
+ declare module 'node:process' {
411
+ import process = require('process');
412
+ export = process;
413
+ }
@@ -73,3 +73,6 @@ declare module 'punycode' {
73
73
  */
74
74
  const version: string;
75
75
  }
76
+ declare module 'node:punycode' {
77
+ export * from 'punycode';
78
+ }
@@ -26,3 +26,6 @@ declare module 'querystring' {
26
26
  function escape(str: string): string;
27
27
  function unescape(str: string): string;
28
28
  }
29
+ declare module 'node:querystring' {
30
+ export * from 'querystring';
31
+ }
@@ -169,3 +169,6 @@ declare module 'readline' {
169
169
  */
170
170
  function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
171
171
  }
172
+ declare module 'node:readline' {
173
+ export * from 'readline';
174
+ }
@@ -393,3 +393,6 @@ declare module 'repl' {
393
393
  constructor(err: Error);
394
394
  }
395
395
  }
396
+ declare module 'node:repl' {
397
+ export * from 'repl';
398
+ }
@@ -353,3 +353,7 @@ declare module 'stream' {
353
353
 
354
354
  export = internal;
355
355
  }
356
+ declare module 'node:stream' {
357
+ import stream = require('stream');
358
+ export = stream;
359
+ }
@@ -5,3 +5,6 @@ declare module 'string_decoder' {
5
5
  end(buffer?: Buffer): string;
6
6
  }
7
7
  }
8
+ declare module 'node:string_decoder' {
9
+ export * from 'string_decoder';
10
+ }
@@ -14,3 +14,6 @@ declare module 'timers' {
14
14
  }
15
15
  function clearImmediate(immediateId: NodeJS.Immediate): void;
16
16
  }
17
+ declare module 'node:timers' {
18
+ export * from 'timers';
19
+ }
@@ -1,5 +1,6 @@
1
1
  declare module 'tls' {
2
2
  import * as net from 'net';
3
+ import * as stream from 'stream';
3
4
 
4
5
  const CLIENT_RENEG_LIMIT: number;
5
6
  const CLIENT_RENEG_WINDOW: number;
@@ -441,7 +442,7 @@ declare module 'tls' {
441
442
  host?: string | undefined;
442
443
  port?: number | undefined;
443
444
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
444
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
445
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
445
446
  checkServerIdentity?: typeof checkServerIdentity | undefined;
446
447
  servername?: string | undefined; // SNI TLS Extension
447
448
  session?: Buffer | undefined;
@@ -778,3 +779,6 @@ declare module 'tls' {
778
779
  */
779
780
  const rootCertificates: ReadonlyArray<string>;
780
781
  }
782
+ declare module 'node:tls' {
783
+ export * from 'tls';
784
+ }
@@ -59,3 +59,6 @@ declare module 'trace_events' {
59
59
  */
60
60
  function getEnabledCategories(): string | undefined;
61
61
  }
62
+ declare module 'node:trace_events' {
63
+ export * from 'trace_events';
64
+ }
@@ -64,3 +64,6 @@ declare module 'tty' {
64
64
  isTTY: boolean;
65
65
  }
66
66
  }
67
+ declare module 'node:tty' {
68
+ export * from 'tty';
69
+ }
@@ -114,3 +114,6 @@ declare module 'url' {
114
114
  [Symbol.iterator](): IterableIterator<[string, string]>;
115
115
  }
116
116
  }
117
+ declare module 'node:url' {
118
+ export * from 'url';
119
+ }
@@ -211,3 +211,6 @@ declare module 'util' {
211
211
  encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
212
212
  }
213
213
  }
214
+ declare module 'node:util' {
215
+ export * from 'util';
216
+ }
@@ -185,3 +185,6 @@ declare module 'v8' {
185
185
  */
186
186
  function deserialize(data: NodeJS.TypedArray): any;
187
187
  }
188
+ declare module 'node:v8' {
189
+ export * from 'v8';
190
+ }
@@ -150,3 +150,6 @@ declare module 'vm' {
150
150
  */
151
151
  function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>;
152
152
  }
153
+ declare module 'node:vm' {
154
+ export * from 'vm';
155
+ }
@@ -84,3 +84,6 @@ declare module 'wasi' {
84
84
  readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
85
85
  }
86
86
  }
87
+ declare module 'node:wasi' {
88
+ export * from 'wasi';
89
+ }
@@ -236,3 +236,6 @@ declare module 'worker_threads' {
236
236
  */
237
237
  function receiveMessageOnPort(port: MessagePort): { message: any } | undefined;
238
238
  }
239
+ declare module 'node:worker_threads' {
240
+ export * from 'worker_threads';
241
+ }
@@ -359,3 +359,6 @@ declare module 'zlib' {
359
359
  /** @deprecated */
360
360
  const Z_DEFLATED: number;
361
361
  }
362
+ declare module 'node:zlib' {
363
+ export * from 'zlib';
364
+ }