@types/node 14.17.18 → 14.17.22
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 +2 -2
- node v14.17/console.d.ts +5 -0
- node v14.17/crypto.d.ts +2 -2
- node v14.17/globals.d.ts +3 -3
- node v14.17/index.d.ts +0 -1
- node v14.17/inspector.d.ts +8 -2
- node v14.17/package.json +2 -7
node v14.17/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/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 12 Oct 2021 17:31:34 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), [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), [
|
|
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), [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), and [Bond](https://github.com/bondz).
|
node v14.17/console.d.ts
CHANGED
|
@@ -115,6 +115,11 @@ declare module 'console' {
|
|
|
115
115
|
ignoreErrors?: boolean | undefined;
|
|
116
116
|
colorMode?: boolean | 'auto' | undefined;
|
|
117
117
|
inspectOptions?: InspectOptions | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Set group indentation
|
|
120
|
+
* @default 2
|
|
121
|
+
*/
|
|
122
|
+
groupIndentation?: number | undefined;
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
interface ConsoleConstructor {
|
node v14.17/crypto.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare module 'crypto' {
|
|
|
140
140
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
141
141
|
|
|
142
142
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
143
|
-
type BinaryToTextEncoding = 'base64' | 'hex';
|
|
143
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
|
|
144
144
|
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
|
145
145
|
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
|
146
146
|
|
|
@@ -514,7 +514,7 @@ declare module 'crypto' {
|
|
|
514
514
|
key: BinaryLike,
|
|
515
515
|
curve: string,
|
|
516
516
|
inputEncoding?: BinaryToTextEncoding,
|
|
517
|
-
outputEncoding?: 'latin1' | 'hex' | 'base64',
|
|
517
|
+
outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
|
|
518
518
|
format?: 'uncompressed' | 'compressed' | 'hybrid',
|
|
519
519
|
): Buffer | string;
|
|
520
520
|
generateKeys(): Buffer;
|
node v14.17/globals.d.ts
CHANGED
|
@@ -71,14 +71,14 @@ declare var module: NodeModule;
|
|
|
71
71
|
declare var exports: any;
|
|
72
72
|
|
|
73
73
|
// Buffer class
|
|
74
|
-
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
|
|
74
|
+
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
|
|
75
75
|
|
|
76
76
|
type WithImplicitCoercion<T> = T | { valueOf(): T };
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Raw data is stored in instances of the Buffer class.
|
|
80
80
|
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
|
|
81
|
-
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
|
|
81
|
+
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
|
|
82
82
|
*/
|
|
83
83
|
declare class Buffer extends Uint8Array {
|
|
84
84
|
/**
|
|
@@ -160,7 +160,7 @@ declare class Buffer extends Uint8Array {
|
|
|
160
160
|
static isBuffer(obj: any): obj is Buffer;
|
|
161
161
|
/**
|
|
162
162
|
* Returns true if {encoding} is a valid encoding argument.
|
|
163
|
-
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
|
|
163
|
+
* Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
|
|
164
164
|
*
|
|
165
165
|
* @param encoding string to test.
|
|
166
166
|
*/
|
node v14.17/index.d.ts
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
// Surasak Chaisurin <https://github.com/Ryan-Willpower>
|
|
39
39
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
40
40
|
// Anna Henningsen <https://github.com/addaleax>
|
|
41
|
-
// Jason Kwok <https://github.com/JasonHK>
|
|
42
41
|
// Victor Perin <https://github.com/victorperin>
|
|
43
42
|
// Yongsheng Zhang <https://github.com/ZYSzys>
|
|
44
43
|
// Bond <https://github.com/bondz>
|
node v14.17/inspector.d.ts
CHANGED
|
@@ -1910,11 +1910,17 @@ declare module 'inspector' {
|
|
|
1910
1910
|
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Connects a session to the inspector back-end.
|
|
1913
|
-
* An exception will be thrown if there is already a connected session established either
|
|
1914
|
-
* through the API or by a front-end connected to the Inspector WebSocket port.
|
|
1915
1913
|
*/
|
|
1916
1914
|
connect(): void;
|
|
1917
1915
|
|
|
1916
|
+
/**
|
|
1917
|
+
* Connects a session to the main thread inspector back-end.
|
|
1918
|
+
* An exception will be thrown if this API was not called on a Worker
|
|
1919
|
+
* thread.
|
|
1920
|
+
* @since 12.11.0
|
|
1921
|
+
*/
|
|
1922
|
+
connectToMainThread(): void;
|
|
1923
|
+
|
|
1918
1924
|
/**
|
|
1919
1925
|
* Immediately close the session. All pending message callbacks will be called with an error.
|
|
1920
1926
|
* session.connect() will need to be called to be able to send messages again.
|
node v14.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.17.
|
|
3
|
+
"version": "14.17.22",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -195,11 +195,6 @@
|
|
|
195
195
|
"url": "https://github.com/addaleax",
|
|
196
196
|
"githubUsername": "addaleax"
|
|
197
197
|
},
|
|
198
|
-
{
|
|
199
|
-
"name": "Jason Kwok",
|
|
200
|
-
"url": "https://github.com/JasonHK",
|
|
201
|
-
"githubUsername": "JasonHK"
|
|
202
|
-
},
|
|
203
198
|
{
|
|
204
199
|
"name": "Victor Perin",
|
|
205
200
|
"url": "https://github.com/victorperin",
|
|
@@ -225,6 +220,6 @@
|
|
|
225
220
|
},
|
|
226
221
|
"scripts": {},
|
|
227
222
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "b1c48cbe49fcaee2fc94b06036c52a1afb306ed23937d651b45fbdb2d7288be7",
|
|
229
224
|
"typeScriptVersion": "3.7"
|
|
230
225
|
}
|