@types/node 12.20.7 → 12.20.11

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 v12.20/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 27 Mar 2021 00:01:20 GMT
11
+ * Last updated: Tue, 27 Apr 2021 14:31:30 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
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), [Bruno Scheufler](https://github.com/brunoscheufler), [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), [Hoàng Văn Khải](https://github.com/KSXGitHub), [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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [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), and [Jason Kwok](https://github.com/JasonHK).
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), [Hoàng Văn Khải](https://github.com/KSXGitHub), [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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [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), and [Jason Kwok](https://github.com/JasonHK).
@@ -850,6 +850,32 @@ declare namespace NodeJS {
850
850
  voluntaryContextSwitches: number;
851
851
  }
852
852
 
853
+ interface EmitWarningOptions {
854
+ /**
855
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
856
+ *
857
+ * @default 'Warning'
858
+ */
859
+ type?: string;
860
+
861
+ /**
862
+ * A unique identifier for the warning instance being emitted.
863
+ */
864
+ code?: string;
865
+
866
+ /**
867
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
868
+ *
869
+ * @default process.emitWarning
870
+ */
871
+ ctor?: Function;
872
+
873
+ /**
874
+ * Additional text to include with the error.
875
+ */
876
+ detail?: string;
877
+ }
878
+
853
879
  interface Process extends EventEmitter {
854
880
  /**
855
881
  * Can also be a tty.WriteStream, not typed due to limitation.s
@@ -869,7 +895,22 @@ declare namespace NodeJS {
869
895
  chdir(directory: string): void;
870
896
  cwd(): string;
871
897
  debugPort: number;
872
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
898
+
899
+ /**
900
+ * The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
901
+ *
902
+ * These can be listened for by adding a handler to the `'warning'` event.
903
+ *
904
+ * @param warning The warning to emit.
905
+ * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
906
+ * @param code A unique identifier for the warning instance being emitted.
907
+ * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
908
+ */
909
+ emitWarning(warning: string | Error, ctor?: Function): void;
910
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
911
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
912
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
913
+
873
914
  env: ProcessEnv;
874
915
  exit(code?: number): never;
875
916
  exitCode?: number;
node v12.20/http.d.ts CHANGED
@@ -36,6 +36,7 @@ declare module 'http' {
36
36
  'content-type'?: string;
37
37
  'cookie'?: string;
38
38
  'date'?: string;
39
+ 'etag'?: string;
39
40
  'expect'?: string;
40
41
  'expires'?: string;
41
42
  'forwarded'?: string;
@@ -335,6 +336,10 @@ declare module 'http' {
335
336
  * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
336
337
  */
337
338
  timeout?: number;
339
+ /**
340
+ * Scheduling strategy to apply when picking the next free socket to use. Default: 'fifo'.
341
+ */
342
+ scheduling?: 'fifo' | 'lifo';
338
343
  }
339
344
 
340
345
  class Agent {
node v12.20/index.d.ts CHANGED
@@ -6,7 +6,6 @@
6
6
  // Alvis HT Tang <https://github.com/alvis>
7
7
  // Andrew Makarov <https://github.com/r3nya>
8
8
  // Benjamin Toueg <https://github.com/btoueg>
9
- // Bruno Scheufler <https://github.com/brunoscheufler>
10
9
  // Chigozirim C. <https://github.com/smac89>
11
10
  // David Junger <https://github.com/touffy>
12
11
  // Deividas Bakanas <https://github.com/DeividasBakanas>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.7",
3
+ "version": "12.20.11",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -34,11 +34,6 @@
34
34
  "url": "https://github.com/btoueg",
35
35
  "githubUsername": "btoueg"
36
36
  },
37
- {
38
- "name": "Bruno Scheufler",
39
- "url": "https://github.com/brunoscheufler",
40
- "githubUsername": "brunoscheufler"
41
- },
42
37
  {
43
38
  "name": "Chigozirim C.",
44
39
  "url": "https://github.com/smac89",
@@ -211,6 +206,6 @@
211
206
  },
212
207
  "scripts": {},
213
208
  "dependencies": {},
214
- "typesPublisherContentHash": "d7b366a0329769c6162b404f22e2e3161b4f1c9e281813b8e3544f0e5fec26e7",
209
+ "typesPublisherContentHash": "f29ecd872d62b133f2d9933c976cac172745906e645cc6dfb516778dd156511e",
215
210
  "typeScriptVersion": "3.5"
216
211
  }