@types/node 15.14.0 → 15.14.4

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.
Files changed (57) hide show
  1. {node → node v15.14}/LICENSE +0 -0
  2. node/README.md → node v15.14/README.md +2 -2
  3. {node → node v15.14}/assert/strict.d.ts +0 -0
  4. {node → node v15.14}/assert.d.ts +0 -0
  5. {node → node v15.14}/async_hooks.d.ts +0 -0
  6. {node → node v15.14}/base.d.ts +0 -0
  7. {node → node v15.14}/buffer.d.ts +0 -0
  8. node/child_process.d.ts → node v15.14/child_process.d.ts +1 -1
  9. {node → node v15.14}/cluster.d.ts +0 -0
  10. node/console.d.ts → node v15.14/console.d.ts +9 -9
  11. {node → node v15.14}/constants.d.ts +0 -0
  12. node/crypto.d.ts → node v15.14/crypto.d.ts +4 -15
  13. {node → node v15.14}/dgram.d.ts +0 -0
  14. {node → node v15.14}/diagnostic_channel.d.ts +0 -0
  15. {node → node v15.14}/dns/promises.d.ts +0 -0
  16. {node → node v15.14}/dns.d.ts +0 -0
  17. {node → node v15.14}/domain.d.ts +0 -0
  18. {node → node v15.14}/events.d.ts +0 -0
  19. {node → node v15.14}/fs/promises.d.ts +0 -0
  20. {node → node v15.14}/fs.d.ts +0 -0
  21. node/globals.d.ts → node v15.14/globals.d.ts +5 -1
  22. {node → node v15.14}/globals.global.d.ts +0 -0
  23. node/http.d.ts → node v15.14/http.d.ts +1 -1
  24. node/http2.d.ts → node v15.14/http2.d.ts +1 -0
  25. {node → node v15.14}/https.d.ts +0 -0
  26. {node → node v15.14}/index.d.ts +0 -0
  27. {node → node v15.14}/inspector.d.ts +0 -0
  28. {node → node v15.14}/module.d.ts +0 -0
  29. {node → node v15.14}/net.d.ts +0 -0
  30. {node → node v15.14}/os.d.ts +0 -0
  31. node/package.json → node v15.14/package.json +2 -2
  32. {node → node v15.14}/path.d.ts +0 -0
  33. {node → node v15.14}/perf_hooks.d.ts +0 -0
  34. node/process.d.ts → node v15.14/process.d.ts +0 -1
  35. {node → node v15.14}/punycode.d.ts +0 -0
  36. {node → node v15.14}/querystring.d.ts +0 -0
  37. {node → node v15.14}/readline.d.ts +0 -0
  38. {node → node v15.14}/repl.d.ts +0 -0
  39. {node → node v15.14}/stream/promises.d.ts +0 -0
  40. {node → node v15.14}/stream.d.ts +0 -0
  41. {node → node v15.14}/string_decoder.d.ts +0 -0
  42. {node → node v15.14}/timers/promises.d.ts +0 -0
  43. {node → node v15.14}/timers.d.ts +0 -0
  44. {node → node v15.14}/tls.d.ts +0 -0
  45. {node → node v15.14}/trace_events.d.ts +0 -0
  46. {node → node v15.14}/ts3.6/assert.d.ts +0 -0
  47. {node → node v15.14}/ts3.6/base.d.ts +0 -0
  48. {node → node v15.14}/ts3.6/index.d.ts +0 -0
  49. {node → node v15.14}/tty.d.ts +0 -0
  50. {node → node v15.14}/url.d.ts +0 -0
  51. {node → node v15.14}/util/types.d.ts +0 -0
  52. {node → node v15.14}/util.d.ts +0 -0
  53. {node → node v15.14}/v8.d.ts +0 -0
  54. {node → node v15.14}/vm.d.ts +0 -0
  55. {node → node v15.14}/wasi.d.ts +0 -0
  56. {node → node v15.14}/worker_threads.d.ts +0 -0
  57. {node → node v15.14}/zlib.d.ts +0 -0
File without changes
@@ -5,10 +5,10 @@
5
5
  This package contains type definitions for Node.js (http://nodejs.org/).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v15.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 01 Jul 2021 19:01:25 GMT
11
+ * Last updated: Wed, 28 Jul 2021 19:31:20 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
 
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -488,7 +488,7 @@ declare module 'child_process' {
488
488
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
489
489
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
490
490
 
491
- interface CommonExecOptions extends ProcessEnvOptions {
491
+ interface CommonExecOptions extends CommonOptions {
492
492
  input?: string | NodeJS.ArrayBufferView;
493
493
  stdio?: StdioOptions;
494
494
  killSignal?: NodeJS.Signals | number;
File without changes
@@ -25,16 +25,16 @@ declare module 'console' {
25
25
  */
26
26
  countReset(label?: string): void;
27
27
  /**
28
- * The `console.debug()` function is an alias for {@link console.log}.
28
+ * The `console.debug()` function is an alias for {@link console.log()}.
29
29
  */
30
30
  debug(message?: any, ...optionalParams: any[]): void;
31
31
  /**
32
- * Uses {@link util.inspect} on `obj` and prints the resulting string to `stdout`.
32
+ * Uses {@link util.inspect()} on `obj` and prints the resulting string to `stdout`.
33
33
  * This function bypasses any custom `inspect()` function defined on `obj`.
34
34
  */
35
35
  dir(obj: any, options?: InspectOptions): void;
36
36
  /**
37
- * This method calls {@link console.log} passing it the arguments received. Please note that this method does not produce any XML formatting
37
+ * This method calls {@link console.log()} passing it the arguments received. Please note that this method does not produce any XML formatting
38
38
  */
39
39
  dirxml(...data: any[]): void;
40
40
  /**
@@ -47,7 +47,7 @@ declare module 'console' {
47
47
  */
48
48
  group(...label: any[]): void;
49
49
  /**
50
- * The `console.groupCollapsed()` function is an alias for {@link console.group}.
50
+ * The `console.groupCollapsed()` function is an alias for {@link console.group()}.
51
51
  */
52
52
  groupCollapsed(...label: any[]): void;
53
53
  /**
@@ -55,7 +55,7 @@ declare module 'console' {
55
55
  */
56
56
  groupEnd(): void;
57
57
  /**
58
- * The {@link console.info} function is an alias for {@link console.log}.
58
+ * The {@link console.info()} function is an alias for {@link console.log()}.
59
59
  */
60
60
  info(message?: any, ...optionalParams: any[]): void;
61
61
  /**
@@ -72,19 +72,19 @@ declare module 'console' {
72
72
  */
73
73
  time(label?: string): void;
74
74
  /**
75
- * Stops a timer that was previously started by calling {@link console.time} and prints the result to `stdout`.
75
+ * Stops a timer that was previously started by calling {@link console.time()} and prints the result to `stdout`.
76
76
  */
77
77
  timeEnd(label?: string): void;
78
78
  /**
79
- * For a timer that was previously started by calling {@link console.time}, prints the elapsed time and other `data` arguments to `stdout`.
79
+ * For a timer that was previously started by calling {@link console.time()}, prints the elapsed time and other `data` arguments to `stdout`.
80
80
  */
81
81
  timeLog(label?: string, ...data: any[]): void;
82
82
  /**
83
- * Prints to `stderr` the string 'Trace :', followed by the {@link util.format} formatted message and stack trace to the current position in the code.
83
+ * Prints to `stderr` the string 'Trace :', followed by the {@link util.format()} formatted message and stack trace to the current position in the code.
84
84
  */
85
85
  trace(message?: any, ...optionalParams: any[]): void;
86
86
  /**
87
- * The {@link console.warn} function is an alias for {@link console.error}.
87
+ * The {@link console.warn()} function is an alias for {@link console.error()}.
88
88
  */
89
89
  warn(message?: any, ...optionalParams: any[]): void;
90
90
 
File without changes
@@ -196,9 +196,11 @@ declare module 'crypto' {
196
196
  cipher?: string;
197
197
  passphrase?: string | Buffer;
198
198
  }
199
+
199
200
  interface JwkKeyExportOptions {
200
201
  format: 'jwk';
201
202
  }
203
+
202
204
  interface JsonWebKey {
203
205
  crv?: string;
204
206
  d?: string;
@@ -213,7 +215,6 @@ declare module 'crypto' {
213
215
  qi?: string;
214
216
  x?: string;
215
217
  y?: string;
216
- [key: string]: unknown;
217
218
  }
218
219
 
219
220
  interface AsymmetricKeyDetails {
@@ -235,10 +236,6 @@ declare module 'crypto' {
235
236
  namedCurve?: string;
236
237
  }
237
238
 
238
- interface JwkKeyExportOptions {
239
- format: 'jwk';
240
- }
241
-
242
239
  class KeyObject {
243
240
  private constructor();
244
241
  asymmetricKeyType?: KeyType;
@@ -256,7 +253,6 @@ declare module 'crypto' {
256
253
  asymmetricKeyDetails?: AsymmetricKeyDetails;
257
254
  export(options: KeyExportOptions<'pem'>): string | Buffer;
258
255
  export(options?: KeyExportOptions<'der'>): Buffer;
259
- export(options?: JwkKeyExportOptions): JsonWebKey;
260
256
  symmetricKeySize?: number;
261
257
  type: KeyObjectType;
262
258
  }
@@ -380,15 +376,8 @@ declare module 'crypto' {
380
376
  type?: 'pkcs1' | 'spki';
381
377
  }
382
378
 
383
- function generateKey(type: 'hmac' | 'aes', options: {length: number}, callback: (err: Error | null, key: KeyObject) => void): void;
384
-
385
- interface JsonWebKeyInput {
386
- key: JsonWebKey;
387
- format: 'jwk';
388
- }
389
-
390
- function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
391
- function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject;
379
+ function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
380
+ function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
392
381
  function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
393
382
 
394
383
  function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -332,6 +332,11 @@ interface AbortSignal {
332
332
  * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
333
333
  */
334
334
  readonly aborted: boolean;
335
+
336
+ /**
337
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
338
+ */
339
+ abort(): void;
335
340
  }
336
341
 
337
342
  declare var AbortController: {
@@ -342,7 +347,6 @@ declare var AbortController: {
342
347
  declare var AbortSignal: {
343
348
  prototype: AbortSignal;
344
349
  new(): AbortSignal;
345
- // TODO: Add abort() static
346
350
  };
347
351
  //#endregion borrowed
348
352
 
File without changes
@@ -198,7 +198,7 @@ declare module 'http' {
198
198
  // https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53
199
199
  // no args in writeContinue callback
200
200
  writeContinue(callback?: () => void): void;
201
- writeHead(statusCode: number, reasonPhrase?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
201
+ writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
202
202
  writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
203
203
  writeProcessing(): void;
204
204
  }
@@ -666,6 +666,7 @@ declare module 'http2' {
666
666
  readonly connection: net.Socket | tls.TLSSocket;
667
667
  readonly finished: boolean;
668
668
  readonly headersSent: boolean;
669
+ readonly req: Http2ServerRequest;
669
670
  readonly socket: net.Socket | tls.TLSSocket;
670
671
  readonly stream: ServerHttp2Stream;
671
672
  sendDate: boolean;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "15.14.0",
3
+ "version": "15.14.4",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "61808f4174f8094e6d1396d1a7038b6ff05a773d74844d41d45e476e5b30f0eb",
230
+ "typesPublisherContentHash": "6c3c89758bc09a28cf79b0c595bc0f0e0d39357de2fc83031d5cc743fc3afa6a",
231
231
  "typeScriptVersion": "3.6"
232
232
  }
File without changes
File without changes
@@ -59,7 +59,6 @@ declare module 'process' {
59
59
  | 'android'
60
60
  | 'darwin'
61
61
  | 'freebsd'
62
- | 'haiku'
63
62
  | 'linux'
64
63
  | 'openbsd'
65
64
  | 'sunos'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes