@types/node 13.13.48 → 13.13.52

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 v13.13/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/v13.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 27 Mar 2021 00:01:18 GMT
11
+ * Last updated: Wed, 12 May 2021 19:31:29 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `__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), [Christian Vaagland Tellnes](https://github.com/tellnes), [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), [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), 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), [Christian Vaagland Tellnes](https://github.com/tellnes), [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), [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), and [Jason Kwok](https://github.com/JasonHK).
@@ -85,7 +85,7 @@ declare module "async_hooks" {
85
85
  interface AsyncResourceOptions {
86
86
  /**
87
87
  * The ID of the execution context that created this async event.
88
- * Default: `executionAsyncId()`
88
+ * @default executionAsyncId()
89
89
  */
90
90
  triggerAsyncId?: number;
91
91
 
@@ -94,7 +94,7 @@ declare module "async_hooks" {
94
94
  * This usually does not need to be set (even if `emitDestroy` is called
95
95
  * manually), unless the resource's `asyncId` is retrieved and the
96
96
  * sensitive API's `emitDestroy` is called with it.
97
- * Default: `false`
97
+ * @default false
98
98
  */
99
99
  requireManualDestroy?: boolean;
100
100
  }
@@ -783,6 +783,32 @@ declare namespace NodeJS {
783
783
  voluntaryContextSwitches: number;
784
784
  }
785
785
 
786
+ interface EmitWarningOptions {
787
+ /**
788
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
789
+ *
790
+ * @default 'Warning'
791
+ */
792
+ type?: string;
793
+
794
+ /**
795
+ * A unique identifier for the warning instance being emitted.
796
+ */
797
+ code?: string;
798
+
799
+ /**
800
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
801
+ *
802
+ * @default process.emitWarning
803
+ */
804
+ ctor?: Function;
805
+
806
+ /**
807
+ * Additional text to include with the error.
808
+ */
809
+ detail?: string;
810
+ }
811
+
786
812
  interface Process extends EventEmitter {
787
813
  /**
788
814
  * Can also be a tty.WriteStream, not typed due to limitation.s
@@ -802,7 +828,22 @@ declare namespace NodeJS {
802
828
  chdir(directory: string): void;
803
829
  cwd(): string;
804
830
  debugPort: number;
805
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
831
+
832
+ /**
833
+ * The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
834
+ *
835
+ * These can be listened for by adding a handler to the `'warning'` event.
836
+ *
837
+ * @param warning The warning to emit.
838
+ * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
839
+ * @param code A unique identifier for the warning instance being emitted.
840
+ * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
841
+ */
842
+ emitWarning(warning: string | Error, ctor?: Function): void;
843
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
844
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
845
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
846
+
806
847
  env: ProcessEnv;
807
848
  exit(code?: number): never;
808
849
  exitCode?: number;
node v13.13/http.d.ts CHANGED
@@ -33,6 +33,7 @@ declare module "http" {
33
33
  'content-type'?: string;
34
34
  'cookie'?: string;
35
35
  'date'?: string;
36
+ 'etag'?: string;
36
37
  'expect'?: string;
37
38
  'expires'?: string;
38
39
  'forwarded'?: string;
node v13.13/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
  // Christian Vaagland Tellnes <https://github.com/tellnes>
12
11
  // David Junger <https://github.com/touffy>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.13.48",
3
+ "version": "13.13.52",
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",
@@ -221,6 +216,6 @@
221
216
  },
222
217
  "scripts": {},
223
218
  "dependencies": {},
224
- "typesPublisherContentHash": "7137191a8571b97d3d9ced96fdf201adb2a0361904ff74887497129c2b79b359",
219
+ "typesPublisherContentHash": "fc443441fc1011a9c40501d6229a600447809ab63533420929119694647fada1",
225
220
  "typeScriptVersion": "3.5"
226
221
  }
node v13.13/repl.d.ts CHANGED
@@ -6,17 +6,17 @@ declare module "repl" {
6
6
  interface ReplOptions {
7
7
  /**
8
8
  * The input prompt to display.
9
- * Default: `"> "`
9
+ * @default "> "
10
10
  */
11
11
  prompt?: string;
12
12
  /**
13
13
  * The `Readable` stream from which REPL input will be read.
14
- * Default: `process.stdin`
14
+ * @default process.stdin
15
15
  */
16
16
  input?: NodeJS.ReadableStream;
17
17
  /**
18
18
  * The `Writable` stream to which REPL output will be written.
19
- * Default: `process.stdout`
19
+ * @default process.stdout
20
20
  */
21
21
  output?: NodeJS.WritableStream;
22
22
  /**
node v13.13/vm.d.ts CHANGED
@@ -13,7 +13,7 @@ declare module "vm" {
13
13
  lineOffset?: number;
14
14
  /**
15
15
  * Specifies the column number offset that is displayed in stack traces produced by this script.
16
- * Default: `0`
16
+ * @default 0
17
17
  */
18
18
  columnOffset?: number;
19
19
  }