@types/node 12.20.46 → 12.20.49
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 +1 -1
- node v12.20/crypto.d.ts +28 -4
- node v12.20/globals.d.ts +1 -0
- node v12.20/net.d.ts +7 -0
- node v12.20/package.json +3 -3
node v12.20/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 24 Apr 2022 21:01:39 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/crypto.d.ts
CHANGED
|
@@ -167,6 +167,7 @@ declare module 'crypto' {
|
|
|
167
167
|
|
|
168
168
|
type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm';
|
|
169
169
|
type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
|
|
170
|
+
type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
|
|
170
171
|
|
|
171
172
|
type BinaryLike = string | NodeJS.ArrayBufferView;
|
|
172
173
|
|
|
@@ -178,6 +179,9 @@ declare module 'crypto' {
|
|
|
178
179
|
interface CipherGCMOptions extends stream.TransformOptions {
|
|
179
180
|
authTagLength?: number | undefined;
|
|
180
181
|
}
|
|
182
|
+
interface CipherOCBOptions extends stream.TransformOptions {
|
|
183
|
+
authTagLength: number;
|
|
184
|
+
}
|
|
181
185
|
/** @deprecated since v10.0.0 use createCipheriv() */
|
|
182
186
|
function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
|
183
187
|
/** @deprecated since v10.0.0 use createCipheriv() */
|
|
@@ -188,13 +192,19 @@ declare module 'crypto' {
|
|
|
188
192
|
function createCipheriv(
|
|
189
193
|
algorithm: CipherCCMTypes,
|
|
190
194
|
key: CipherKey,
|
|
191
|
-
iv: BinaryLike
|
|
195
|
+
iv: BinaryLike,
|
|
192
196
|
options: CipherCCMOptions,
|
|
193
197
|
): CipherCCM;
|
|
198
|
+
function createCipheriv(
|
|
199
|
+
algorithm: CipherOCBTypes,
|
|
200
|
+
key: CipherKey,
|
|
201
|
+
iv: BinaryLike,
|
|
202
|
+
options: CipherOCBOptions,
|
|
203
|
+
): CipherOCB;
|
|
194
204
|
function createCipheriv(
|
|
195
205
|
algorithm: CipherGCMTypes,
|
|
196
206
|
key: CipherKey,
|
|
197
|
-
iv: BinaryLike
|
|
207
|
+
iv: BinaryLike,
|
|
198
208
|
options?: CipherGCMOptions,
|
|
199
209
|
): CipherGCM;
|
|
200
210
|
function createCipheriv(
|
|
@@ -232,6 +242,10 @@ declare module 'crypto' {
|
|
|
232
242
|
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
233
243
|
getAuthTag(): Buffer;
|
|
234
244
|
}
|
|
245
|
+
interface CipherOCB extends Cipher {
|
|
246
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
247
|
+
getAuthTag(): Buffer;
|
|
248
|
+
}
|
|
235
249
|
/** @deprecated since v10.0.0 use createDecipheriv() */
|
|
236
250
|
function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
|
237
251
|
/** @deprecated since v10.0.0 use createDecipheriv() */
|
|
@@ -242,13 +256,19 @@ declare module 'crypto' {
|
|
|
242
256
|
function createDecipheriv(
|
|
243
257
|
algorithm: CipherCCMTypes,
|
|
244
258
|
key: BinaryLike,
|
|
245
|
-
iv: BinaryLike
|
|
259
|
+
iv: BinaryLike,
|
|
246
260
|
options: CipherCCMOptions,
|
|
247
261
|
): DecipherCCM;
|
|
262
|
+
function createDecipheriv(
|
|
263
|
+
algorithm: CipherOCBTypes,
|
|
264
|
+
key: BinaryLike,
|
|
265
|
+
iv: BinaryLike,
|
|
266
|
+
options: CipherOCBOptions,
|
|
267
|
+
): DecipherOCB;
|
|
248
268
|
function createDecipheriv(
|
|
249
269
|
algorithm: CipherGCMTypes,
|
|
250
270
|
key: BinaryLike,
|
|
251
|
-
iv: BinaryLike
|
|
271
|
+
iv: BinaryLike,
|
|
252
272
|
options?: CipherGCMOptions,
|
|
253
273
|
): DecipherGCM;
|
|
254
274
|
function createDecipheriv(
|
|
@@ -286,6 +306,10 @@ declare module 'crypto' {
|
|
|
286
306
|
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
|
287
307
|
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
288
308
|
}
|
|
309
|
+
interface DecipherOCB extends Decipher {
|
|
310
|
+
setAuthTag(buffer: NodeJS.ArrayBufferView): this;
|
|
311
|
+
setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
|
|
312
|
+
}
|
|
289
313
|
|
|
290
314
|
interface PrivateKeyInput {
|
|
291
315
|
key: string | Buffer;
|
node v12.20/globals.d.ts
CHANGED
|
@@ -529,6 +529,7 @@ declare class Buffer extends Uint8Array {
|
|
|
529
529
|
readInt32LE(offset?: number): number;
|
|
530
530
|
readInt32BE(offset?: number): number;
|
|
531
531
|
readFloatLE(offset?: number): number;
|
|
532
|
+
readFloatBE(offset?: number): number;
|
|
532
533
|
readDoubleLE(offset?: number): number;
|
|
533
534
|
readDoubleBE(offset?: number): number;
|
|
534
535
|
reverse(): this;
|
node v12.20/net.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ declare module 'net' {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
|
|
59
|
+
type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
|
|
59
60
|
|
|
60
61
|
class Socket extends stream.Duplex {
|
|
61
62
|
constructor(options?: SocketConstructorOpts);
|
|
@@ -86,6 +87,12 @@ declare module 'net' {
|
|
|
86
87
|
readonly destroyed: boolean;
|
|
87
88
|
readonly localAddress: string;
|
|
88
89
|
readonly localPort: number;
|
|
90
|
+
/**
|
|
91
|
+
* This property represents the state of the connection as a string.
|
|
92
|
+
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
|
93
|
+
* @since v0.5.0
|
|
94
|
+
*/
|
|
95
|
+
readonly readyState: SocketReadyState;
|
|
89
96
|
readonly remoteAddress?: string | undefined;
|
|
90
97
|
readonly remoteFamily?: string | undefined;
|
|
91
98
|
readonly remotePort?: number | undefined;
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.49",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,6 +190,6 @@
|
|
|
190
190
|
},
|
|
191
191
|
"scripts": {},
|
|
192
192
|
"dependencies": {},
|
|
193
|
-
"typesPublisherContentHash": "
|
|
194
|
-
"typeScriptVersion": "3.
|
|
193
|
+
"typesPublisherContentHash": "452d0927668f94a32878dbe0d72d8d72b812f0b129966be1bf7c72f7c1453e7a",
|
|
194
|
+
"typeScriptVersion": "3.9"
|
|
195
195
|
}
|