@types/node 11.15.50 → 11.15.54

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 v11.15/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/v11.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 27 Mar 2021 00:01:22 GMT
11
+ * Last updated: Wed, 12 May 2021 19:31:32 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), [Jeremie Rodriguez](https://github.com/jeremiergz), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Ivan Sieder](https://github.com/ivansieder), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
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), [Jeremie Rodriguez](https://github.com/jeremiergz), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Ivan Sieder](https://github.com/ivansieder), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
@@ -71,7 +71,7 @@ declare module "async_hooks" {
71
71
  interface AsyncResourceOptions {
72
72
  /**
73
73
  * The ID of the execution context that created this async event.
74
- * Default: `executionAsyncId()`
74
+ * @default executionAsyncId()
75
75
  */
76
76
  triggerAsyncId?: number;
77
77
 
@@ -80,7 +80,7 @@ declare module "async_hooks" {
80
80
  * This usually does not need to be set (even if `emitDestroy` is called
81
81
  * manually), unless the resource's `asyncId` is retrieved and the
82
82
  * sensitive API's `emitDestroy` is called with it.
83
- * Default: `false`
83
+ * @default false
84
84
  */
85
85
  requireManualDestroy?: boolean;
86
86
  }
@@ -816,6 +816,32 @@ declare namespace NodeJS {
816
816
  writeReport(fileName?: string, err?: Error): string;
817
817
  }
818
818
 
819
+ interface EmitWarningOptions {
820
+ /**
821
+ * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
822
+ *
823
+ * @default 'Warning'
824
+ */
825
+ type?: string;
826
+
827
+ /**
828
+ * A unique identifier for the warning instance being emitted.
829
+ */
830
+ code?: string;
831
+
832
+ /**
833
+ * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
834
+ *
835
+ * @default process.emitWarning
836
+ */
837
+ ctor?: Function;
838
+
839
+ /**
840
+ * Additional text to include with the error.
841
+ */
842
+ detail?: string;
843
+ }
844
+
819
845
  interface Process extends EventEmitter {
820
846
  /**
821
847
  * Can also be a tty.WriteStream, not typed due to limitation.s
@@ -835,7 +861,22 @@ declare namespace NodeJS {
835
861
  chdir(directory: string): void;
836
862
  cwd(): string;
837
863
  debugPort: number;
838
- emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
864
+
865
+ /**
866
+ * The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
867
+ *
868
+ * These can be listened for by adding a handler to the `'warning'` event.
869
+ *
870
+ * @param warning The warning to emit.
871
+ * @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
872
+ * @param code A unique identifier for the warning instance being emitted.
873
+ * @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
874
+ */
875
+ emitWarning(warning: string | Error, ctor?: Function): void;
876
+ emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
877
+ emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
878
+ emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
879
+
839
880
  env: ProcessEnv;
840
881
  exit(code?: number): never;
841
882
  exitCode?: number;
node v11.15/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 v11.15/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": "11.15.50",
3
+ "version": "11.15.54",
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",
@@ -196,6 +191,6 @@
196
191
  },
197
192
  "scripts": {},
198
193
  "dependencies": {},
199
- "typesPublisherContentHash": "99df00a7bf9dc3c6de688fca242a5efa511d948647a0f257640fb7c06768dd0f",
194
+ "typesPublisherContentHash": "277d2fc8966312ed17bba8ed454bb70b3e0355fe89105d75637d4430faf0c3f4",
200
195
  "typeScriptVersion": "3.5"
201
196
  }
node v11.15/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 v11.15/vm.d.ts CHANGED
@@ -15,7 +15,7 @@ declare module "vm" {
15
15
  lineOffset?: number;
16
16
  /**
17
17
  * Specifies the column number offset that is displayed in stack traces produced by this script.
18
- * Default: `0`
18
+ * @default 0
19
19
  */
20
20
  columnOffset?: number;
21
21
  }