@types/node 16.7.11 → 16.9.1

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/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
  > `npm install --save @types/node`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
5
+ This package contains type definitions for Node.js (https://nodejs.org/).
6
6
 
7
7
  # Details
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 06 Sep 2021 22:01:20 GMT
11
+ * Last updated: Thu, 09 Sep 2021 20:01:20 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
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), [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), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), and [Linus Unnebäck](https://github.com/LinusU).
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), [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), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
node/crypto.d.ts CHANGED
@@ -508,6 +508,18 @@ declare module 'crypto' {
508
508
  * Public exponent (RSA).
509
509
  */
510
510
  publicExponent?: bigint | undefined;
511
+ /**
512
+ * Name of the message digest (RSA-PSS).
513
+ */
514
+ hashAlgorithm?: string | undefined;
515
+ /**
516
+ * Name of the message digest used by MGF1 (RSA-PSS).
517
+ */
518
+ mgf1HashAlgorithm?: string | undefined;
519
+ /**
520
+ * Minimal salt length in bytes (RSA-PSS).
521
+ */
522
+ saltLength?: number | undefined;
511
523
  /**
512
524
  * Size of q in bits (DSA).
513
525
  */
@@ -535,6 +547,10 @@ declare module 'crypto' {
535
547
  */
536
548
  class KeyObject {
537
549
  private constructor();
550
+ /**
551
+ * @since v15.0.0
552
+ */
553
+ static from(key: webcrypto.CryptoKey): KeyObject;
538
554
  /**
539
555
  * For asymmetric keys, this property represents the type of the key. Supported key
540
556
  * types are:
@@ -565,8 +581,11 @@ declare module 'crypto' {
565
581
  * through this property can be used to uniquely identify a key or to compromise
566
582
  * the security of the key.
567
583
  *
568
- * RSA-PSS parameters, DH, or any future key type details might be exposed via this
569
- * API using additional attributes.
584
+ * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
585
+ * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
586
+ * set.
587
+ *
588
+ * Other key details might be exposed via this API using additional attributes.
570
589
  * @since v15.7.0
571
590
  */
572
591
  asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
node/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- // Type definitions for non-npm package Node.js 16.7
2
- // Project: http://nodejs.org/
1
+ // Type definitions for non-npm package Node.js 16.9
2
+ // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
5
5
  // Alberto Schiabel <https://github.com/jkomyno>
@@ -42,6 +42,7 @@
42
42
  // Yongsheng Zhang <https://github.com/ZYSzys>
43
43
  // NodeJS Contributors <https://github.com/NodeJS>
44
44
  // Linus Unnebäck <https://github.com/LinusU>
45
+ // wafuwafu13 <https://github.com/wafuwafu13>
45
46
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
46
47
 
47
48
  /**
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.7.11",
3
+ "version": "16.9.1",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -214,6 +214,11 @@
214
214
  "name": "Linus Unnebäck",
215
215
  "url": "https://github.com/LinusU",
216
216
  "githubUsername": "LinusU"
217
+ },
218
+ {
219
+ "name": "wafuwafu13",
220
+ "url": "https://github.com/wafuwafu13",
221
+ "githubUsername": "wafuwafu13"
217
222
  }
218
223
  ],
219
224
  "main": "",
@@ -225,6 +230,6 @@
225
230
  },
226
231
  "scripts": {},
227
232
  "dependencies": {},
228
- "typesPublisherContentHash": "f185bf25fe51fbc365324efc258555fb42c9744aab414077408e6948418e661f",
233
+ "typesPublisherContentHash": "2d4a0159d689896e5538afa996ef597df6922b3b716729c273148522b74b9f6c",
229
234
  "typeScriptVersion": "3.7"
230
235
  }
node/stream.d.ts CHANGED
@@ -52,12 +52,27 @@ declare module 'stream' {
52
52
  * A utility method for creating Readable Streams out of iterators.
53
53
  */
54
54
  static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
55
+ /**
56
+ * Returns whether the stream has been read from or cancelled.
57
+ * @since v16.8.0
58
+ */
59
+ static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean;
60
+ /**
61
+ * Returns whether the stream was destroyed or errored before emitting `'end'`.
62
+ * @since v16.8.0
63
+ */
64
+ readonly readableAborted: boolean;
55
65
  /**
56
66
  * Is `true` if it is safe to call `readable.read()`, which means
57
67
  * the stream has not been destroyed or emitted `'error'` or `'end'`.
58
68
  * @since v11.4.0
59
69
  */
60
70
  readable: boolean;
71
+ /**
72
+ * Returns whether `'data'` has been emitted.
73
+ * @since v16.7.0
74
+ */
75
+ readonly readableDidRead: boolean;
61
76
  /**
62
77
  * Getter for the property `encoding` of a given `Readable` stream. The `encoding`property can be set using the `readable.setEncoding()` method.
63
78
  * @since v12.7.0
@@ -792,6 +807,28 @@ declare module 'stream' {
792
807
  readonly writableCorked: number;
793
808
  allowHalfOpen: boolean;
794
809
  constructor(opts?: DuplexOptions);
810
+ /**
811
+ * A utility method for creating duplex streams.
812
+ *
813
+ * - `Stream` converts writable stream into writable `Duplex` and readable stream
814
+ * to `Duplex`.
815
+ * - `Blob` converts into readable `Duplex`.
816
+ * - `string` converts into readable `Duplex`.
817
+ * - `ArrayBuffer` converts into readable `Duplex`.
818
+ * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`.
819
+ * - `AsyncGeneratorFunction` converts into a readable/writable transform
820
+ * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield
821
+ * `null`.
822
+ * - `AsyncFunction` converts into a writable `Duplex`. Must return
823
+ * either `null` or `undefined`
824
+ * - `Object ({ writable, readable })` converts `readable` and
825
+ * `writable` into `Stream` and then combines them into `Duplex` where the
826
+ * `Duplex` will write to the `writable` and read from the `readable`.
827
+ * - `Promise` converts into readable `Duplex`. Value `null` is ignored.
828
+ *
829
+ * @since v16.8.0
830
+ */
831
+ static from(src: Stream | Blob | ArrayBuffer | string | Iterable<any> | AsyncIterable<any> | AsyncGeneratorFunction | Promise<any> | Object): Duplex;
795
832
  _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
796
833
  _writev?(
797
834
  chunks: Array<{
node/util.d.ts CHANGED
@@ -141,6 +141,14 @@ declare module 'util' {
141
141
  * @deprecated Since v6.0.0 - Use a third party module instead.
142
142
  */
143
143
  export function log(string: string): void;
144
+ /**
145
+ * Returns the `string` after replacing any surrogate code points
146
+ * (or equivalently, any unpaired surrogate code units) with the
147
+ * Unicode "replacement character" U+FFFD.
148
+ *
149
+ * @since v16.8.0
150
+ */
151
+ export function toUSVString(string: string): string;
144
152
  /**
145
153
  * The `util.inspect()` method returns a string representation of `object` that is
146
154
  * intended for debugging. The output of `util.inspect` may change at any time
node/vm.d.ts CHANGED
@@ -267,7 +267,11 @@ declare module 'vm' {
267
267
  * @since v10.6.0
268
268
  */
269
269
  createCachedData(): Buffer;
270
+
271
+ /** @deprecated in favor of `script.createCachedData()` */
272
+ cachedDataProduced?: boolean | undefined;
270
273
  cachedDataRejected?: boolean | undefined;
274
+ cachedData?: Buffer | undefined;
271
275
  }
272
276
  /**
273
277
  * If given a `contextObject`, the `vm.createContext()` method will `prepare