@types/node 14.17.17 → 14.17.21
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/child_process.d.ts +12 -11
- 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/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:
|
|
11
|
+
* Last updated: Tue, 05 Oct 2021 20:31:30 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/child_process.d.ts
CHANGED
|
@@ -462,10 +462,10 @@ declare module 'child_process' {
|
|
|
462
462
|
function spawnSync(command: string): SpawnSyncReturns<Buffer>;
|
|
463
463
|
function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
464
464
|
function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
465
|
-
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
465
|
+
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
466
466
|
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
467
467
|
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
468
|
-
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
468
|
+
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
469
469
|
|
|
470
470
|
interface ExecSyncOptions extends CommonOptions {
|
|
471
471
|
input?: string | Uint8Array | undefined;
|
|
@@ -482,9 +482,9 @@ declare module 'child_process' {
|
|
|
482
482
|
encoding?: 'buffer' | null | undefined;
|
|
483
483
|
}
|
|
484
484
|
function execSync(command: string): Buffer;
|
|
485
|
-
function execSync(command: string, options
|
|
486
|
-
function execSync(command: string, options
|
|
487
|
-
function execSync(command: string, options?: ExecSyncOptions): Buffer;
|
|
485
|
+
function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
|
|
486
|
+
function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
|
|
487
|
+
function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
|
|
488
488
|
|
|
489
489
|
interface ExecFileSyncOptions extends CommonOptions {
|
|
490
490
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
@@ -501,10 +501,11 @@ declare module 'child_process' {
|
|
|
501
501
|
encoding: BufferEncoding; // specify `null`.
|
|
502
502
|
}
|
|
503
503
|
function execFileSync(command: string): Buffer;
|
|
504
|
-
function execFileSync(command: string, options
|
|
505
|
-
function execFileSync(command: string, options
|
|
506
|
-
function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
|
|
507
|
-
function execFileSync(command: string, args
|
|
508
|
-
function execFileSync(command: string, args
|
|
509
|
-
function execFileSync(command: string, args
|
|
504
|
+
function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
505
|
+
function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
506
|
+
function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
507
|
+
function execFileSync(command: string, args: ReadonlyArray<string>): Buffer;
|
|
508
|
+
function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
509
|
+
function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
510
|
+
function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
510
511
|
}
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.17.
|
|
3
|
+
"version": "14.17.21",
|
|
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": "24685ad8d2045648c09795a367b41b4e7275261c22cfdda9bf64af8350814d80",
|
|
229
224
|
"typeScriptVersion": "3.7"
|
|
230
225
|
}
|