@types/node 12.20.20 → 12.20.24

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 v12.20/README.md CHANGED
@@ -2,13 +2,13 @@
2
2
  > `npm install --save @types/node`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
5
+ This package contains type definitions for Node.js (https://nodejs.org/).
6
6
 
7
7
  # Details
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 21 Aug 2021 00:01:30 GMT
11
+ * Last updated: Tue, 07 Sep 2021 07:31:44 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v12.20/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Type definitions for non-npm package Node.js 12.20
2
- // Project: http://nodejs.org/
2
+ // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
5
5
  // Alberto Schiabel <https://github.com/jkomyno>
@@ -43,4 +43,51 @@
43
43
  // This isn't strictly needed since 3.7 has the assert module, but this way we're consistent.
44
44
  // Typically type modificatons should be made in base.d.ts instead of here
45
45
 
46
- /// <reference path="base.d.ts" />
46
+ // Reference required types from the default lib:
47
+ /// <reference lib="es2018" />
48
+ /// <reference lib="esnext.asynciterable" />
49
+ /// <reference lib="esnext.intl" />
50
+ /// <reference lib="esnext.bigint" />
51
+
52
+ /// <reference path="assert.d.ts" />
53
+ /// <reference path="globals.d.ts" />
54
+ /// <reference path="async_hooks.d.ts" />
55
+ /// <reference path="buffer.d.ts" />
56
+ /// <reference path="child_process.d.ts" />
57
+ /// <reference path="cluster.d.ts" />
58
+ /// <reference path="console.d.ts" />
59
+ /// <reference path="constants.d.ts" />
60
+ /// <reference path="crypto.d.ts" />
61
+ /// <reference path="dgram.d.ts" />
62
+ /// <reference path="dns.d.ts" />
63
+ /// <reference path="domain.d.ts" />
64
+ /// <reference path="events.d.ts" />
65
+ /// <reference path="fs.d.ts" />
66
+ /// <reference path="http.d.ts" />
67
+ /// <reference path="http2.d.ts" />
68
+ /// <reference path="https.d.ts" />
69
+ /// <reference path="inspector.d.ts" />
70
+ /// <reference path="module.d.ts" />
71
+ /// <reference path="net.d.ts" />
72
+ /// <reference path="os.d.ts" />
73
+ /// <reference path="path.d.ts" />
74
+ /// <reference path="perf_hooks.d.ts" />
75
+ /// <reference path="process.d.ts" />
76
+ /// <reference path="punycode.d.ts" />
77
+ /// <reference path="querystring.d.ts" />
78
+ /// <reference path="readline.d.ts" />
79
+ /// <reference path="repl.d.ts" />
80
+ /// <reference path="stream.d.ts" />
81
+ /// <reference path="string_decoder.d.ts" />
82
+ /// <reference path="timers.d.ts" />
83
+ /// <reference path="tls.d.ts" />
84
+ /// <reference path="trace_events.d.ts" />
85
+ /// <reference path="tty.d.ts" />
86
+ /// <reference path="url.d.ts" />
87
+ /// <reference path="util.d.ts" />
88
+ /// <reference path="v8.d.ts" />
89
+ /// <reference path="vm.d.ts" />
90
+ /// <reference path="wasi.d.ts" />
91
+ /// <reference path="worker_threads.d.ts" />
92
+ /// <reference path="zlib.d.ts" />
93
+ /// <reference path="globals.global.d.ts" />
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.20",
3
+ "version": "12.20.24",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -193,13 +193,6 @@
193
193
  ],
194
194
  "main": "",
195
195
  "types": "index.d.ts",
196
- "typesVersions": {
197
- "<=3.6": {
198
- "*": [
199
- "ts3.6/*"
200
- ]
201
- }
202
- },
203
196
  "repository": {
204
197
  "type": "git",
205
198
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -207,6 +200,6 @@
207
200
  },
208
201
  "scripts": {},
209
202
  "dependencies": {},
210
- "typesPublisherContentHash": "9f0f64c95dbbc0060a3b7d6fbe28a903357d62e31c0322f7d243385f58e6d039",
203
+ "typesPublisherContentHash": "94ed0bfbd9d8226caa1cf3ec958d19c6a5345a6fde3c503acf74327d1ed425b3",
211
204
  "typeScriptVersion": "3.7"
212
205
  }
node v12.20/stream.d.ts CHANGED
@@ -230,6 +230,7 @@ declare module 'stream' {
230
230
  readonly writableHighWaterMark: number;
231
231
  readonly writableLength: number;
232
232
  readonly writableObjectMode: boolean;
233
+ allowHalfOpen: boolean;
233
234
  constructor(opts?: DuplexOptions);
234
235
  _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
235
236
  _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
node v12.20/tls.d.ts CHANGED
@@ -145,9 +145,10 @@ declare module 'tls' {
145
145
 
146
146
  /**
147
147
  * String containing the selected ALPN protocol.
148
- * When ALPN has no selected protocol, tlsSocket.alpnProtocol equals false.
148
+ * Before a handshake has completed, this value is always null.
149
+ * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
149
150
  */
150
- alpnProtocol?: string | undefined;
151
+ alpnProtocol: string | false | null;
151
152
 
152
153
  /**
153
154
  * Returns an object representing the local certificate. The returned
node v12.20/base.d.ts DELETED
@@ -1,19 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.7.
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.7/base.d.ts - Definitions specific to TypeScript 3.7
7
- // - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 with 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
- /// <reference path="ts3.6/base.d.ts" />
17
-
18
- // TypeScript 3.7-specific augmentations:
19
- /// <reference path="assert.d.ts" />
@@ -1,91 +0,0 @@
1
- declare module 'assert' {
2
- function assert(value: any, message?: string | Error): void;
3
- namespace assert {
4
- class AssertionError implements Error {
5
- name: string;
6
- message: string;
7
- actual: any;
8
- expected: any;
9
- operator: string;
10
- generatedMessage: boolean;
11
- code: 'ERR_ASSERTION';
12
-
13
- constructor(options?: {
14
- message?: string;
15
- actual?: any;
16
- expected?: any;
17
- operator?: string;
18
- // tslint:disable-next-line:ban-types
19
- stackStartFn?: Function;
20
- });
21
- }
22
-
23
- class CallTracker {
24
- calls(exact?: number): () => void;
25
- calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
26
- report(): CallTrackerReportInformation[];
27
- verify(): void;
28
- }
29
- interface CallTrackerReportInformation {
30
- message: string;
31
- /** The actual number of times the function was called. */
32
- actual: number;
33
- /** The number of times the function was expected to be called. */
34
- expected: number;
35
- /** The name of the function that is wrapped. */
36
- operator: string;
37
- /** A stack trace of the function. */
38
- stack: object;
39
- }
40
-
41
- type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
42
-
43
- function fail(message?: string | Error): never;
44
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
45
- function fail(
46
- actual: any,
47
- expected: any,
48
- message?: string | Error,
49
- operator?: string,
50
- // tslint:disable-next-line:ban-types
51
- stackStartFn?: Function,
52
- ): never;
53
- function ok(value: any, message?: string | Error): void;
54
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
55
- function equal(actual: any, expected: any, message?: string | Error): void;
56
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
57
- function notEqual(actual: any, expected: any, message?: string | Error): void;
58
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
59
- function deepEqual(actual: any, expected: any, message?: string | Error): void;
60
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
61
- function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
62
- function strictEqual(actual: any, expected: any, message?: string | Error): void;
63
- function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
64
- function deepStrictEqual(actual: any, expected: any, message?: string | Error): void;
65
- function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
66
-
67
- function throws(block: () => any, message?: string | Error): void;
68
- function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
69
- function doesNotThrow(block: () => any, message?: string | Error): void;
70
- function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
71
-
72
- function ifError(value: any): void;
73
-
74
- function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
75
- function rejects(
76
- block: (() => Promise<any>) | Promise<any>,
77
- error: AssertPredicate,
78
- message?: string | Error,
79
- ): Promise<void>;
80
- function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
81
- function doesNotReject(
82
- block: (() => Promise<any>) | Promise<any>,
83
- error: AssertPredicate,
84
- message?: string | Error,
85
- ): Promise<void>;
86
-
87
- const strict: typeof assert;
88
- }
89
-
90
- export = assert;
91
- }
@@ -1,58 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier.
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 3.7+
6
- // - ~/ts3.6/base.d.ts - Definitions specific to TypeScript 3.6 and earlier
7
- // - ~/ts3.6/index.d.ts - Definitions specific to TypeScript 3.6 and earlier with 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
- /// <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="../http.d.ts" />
30
- /// <reference path="../http2.d.ts" />
31
- /// <reference path="../https.d.ts" />
32
- /// <reference path="../inspector.d.ts" />
33
- /// <reference path="../module.d.ts" />
34
- /// <reference path="../net.d.ts" />
35
- /// <reference path="../os.d.ts" />
36
- /// <reference path="../path.d.ts" />
37
- /// <reference path="../perf_hooks.d.ts" />
38
- /// <reference path="../process.d.ts" />
39
- /// <reference path="../punycode.d.ts" />
40
- /// <reference path="../querystring.d.ts" />
41
- /// <reference path="../readline.d.ts" />
42
- /// <reference path="../repl.d.ts" />
43
- /// <reference path="../stream.d.ts" />
44
- /// <reference path="../string_decoder.d.ts" />
45
- /// <reference path="../timers.d.ts" />
46
- /// <reference path="../tls.d.ts" />
47
- /// <reference path="../trace_events.d.ts" />
48
- /// <reference path="../tty.d.ts" />
49
- /// <reference path="../url.d.ts" />
50
- /// <reference path="../util.d.ts" />
51
- /// <reference path="../v8.d.ts" />
52
- /// <reference path="../vm.d.ts" />
53
- /// <reference path="../worker_threads.d.ts" />
54
- /// <reference path="../zlib.d.ts" />
55
-
56
- // TypeScript 3.5-specific augmentations:
57
- /// <reference path="../globals.global.d.ts" />
58
- /// <reference path="../wasi.d.ts" />
@@ -1,7 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.4.
2
- // This is required to enable typing assert in ts3.7 without causing errors
3
- // Typically type modifications should be made in base.d.ts instead of here
4
-
5
- /// <reference path="base.d.ts" />
6
-
7
- /// <reference path="assert.d.ts" />