@types/node 14.18.12 → 14.18.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.18/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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 14 Feb 2022 19:31:28 GMT
11
+ * Last updated: Mon, 25 Apr 2022 15:31:40 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v14.18/crypto.d.ts CHANGED
@@ -189,6 +189,7 @@ declare module 'crypto' {
189
189
 
190
190
  type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
191
191
  type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
192
+ type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
192
193
 
193
194
  type BinaryLike = string | NodeJS.ArrayBufferView;
194
195
 
@@ -200,6 +201,9 @@ declare module 'crypto' {
200
201
  interface CipherGCMOptions extends stream.TransformOptions {
201
202
  authTagLength?: number | undefined;
202
203
  }
204
+ interface CipherOCBOptions extends stream.TransformOptions {
205
+ authTagLength: number;
206
+ }
203
207
  /** @deprecated since v10.0.0 use `createCipheriv()` */
204
208
  function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
205
209
  /** @deprecated since v10.0.0 use `createCipheriv()` */
@@ -210,13 +214,19 @@ declare module 'crypto' {
210
214
  function createCipheriv(
211
215
  algorithm: CipherCCMTypes,
212
216
  key: CipherKey,
213
- iv: BinaryLike | null,
217
+ iv: BinaryLike,
214
218
  options: CipherCCMOptions,
215
219
  ): CipherCCM;
220
+ function createCipheriv(
221
+ algorithm: CipherOCBTypes,
222
+ key: CipherKey,
223
+ iv: BinaryLike,
224
+ options: CipherOCBOptions,
225
+ ): CipherOCB;
216
226
  function createCipheriv(
217
227
  algorithm: CipherGCMTypes,
218
228
  key: CipherKey,
219
- iv: BinaryLike | null,
229
+ iv: BinaryLike,
220
230
  options?: CipherGCMOptions,
221
231
  ): CipherGCM;
222
232
  function createCipheriv(
@@ -246,6 +256,10 @@ declare module 'crypto' {
246
256
  setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
247
257
  getAuthTag(): Buffer;
248
258
  }
259
+ interface CipherOCB extends Cipher {
260
+ setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
261
+ getAuthTag(): Buffer;
262
+ }
249
263
  /** @deprecated since v10.0.0 use `createDecipheriv()` */
250
264
  function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
251
265
  /** @deprecated since v10.0.0 use `createDecipheriv()` */
@@ -256,13 +270,19 @@ declare module 'crypto' {
256
270
  function createDecipheriv(
257
271
  algorithm: CipherCCMTypes,
258
272
  key: CipherKey,
259
- iv: BinaryLike | null,
273
+ iv: BinaryLike,
260
274
  options: CipherCCMOptions,
261
275
  ): DecipherCCM;
276
+ function createDecipheriv(
277
+ algorithm: CipherOCBTypes,
278
+ key: CipherKey,
279
+ iv: BinaryLike,
280
+ options: CipherOCBOptions,
281
+ ): DecipherOCB;
262
282
  function createDecipheriv(
263
283
  algorithm: CipherGCMTypes,
264
284
  key: CipherKey,
265
- iv: BinaryLike | null,
285
+ iv: BinaryLike,
266
286
  options?: CipherGCMOptions,
267
287
  ): DecipherGCM;
268
288
  function createDecipheriv(
@@ -292,6 +312,10 @@ declare module 'crypto' {
292
312
  setAuthTag(buffer: NodeJS.ArrayBufferView): this;
293
313
  setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
294
314
  }
315
+ interface DecipherOCB extends Decipher {
316
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
317
+ setAAD(buffer: NodeJS.ArrayBufferView, options?: { plaintextLength: number }): this;
318
+ }
295
319
 
296
320
  interface PrivateKeyInput {
297
321
  key: string | Buffer;
node v14.18/http2.d.ts CHANGED
@@ -252,6 +252,7 @@ declare module 'http2' {
252
252
  parent?: number | undefined;
253
253
  weight?: number | undefined;
254
254
  waitForTrailers?: boolean | undefined;
255
+ signal?: AbortSignal | undefined;
255
256
  }
256
257
 
257
258
  export interface SessionState {
node v14.18/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);
@@ -87,6 +88,12 @@ declare module 'net' {
87
88
  readonly destroyed: boolean;
88
89
  readonly localAddress: string;
89
90
  readonly localPort: number;
91
+ /**
92
+ * This property represents the state of the connection as a string.
93
+ * @see {https://nodejs.org/api/net.html#socketreadystate}
94
+ * @since v0.5.0
95
+ */
96
+ readonly readyState: SocketReadyState;
90
97
  readonly remoteAddress?: string | undefined;
91
98
  readonly remoteFamily?: string | undefined;
92
99
  readonly remotePort?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.12",
3
+ "version": "14.18.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",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "757273e514d1d1b21dac64fec141cfb9376f836ab554e1062dd525c8e14d3c3c",
224
- "typeScriptVersion": "3.8"
223
+ "typesPublisherContentHash": "de7d7fa58fbe70881e8662249a6c054eb176e77e9a6ce7581364a081860bda98",
224
+ "typeScriptVersion": "3.9"
225
225
  }