@types/node 16.11.18 → 16.11.22

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 v16.11/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 03 Jan 2022 07:31:26 GMT
11
+ * Last updated: Tue, 01 Feb 2022 08:31:30 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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [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), [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).
node v16.11/http.d.ts CHANGED
@@ -620,6 +620,16 @@ declare module 'http' {
620
620
  * @since v14.5.0, v12.19.0
621
621
  */
622
622
  protocol: string;
623
+ /**
624
+ * Whether the request is send through a reused socket.
625
+ * @since v13.0.0, v12.16.0
626
+ */
627
+ reusedSocket: boolean;
628
+ /**
629
+ * Limits maximum response headers count. If set to 0, no limit will be applied.
630
+ * @default 2000
631
+ */
632
+ maxHeadersCount: number;
623
633
  constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
624
634
  /**
625
635
  * The request method.
node v16.11/index.d.ts CHANGED
@@ -34,7 +34,6 @@
34
34
  // Junxiao Shi <https://github.com/yoursunny>
35
35
  // Ilia Baryshnikov <https://github.com/qwelias>
36
36
  // ExE Boss <https://github.com/ExE-Boss>
37
- // Surasak Chaisurin <https://github.com/Ryan-Willpower>
38
37
  // Piotr Błażejewicz <https://github.com/peterblazejewicz>
39
38
  // Anna Henningsen <https://github.com/addaleax>
40
39
  // Victor Perin <https://github.com/victorperin>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.18",
3
+ "version": "16.11.22",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -175,11 +175,6 @@
175
175
  "url": "https://github.com/ExE-Boss",
176
176
  "githubUsername": "ExE-Boss"
177
177
  },
178
- {
179
- "name": "Surasak Chaisurin",
180
- "url": "https://github.com/Ryan-Willpower",
181
- "githubUsername": "Ryan-Willpower"
182
- },
183
178
  {
184
179
  "name": "Piotr Błażejewicz",
185
180
  "url": "https://github.com/peterblazejewicz",
@@ -225,6 +220,6 @@
225
220
  },
226
221
  "scripts": {},
227
222
  "dependencies": {},
228
- "typesPublisherContentHash": "51559f71e97a2b39dd6abe801e09344b00c0911dd9b33164dc32b0c014372954",
223
+ "typesPublisherContentHash": "57a94e60cf640ea4d81b4fa914f3fb5929a63ae0b4d5141d7daf250c569e7d10",
229
224
  "typeScriptVersion": "3.8"
230
225
  }
@@ -146,7 +146,7 @@ declare module 'process' {
146
146
  /**
147
147
  * If true, a diagnostic report is generated when the process
148
148
  * receives the signal specified by process.report.signal.
149
- * @defaul false
149
+ * @default false
150
150
  */
151
151
  reportOnSignal: boolean;
152
152
  /**
node v16.11/url.d.ts CHANGED
@@ -738,7 +738,7 @@ declare module 'url' {
738
738
  * @param fn Invoked for each name-value pair in the query
739
739
  * @param thisArg To be used as `this` value for when `fn` is called
740
740
  */
741
- forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: this) => void, thisArg?: TThis): void;
741
+ forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis): void;
742
742
  /**
743
743
  * Returns the value of the first name-value pair whose name is `name`. If there
744
744
  * are no such pairs, `null` is returned.
@@ -815,6 +815,32 @@ declare module 'url' {
815
815
  values(): IterableIterator<string>;
816
816
  [Symbol.iterator](): IterableIterator<[string, string]>;
817
817
  }
818
+
819
+ import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
820
+ global {
821
+ interface URLSearchParams extends _URLSearchParams {}
822
+ interface URL extends _URL {}
823
+ interface Global {
824
+ URL: typeof _URL;
825
+ URLSearchParams: typeof _URLSearchParams;
826
+ }
827
+ /**
828
+ * `URL` class is a global reference for `require('url').URL`
829
+ * https://nodejs.org/api/url.html#the-whatwg-url-api
830
+ * @since v10.0.0
831
+ */
832
+ var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
833
+ /**
834
+ * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
835
+ * https://nodejs.org/api/url.html#class-urlsearchparams
836
+ * @since v10.0.0
837
+ */
838
+ var URLSearchParams: {
839
+ prototype: URLSearchParams;
840
+ new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
841
+ toString(): string;
842
+ };
843
+ }
818
844
  }
819
845
  declare module 'node:url' {
820
846
  export * from 'url';