@types/node 10.17.50 → 10.17.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 v10.17/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/v10.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 23 Dec 2020 20:23:34 GMT
11
+ * Last updated: Fri, 19 Feb 2021 17:58:57 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `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), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [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), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [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), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [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), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
node v10.17/domain.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- declare module "domain" {
2
- import * as events from "events";
1
+ declare module 'domain' {
2
+ import EventEmitter = require('events');
3
3
 
4
- class Domain extends events.EventEmitter implements NodeJS.Domain {
4
+ class Domain extends EventEmitter implements NodeJS.Domain {
5
5
  run(fn: Function): void;
6
- add(emitter: events.EventEmitter): void;
7
- remove(emitter: events.EventEmitter): void;
6
+ add(emitter: EventEmitter): void;
7
+ remove(emitter: EventEmitter): void;
8
8
  bind(cb: (err: Error, data: any) => any): any;
9
9
  intercept(cb: (data: any) => any): any;
10
10
  members: any[];
node v10.17/events.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- declare module "events" {
2
- class internal extends NodeJS.EventEmitter { }
3
-
1
+ declare module 'events' {
4
2
  interface NodeEventTarget {
5
3
  once(event: string | symbol, listener: (...args: any[]) => void): this;
6
4
  }
@@ -9,31 +7,24 @@ declare module "events" {
9
7
  addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
10
8
  }
11
9
 
12
- namespace internal {
13
- function once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
14
- function once(emitter: DOMEventTarget, event: string): Promise<any[]>;
15
- class EventEmitter extends internal {
16
- /** @deprecated since v4.0.0 */
17
- static listenerCount(emitter: EventEmitter, event: string | symbol): number;
18
- static defaultMaxListeners: number;
10
+ class EventEmitter extends NodeJS.EventEmitter {
11
+ constructor();
12
+
13
+ static once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
14
+ static once(emitter: DOMEventTarget, event: string): Promise<any[]>;
15
+
16
+ /** @deprecated since v4.0.0 */
17
+ static listenerCount(emitter: NodeJS.EventEmitter, event: string | symbol): number;
18
+
19
+ // TODO: This should be described using a static getter/setter pair:
20
+ static defaultMaxListeners: number;
21
+ }
19
22
 
20
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
21
- on(event: string | symbol, listener: (...args: any[]) => void): this;
22
- once(event: string | symbol, listener: (...args: any[]) => void): this;
23
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
24
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
25
- removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
26
- off(event: string | symbol, listener: (...args: any[]) => void): this;
27
- removeAllListeners(event?: string | symbol): this;
28
- setMaxListeners(n: number): this;
29
- getMaxListeners(): number;
30
- listeners(event: string | symbol): Function[];
31
- rawListeners(event: string | symbol): Function[];
32
- emit(event: string | symbol, ...args: any[]): boolean;
33
- eventNames(): Array<string | symbol>;
34
- listenerCount(type: string | symbol): number;
35
- }
23
+ import internal = require('events');
24
+ namespace EventEmitter {
25
+ // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
26
+ export { internal as EventEmitter };
36
27
  }
37
28
 
38
- export = internal;
29
+ export = EventEmitter;
39
30
  }
node v10.17/index.d.ts CHANGED
@@ -3,14 +3,12 @@
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
5
5
  // Alberto Schiabel <https://github.com/jkomyno>
6
- // Alexander T. <https://github.com/a-tarasyuk>
7
6
  // Alvis HT Tang <https://github.com/alvis>
8
7
  // Andrew Makarov <https://github.com/r3nya>
9
8
  // Bruno Scheufler <https://github.com/brunoscheufler>
10
9
  // Chigozirim C. <https://github.com/smac89>
11
10
  // Deividas Bakanas <https://github.com/DeividasBakanas>
12
11
  // Eugene Y. Q. Shen <https://github.com/eyqs>
13
- // Flarna <https://github.com/Flarna>
14
12
  // Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
15
13
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
16
14
  // Huw <https://github.com/hoo29>
@@ -31,7 +29,6 @@
31
29
  // Jeremie Rodriguez <https://github.com/jeremiergz>
32
30
  // Samuel Ainsworth <https://github.com/samuela>
33
31
  // Kyle Uehlein <https://github.com/kuehlein>
34
- // Jordi Oliveras Rovira <https://github.com/j-oliveras>
35
32
  // Thanik Bhongbhibhat <https://github.com/bhongy>
36
33
  // Minh Son Nguyen <https://github.com/nguymin4>
37
34
  // ExE Boss <https://github.com/ExE-Boss>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.50",
3
+ "version": "10.17.54",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -19,11 +19,6 @@
19
19
  "url": "https://github.com/jkomyno",
20
20
  "githubUsername": "jkomyno"
21
21
  },
22
- {
23
- "name": "Alexander T.",
24
- "url": "https://github.com/a-tarasyuk",
25
- "githubUsername": "a-tarasyuk"
26
- },
27
22
  {
28
23
  "name": "Alvis HT Tang",
29
24
  "url": "https://github.com/alvis",
@@ -54,11 +49,6 @@
54
49
  "url": "https://github.com/eyqs",
55
50
  "githubUsername": "eyqs"
56
51
  },
57
- {
58
- "name": "Flarna",
59
- "url": "https://github.com/Flarna",
60
- "githubUsername": "Flarna"
61
- },
62
52
  {
63
53
  "name": "Hannes Magnusson",
64
54
  "url": "https://github.com/Hannes-Magnusson-CK",
@@ -159,11 +149,6 @@
159
149
  "url": "https://github.com/kuehlein",
160
150
  "githubUsername": "kuehlein"
161
151
  },
162
- {
163
- "name": "Jordi Oliveras Rovira",
164
- "url": "https://github.com/j-oliveras",
165
- "githubUsername": "j-oliveras"
166
- },
167
152
  {
168
153
  "name": "Thanik Bhongbhibhat",
169
154
  "url": "https://github.com/bhongy",
@@ -196,6 +181,6 @@
196
181
  },
197
182
  "scripts": {},
198
183
  "dependencies": {},
199
- "typesPublisherContentHash": "622e351f53a6586632c27cc24d205ec00ab4b0f7dc469f14ef492b96cfe3b4a1",
200
- "typeScriptVersion": "3.3"
184
+ "typesPublisherContentHash": "df046bd192b2e6f64321516ffd3e9711815abd43c4da5f5c5ecc07a8a25656f3",
185
+ "typeScriptVersion": "3.4"
201
186
  }
node v10.17/stream.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- declare module "stream" {
2
- import * as events from "events";
1
+ declare module 'stream' {
2
+ import EventEmitter = require('events');
3
3
 
4
- class internal extends events.EventEmitter {
4
+ class internal extends EventEmitter {
5
5
  pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
6
6
  }
7
7
 
node v10.17/vm.d.ts CHANGED
@@ -23,6 +23,7 @@ declare module "vm" {
23
23
  displayErrors?: boolean;
24
24
  timeout?: number;
25
25
  cachedData?: Buffer;
26
+ /** @deprecated in favor of `script.createCachedData()` */
26
27
  produceCachedData?: boolean;
27
28
  }
28
29
  interface RunningScriptOptions extends BaseOptions {
@@ -69,6 +70,7 @@ declare module "vm" {
69
70
  runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any;
70
71
  runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any;
71
72
  runInThisContext(options?: RunningScriptOptions): any;
73
+ cachedDataRejected?: boolean;
72
74
  }
73
75
  function createContext(sandbox?: Context): Context;
74
76
  function isContext(sandbox: Context): boolean;