@types/node 14.18.13 → 14.18.16

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: Thu, 14 Apr 2022 06:31:29 GMT
11
+ * Last updated: Tue, 26 Apr 2022 21:01:47 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
 
@@ -111,7 +111,7 @@ declare module 'async_hooks' {
111
111
  * @param type The type of async event.
112
112
  * @param triggerAsyncId The ID of the execution context that created
113
113
  * this async event (default: `executionAsyncId()`), or an
114
- * AsyncResourceOptions object (since 9.3)
114
+ * AsyncResourceOptions object (since v9.3.0)
115
115
  */
116
116
  constructor(type: string, triggerAsyncId?: number|AsyncResourceOptions);
117
117
 
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;
@@ -724,11 +724,11 @@ declare namespace NodeJS {
724
724
  id: string;
725
725
  filename: string;
726
726
  loaded: boolean;
727
- /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */
727
+ /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
728
728
  parent: Module | null | undefined;
729
729
  children: Module[];
730
730
  /**
731
- * @since 11.14.0
731
+ * @since v11.14.0
732
732
  *
733
733
  * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
734
734
  */
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 {
@@ -1917,7 +1917,7 @@ declare module 'inspector' {
1917
1917
  * Connects a session to the main thread inspector back-end.
1918
1918
  * An exception will be thrown if this API was not called on a Worker
1919
1919
  * thread.
1920
- * @since 12.11.0
1920
+ * @since v12.11.0
1921
1921
  */
1922
1922
  connectToMainThread(): void;
1923
1923
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.13",
3
+ "version": "14.18.16",
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": "b276806c9b266528afe22b54243eb4b62d3e6b7324bfdd8b136425edd319cf07",
223
+ "typesPublisherContentHash": "0d998b667f1dae5e2990109864381377f42577f9f1342ff84e533de5a4a145c6",
224
224
  "typeScriptVersion": "3.9"
225
225
  }