@types/node 17.0.11 → 17.0.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/README.md CHANGED
@@ -8,9 +8,9 @@ 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 25 Jan 2022 00:31:34 GMT
11
+ * Last updated: Fri, 04 Feb 2022 23:01:26 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), [Seth Westphal](https://github.com/westy92), [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), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [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).
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), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [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
@@ -250,7 +250,7 @@ declare module 'crypto' {
250
250
  */
251
251
  function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
252
252
  // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
253
- type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
253
+ type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary';
254
254
  type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
255
255
  type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
256
256
  type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
node/index.d.ts CHANGED
@@ -21,7 +21,6 @@
21
21
  // Nikita Galkin <https://github.com/galkin>
22
22
  // Parambir Singh <https://github.com/parambirs>
23
23
  // Sebastian Silbermann <https://github.com/eps1lon>
24
- // Seth Westphal <https://github.com/westy92>
25
24
  // Simon Schick <https://github.com/SimonSchick>
26
25
  // Thomas den Hollander <https://github.com/ThomasdenH>
27
26
  // Wilco Bakker <https://github.com/WilcoBakker>
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.11",
3
+ "version": "17.0.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",
@@ -110,11 +110,6 @@
110
110
  "url": "https://github.com/eps1lon",
111
111
  "githubUsername": "eps1lon"
112
112
  },
113
- {
114
- "name": "Seth Westphal",
115
- "url": "https://github.com/westy92",
116
- "githubUsername": "westy92"
117
- },
118
113
  {
119
114
  "name": "Simon Schick",
120
115
  "url": "https://github.com/SimonSchick",
@@ -220,6 +215,6 @@
220
215
  },
221
216
  "scripts": {},
222
217
  "dependencies": {},
223
- "typesPublisherContentHash": "8580d62fb3d2cb40ddc4d673d1b7468a080dd6c8a7c04a6fef13bcfffc3505c0",
218
+ "typesPublisherContentHash": "a329ddcd97ab6a1c8b625aef355a454352556c1cebd7fca4e3eda4f0cc1eb54e",
224
219
  "typeScriptVersion": "3.8"
225
220
  }
node/url.d.ts CHANGED
@@ -778,7 +778,7 @@ declare module 'url' {
778
778
  * @param fn Invoked for each name-value pair in the query
779
779
  * @param thisArg To be used as `this` value for when `fn` is called
780
780
  */
781
- forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: this) => void, thisArg?: TThis): void;
781
+ forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis): void;
782
782
  /**
783
783
  * Returns the value of the first name-value pair whose name is `name`. If there
784
784
  * are no such pairs, `null` is returned.
@@ -855,6 +855,32 @@ declare module 'url' {
855
855
  values(): IterableIterator<string>;
856
856
  [Symbol.iterator](): IterableIterator<[string, string]>;
857
857
  }
858
+
859
+ import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
860
+ global {
861
+ interface URLSearchParams extends _URLSearchParams {}
862
+ interface URL extends _URL {}
863
+ interface Global {
864
+ URL: typeof _URL;
865
+ URLSearchParams: typeof _URLSearchParams;
866
+ }
867
+ /**
868
+ * `URL` class is a global reference for `require('url').URL`
869
+ * https://nodejs.org/api/url.html#the-whatwg-url-api
870
+ * @since v10.0.0
871
+ */
872
+ var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
873
+ /**
874
+ * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
875
+ * https://nodejs.org/api/url.html#class-urlsearchparams
876
+ * @since v10.0.0
877
+ */
878
+ var URLSearchParams: {
879
+ prototype: URLSearchParams;
880
+ new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
881
+ toString(): string;
882
+ };
883
+ }
858
884
  }
859
885
  declare module 'node:url' {
860
886
  export * from 'url';
node/util.d.ts CHANGED
@@ -317,7 +317,7 @@ declare module 'util' {
317
317
  * @return The representation of `object`.
318
318
  */
319
319
  export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
320
- export function inspect(object: any, options: InspectOptions): string;
320
+ export function inspect(object: any, options?: InspectOptions): string;
321
321
  export namespace inspect {
322
322
  let colors: NodeJS.Dict<[number, number]>;
323
323
  let styles: {