@types/node 12.12.53 → 12.12.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 v12.12/README.md CHANGED
@@ -8,7 +8,7 @@ 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: Fri, 24 Jul 2020 21:38:17 GMT
11
+ * Last updated: Thu, 06 Aug 2020 00:38:41 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v12.12/events.d.ts CHANGED
@@ -12,7 +12,19 @@ declare module "events" {
12
12
  namespace internal {
13
13
  function once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
14
14
  function once(emitter: DOMEventTarget, event: string): Promise<any[]>;
15
- class EventEmitter extends internal {
15
+
16
+ /**
17
+ * This symbol shall be used to install a listener for only monitoring `'error'`
18
+ * events. Listeners installed using this symbol are called before the regular
19
+ * `'error'` listeners are called.
20
+ *
21
+ * Installing a listener using this symbol does not change the behavior once an
22
+ * `'error'` event is emitted, therefore the process will still crash if no
23
+ * regular `'error'` listener is installed.
24
+ */
25
+ const errorMonitor: unique symbol;
26
+
27
+ class EventEmitter extends internal {
16
28
  /** @deprecated since v4.0.0 */
17
29
  static listenerCount(emitter: EventEmitter, event: string | symbol): number;
18
30
  static defaultMaxListeners: number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.53",
3
+ "version": "12.12.54",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -236,6 +236,6 @@
236
236
  },
237
237
  "scripts": {},
238
238
  "dependencies": {},
239
- "typesPublisherContentHash": "b9815ea292276c26868629d2ee4eb5d96e995eec5470aee461285872e4f5a819",
239
+ "typesPublisherContentHash": "44371bce86b89f0d4c708801a9c233a4beb99f88402e710b536c15a10814ab81",
240
240
  "typeScriptVersion": "3.0"
241
241
  }