@types/node 14.14.31 → 14.14.35

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,7 +8,7 @@ This package contains type definitions for Node.js (http://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, 19 Feb 2021 17:58:40 GMT
11
+ * Last updated: Mon, 15 Mar 2021 18:54:33 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
 
node/child_process.d.ts CHANGED
@@ -342,6 +342,7 @@ declare module 'child_process' {
342
342
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
343
343
  encoding: BufferEncoding;
344
344
  }
345
+ type ExecFileException = ExecException & NodeJS.ErrnoException;
345
346
 
346
347
  function execFile(file: string): ChildProcess;
347
348
  function execFile(file: string, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
@@ -349,25 +350,25 @@ declare module 'child_process' {
349
350
  function execFile(file: string, args: ReadonlyArray<string> | undefined | null, options: (BaseEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess;
350
351
 
351
352
  // no `options` definitely means stdout/stderr are `string`.
352
- function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
353
- function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
353
+ function execFile(file: string, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
354
+ function execFile(file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
354
355
 
355
356
  // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
356
- function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
357
+ function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess;
357
358
  function execFile(
358
359
  file: string,
359
360
  args: ReadonlyArray<string> | undefined | null,
360
361
  options: ExecFileOptionsWithBufferEncoding,
361
- callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
362
+ callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
362
363
  ): ChildProcess;
363
364
 
364
365
  // `options` with well known `encoding` means stdout/stderr are definitely `string`.
365
- function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
366
+ function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
366
367
  function execFile(
367
368
  file: string,
368
369
  args: ReadonlyArray<string> | undefined | null,
369
370
  options: ExecFileOptionsWithStringEncoding,
370
- callback: (error: ExecException | null, stdout: string, stderr: string) => void,
371
+ callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
371
372
  ): ChildProcess;
372
373
 
373
374
  // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
@@ -375,35 +376,35 @@ declare module 'child_process' {
375
376
  function execFile(
376
377
  file: string,
377
378
  options: ExecFileOptionsWithOtherEncoding,
378
- callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
379
+ callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
379
380
  ): ChildProcess;
380
381
  function execFile(
381
382
  file: string,
382
383
  args: ReadonlyArray<string> | undefined | null,
383
384
  options: ExecFileOptionsWithOtherEncoding,
384
- callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
385
+ callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
385
386
  ): ChildProcess;
386
387
 
387
388
  // `options` without an `encoding` means stdout/stderr are definitely `string`.
388
- function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess;
389
+ function execFile(file: string, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess;
389
390
  function execFile(
390
391
  file: string,
391
392
  args: ReadonlyArray<string> | undefined | null,
392
393
  options: ExecFileOptions,
393
- callback: (error: ExecException | null, stdout: string, stderr: string) => void
394
+ callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
394
395
  ): ChildProcess;
395
396
 
396
397
  // fallback if nothing else matches. Worst case is always `string | Buffer`.
397
398
  function execFile(
398
399
  file: string,
399
400
  options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
400
- callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
401
+ callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
401
402
  ): ChildProcess;
402
403
  function execFile(
403
404
  file: string,
404
405
  args: ReadonlyArray<string> | undefined | null,
405
406
  options: (BaseEncodingOptions & ExecFileOptions) | undefined | null,
406
- callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
407
+ callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null,
407
408
  ): ChildProcess;
408
409
 
409
410
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
node/globals.d.ts CHANGED
@@ -6,7 +6,7 @@ interface ErrorConstructor {
6
6
  /**
7
7
  * Optional override for formatting stack traces
8
8
  *
9
- * @see https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces
9
+ * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
10
10
  */
11
11
  prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any;
12
12
 
node/http2.d.ts CHANGED
@@ -652,7 +652,7 @@ declare module 'http2' {
652
652
  prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
653
653
  }
654
654
 
655
- export class Http2ServerResponse extends stream.Stream {
655
+ export class Http2ServerResponse extends stream.Writable {
656
656
  constructor(stream: ServerHttp2Stream);
657
657
 
658
658
  readonly connection: net.Socket | tls.TLSSocket;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.14.31",
3
+ "version": "14.14.35",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -218,11 +218,6 @@
218
218
  "main": "",
219
219
  "types": "index.d.ts",
220
220
  "typesVersions": {
221
- "<=3.4": {
222
- "*": [
223
- "ts3.4/*"
224
- ]
225
- },
226
221
  "<=3.6": {
227
222
  "*": [
228
223
  "ts3.6/*"
@@ -236,6 +231,6 @@
236
231
  },
237
232
  "scripts": {},
238
233
  "dependencies": {},
239
- "typesPublisherContentHash": "e35e9f1e1be2150998638a2f9485b5e421a39bcfa3f02c37f4c39c69eeffef7b",
240
- "typeScriptVersion": "3.4"
234
+ "typesPublisherContentHash": "583e5ba937e68e2c384a5cb14af09ba401f97b4c1ff71c7653ca56ccac38b7bf",
235
+ "typeScriptVersion": "3.5"
241
236
  }
File without changes
node/ts3.6/base.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.5.
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier.
2
2
 
3
3
  // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
4
  // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
- // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
- // - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.5
7
- // - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5 with assert pulled in
5
+ // - ~/index.d.ts - Definitions specific to TypeScript 3.7 and above
6
+ // - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.6 and earlier
7
+ // - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with assert pulled in
8
8
 
9
9
  // Reference required types from the default lib:
10
10
  /// <reference lib="es2018" />
@@ -13,7 +13,46 @@
13
13
  /// <reference lib="esnext.bigint" />
14
14
 
15
15
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
- /// <reference path="../ts3.4/base.d.ts" />
16
+ /// <reference path="../globals.d.ts" />
17
+ /// <reference path="../async_hooks.d.ts" />
18
+ /// <reference path="../buffer.d.ts" />
19
+ /// <reference path="../child_process.d.ts" />
20
+ /// <reference path="../cluster.d.ts" />
21
+ /// <reference path="../console.d.ts" />
22
+ /// <reference path="../constants.d.ts" />
23
+ /// <reference path="../crypto.d.ts" />
24
+ /// <reference path="../dgram.d.ts" />
25
+ /// <reference path="../dns.d.ts" />
26
+ /// <reference path="../domain.d.ts" />
27
+ /// <reference path="../events.d.ts" />
28
+ /// <reference path="../fs.d.ts" />
29
+ /// <reference path="../fs/promises.d.ts" />
30
+ /// <reference path="../http.d.ts" />
31
+ /// <reference path="../http2.d.ts" />
32
+ /// <reference path="../https.d.ts" />
33
+ /// <reference path="../inspector.d.ts" />
34
+ /// <reference path="../module.d.ts" />
35
+ /// <reference path="../net.d.ts" />
36
+ /// <reference path="../os.d.ts" />
37
+ /// <reference path="../path.d.ts" />
38
+ /// <reference path="../perf_hooks.d.ts" />
39
+ /// <reference path="../process.d.ts" />
40
+ /// <reference path="../punycode.d.ts" />
41
+ /// <reference path="../querystring.d.ts" />
42
+ /// <reference path="../readline.d.ts" />
43
+ /// <reference path="../repl.d.ts" />
44
+ /// <reference path="../stream.d.ts" />
45
+ /// <reference path="../string_decoder.d.ts" />
46
+ /// <reference path="../timers.d.ts" />
47
+ /// <reference path="../tls.d.ts" />
48
+ /// <reference path="../trace_events.d.ts" />
49
+ /// <reference path="../tty.d.ts" />
50
+ /// <reference path="../url.d.ts" />
51
+ /// <reference path="../util.d.ts" />
52
+ /// <reference path="../v8.d.ts" />
53
+ /// <reference path="../vm.d.ts" />
54
+ /// <reference path="../worker_threads.d.ts" />
55
+ /// <reference path="../zlib.d.ts" />
17
56
 
18
57
  // TypeScript 3.5-specific augmentations:
19
58
  /// <reference path="../globals.global.d.ts" />
node/ts3.6/index.d.ts CHANGED
@@ -4,4 +4,4 @@
4
4
 
5
5
  /// <reference path="base.d.ts" />
6
6
 
7
- /// <reference path="../ts3.4/assert.d.ts" />
7
+ /// <reference path="assert.d.ts" />
node/ts3.4/base.d.ts DELETED
@@ -1,56 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.2 - 3.4.
2
-
3
- // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
- // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
- // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
- // - ~/ts3.2/base.d.ts - Definitions specific to TypeScript 3.2
7
- // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with global and assert pulled in
8
-
9
- // Reference required types from the default lib:
10
- /// <reference lib="es2018" />
11
- /// <reference lib="esnext.asynciterable" />
12
- /// <reference lib="esnext.intl" />
13
- /// <reference lib="esnext.bigint" />
14
-
15
- // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
-
17
- /// <reference path="../globals.d.ts" />
18
- /// <reference path="../async_hooks.d.ts" />
19
- /// <reference path="../buffer.d.ts" />
20
- /// <reference path="../child_process.d.ts" />
21
- /// <reference path="../cluster.d.ts" />
22
- /// <reference path="../console.d.ts" />
23
- /// <reference path="../constants.d.ts" />
24
- /// <reference path="../crypto.d.ts" />
25
- /// <reference path="../dgram.d.ts" />
26
- /// <reference path="../dns.d.ts" />
27
- /// <reference path="../domain.d.ts" />
28
- /// <reference path="../events.d.ts" />
29
- /// <reference path="../fs.d.ts" />
30
- /// <reference path="../fs/promises.d.ts" />
31
- /// <reference path="../http.d.ts" />
32
- /// <reference path="../http2.d.ts" />
33
- /// <reference path="../https.d.ts" />
34
- /// <reference path="../inspector.d.ts" />
35
- /// <reference path="../module.d.ts" />
36
- /// <reference path="../net.d.ts" />
37
- /// <reference path="../os.d.ts" />
38
- /// <reference path="../path.d.ts" />
39
- /// <reference path="../perf_hooks.d.ts" />
40
- /// <reference path="../process.d.ts" />
41
- /// <reference path="../punycode.d.ts" />
42
- /// <reference path="../querystring.d.ts" />
43
- /// <reference path="../readline.d.ts" />
44
- /// <reference path="../repl.d.ts" />
45
- /// <reference path="../stream.d.ts" />
46
- /// <reference path="../string_decoder.d.ts" />
47
- /// <reference path="../timers.d.ts" />
48
- /// <reference path="../tls.d.ts" />
49
- /// <reference path="../trace_events.d.ts" />
50
- /// <reference path="../tty.d.ts" />
51
- /// <reference path="../url.d.ts" />
52
- /// <reference path="../util.d.ts" />
53
- /// <reference path="../v8.d.ts" />
54
- /// <reference path="../vm.d.ts" />
55
- /// <reference path="../worker_threads.d.ts" />
56
- /// <reference path="../zlib.d.ts" />
@@ -1 +0,0 @@
1
- declare var global: NodeJS.Global;
node/ts3.4/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.2 - 3.4.
2
- // This is required to enable globalThis support for global in ts3.5 without causing errors
3
- // This is required to enable typing assert in ts3.7 without causing errors
4
- // Typically type modifiations should be made in base.d.ts instead of here
5
-
6
- /// <reference path="base.d.ts" />
7
- /// <reference path="assert.d.ts" />
8
- /// <reference path="globals.global.d.ts" />