@types/node 14.17.11 → 14.17.15

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 v14.17/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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 21 Aug 2021 00:01:28 GMT
11
+ * Last updated: Tue, 07 Sep 2021 07:31:43 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 v14.17/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Type definitions for non-npm package Node.js 14.17
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>
@@ -44,16 +44,56 @@
44
44
  // Bond <https://github.com/bondz>
45
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
46
46
 
47
- // NOTE: These definitions support NodeJS and TypeScript 3.7.
48
- // Typically type modifications should be made in base.d.ts instead of here
47
+ // NOTE: These definitions support NodeJS and TypeScript 3.7+
49
48
 
50
- /// <reference path="base.d.ts" />
49
+ // Reference required types from the default lib:
50
+ /// <reference lib="es2018" />
51
+ /// <reference lib="esnext.asynciterable" />
52
+ /// <reference lib="esnext.intl" />
53
+ /// <reference lib="esnext.bigint" />
51
54
 
52
- // NOTE: TypeScript version-specific augmentations can be found in the following paths:
53
- // - ~/base.d.ts - Shared definitions common to all TypeScript versions
54
- // - ~/index.d.ts - Definitions specific to TypeScript 2.8
55
- // - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5
55
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
56
+ /// <reference path="assert.d.ts" />
57
+ /// <reference path="globals.d.ts" />
58
+ /// <reference path="async_hooks.d.ts" />
59
+ /// <reference path="buffer.d.ts" />
60
+ /// <reference path="child_process.d.ts" />
61
+ /// <reference path="cluster.d.ts" />
62
+ /// <reference path="console.d.ts" />
63
+ /// <reference path="constants.d.ts" />
64
+ /// <reference path="crypto.d.ts" />
65
+ /// <reference path="dgram.d.ts" />
66
+ /// <reference path="dns.d.ts" />
67
+ /// <reference path="domain.d.ts" />
68
+ /// <reference path="events.d.ts" />
69
+ /// <reference path="fs.d.ts" />
70
+ /// <reference path="fs/promises.d.ts" />
71
+ /// <reference path="http.d.ts" />
72
+ /// <reference path="http2.d.ts" />
73
+ /// <reference path="https.d.ts" />
74
+ /// <reference path="inspector.d.ts" />
75
+ /// <reference path="module.d.ts" />
76
+ /// <reference path="net.d.ts" />
77
+ /// <reference path="os.d.ts" />
78
+ /// <reference path="path.d.ts" />
79
+ /// <reference path="perf_hooks.d.ts" />
80
+ /// <reference path="process.d.ts" />
81
+ /// <reference path="punycode.d.ts" />
82
+ /// <reference path="querystring.d.ts" />
83
+ /// <reference path="readline.d.ts" />
84
+ /// <reference path="repl.d.ts" />
85
+ /// <reference path="stream.d.ts" />
86
+ /// <reference path="string_decoder.d.ts" />
87
+ /// <reference path="timers.d.ts" />
88
+ /// <reference path="tls.d.ts" />
89
+ /// <reference path="trace_events.d.ts" />
90
+ /// <reference path="tty.d.ts" />
91
+ /// <reference path="url.d.ts" />
92
+ /// <reference path="util.d.ts" />
93
+ /// <reference path="v8.d.ts" />
94
+ /// <reference path="vm.d.ts" />
95
+ /// <reference path="wasi.d.ts" />
96
+ /// <reference path="worker_threads.d.ts" />
97
+ /// <reference path="zlib.d.ts" />
56
98
 
57
- // NOTE: Augmentations for TypeScript 3.5 and later should use individual files for overrides
58
- // within the respective ~/ts3.5 (or later) folder. However, this is disallowed for versions
59
- // prior to TypeScript 3.5, so the older definitions will be found here.
99
+ /// <reference path="globals.global.d.ts" />
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.17.11",
3
+ "version": "14.17.15",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -218,13 +218,6 @@
218
218
  ],
219
219
  "main": "",
220
220
  "types": "index.d.ts",
221
- "typesVersions": {
222
- "<=3.6": {
223
- "*": [
224
- "ts3.6/*"
225
- ]
226
- }
227
- },
228
221
  "repository": {
229
222
  "type": "git",
230
223
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -232,6 +225,6 @@
232
225
  },
233
226
  "scripts": {},
234
227
  "dependencies": {},
235
- "typesPublisherContentHash": "6fa4f94eee5eacdd13d08b21b77a97dc8a348cf537395011a10f82ffa23782dd",
228
+ "typesPublisherContentHash": "cc6eb5a4ee285b4918af508cea3ca63abdb77c14ad6f8cfebcfabc5dc714aa00",
236
229
  "typeScriptVersion": "3.7"
237
230
  }
node v14.17/stream.d.ts CHANGED
@@ -251,6 +251,7 @@ declare module 'stream' {
251
251
  readonly writableLength: number;
252
252
  readonly writableObjectMode: boolean;
253
253
  readonly writableCorked: number;
254
+ allowHalfOpen: boolean;
254
255
  constructor(opts?: DuplexOptions);
255
256
  _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
256
257
  _writev?(chunks: Array<{ chunk: any, encoding: BufferEncoding }>, callback: (error?: Error | null) => void): void;
node v14.17/tls.d.ts CHANGED
@@ -150,9 +150,10 @@ declare module 'tls' {
150
150
 
151
151
  /**
152
152
  * String containing the selected ALPN protocol.
153
- * When ALPN has no selected protocol, tlsSocket.alpnProtocol equals false.
153
+ * Before a handshake has completed, this value is always null.
154
+ * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
154
155
  */
155
- alpnProtocol?: string | undefined;
156
+ alpnProtocol: string | false | null;
156
157
 
157
158
  /**
158
159
  * Returns an object representing the local certificate. The returned
node v14.17/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,98 +0,0 @@
1
- declare module 'assert' {
2
- /** An alias of `assert.ok()`. */
3
- function assert(value: any, message?: string | Error): void;
4
- namespace assert {
5
- class AssertionError extends Error {
6
- actual: any;
7
- expected: any;
8
- operator: string;
9
- generatedMessage: boolean;
10
- code: 'ERR_ASSERTION';
11
-
12
- constructor(options?: {
13
- /** If provided, the error message is set to this value. */
14
- message?: string;
15
- /** The `actual` property on the error instance. */
16
- actual?: any;
17
- /** The `expected` property on the error instance. */
18
- expected?: any;
19
- /** The `operator` property on the error instance. */
20
- operator?: string;
21
- /** If provided, the generated stack trace omits frames before this function. */
22
- // tslint:disable-next-line:ban-types
23
- stackStartFn?: Function;
24
- });
25
- }
26
-
27
- class CallTracker {
28
- calls(exact?: number): () => void;
29
- calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
30
- report(): CallTrackerReportInformation[];
31
- verify(): void;
32
- }
33
- interface CallTrackerReportInformation {
34
- message: string;
35
- /** The actual number of times the function was called. */
36
- actual: number;
37
- /** The number of times the function was expected to be called. */
38
- expected: number;
39
- /** The name of the function that is wrapped. */
40
- operator: string;
41
- /** A stack trace of the function. */
42
- stack: object;
43
- }
44
-
45
- type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
46
-
47
- function fail(message?: string | Error): never;
48
- /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
49
- function fail(
50
- actual: any,
51
- expected: any,
52
- message?: string | Error,
53
- operator?: string,
54
- // tslint:disable-next-line:ban-types
55
- stackStartFn?: Function,
56
- ): never;
57
- function ok(value: any, message?: string | Error): void;
58
- /** @deprecated since v9.9.0 - use strictEqual() instead. */
59
- function equal(actual: any, expected: any, message?: string | Error): void;
60
- /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
61
- function notEqual(actual: any, expected: any, message?: string | Error): void;
62
- /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
63
- function deepEqual(actual: any, expected: any, message?: string | Error): void;
64
- /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
65
- function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
66
- function strictEqual(actual: any, expected: any, message?: string | Error): void;
67
- function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
68
- function deepStrictEqual(actual: any, expected: any, message?: string | Error): void;
69
- function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
70
-
71
- function throws(block: () => any, message?: string | Error): void;
72
- function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
73
- function doesNotThrow(block: () => any, message?: string | Error): void;
74
- function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
75
-
76
- function ifError(value: any): void;
77
-
78
- function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
79
- function rejects(
80
- block: (() => Promise<any>) | Promise<any>,
81
- error: AssertPredicate,
82
- message?: string | Error,
83
- ): Promise<void>;
84
- function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
85
- function doesNotReject(
86
- block: (() => Promise<any>) | Promise<any>,
87
- error: AssertPredicate,
88
- message?: string | Error,
89
- ): Promise<void>;
90
-
91
- function match(value: string, regExp: RegExp, message?: string | Error): void;
92
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
93
-
94
- const strict: typeof assert;
95
- }
96
-
97
- export = assert;
98
- }
@@ -1,61 +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 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
-
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="../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" />
56
-
57
- // TypeScript 3.5-specific augmentations:
58
- /// <reference path="../globals.global.d.ts" />
59
-
60
- // TypeScript 3.5-specific augmentations:
61
- /// <reference path="../wasi.d.ts" />
@@ -1,7 +0,0 @@
1
- // NOTE: These definitions support NodeJS and TypeScript 3.5 - 3.6.
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" />