@types/node 14.17.20 → 14.17.24

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 v14.17/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 29 Sep 2021 14:01:22 GMT
11
+ * Last updated: Wed, 13 Oct 2021 17:31:22 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
 
@@ -115,6 +115,11 @@ declare module 'console' {
115
115
  ignoreErrors?: boolean | undefined;
116
116
  colorMode?: boolean | 'auto' | undefined;
117
117
  inspectOptions?: InspectOptions | undefined;
118
+ /**
119
+ * Set group indentation
120
+ * @default 2
121
+ */
122
+ groupIndentation?: number | undefined;
118
123
  }
119
124
 
120
125
  interface ConsoleConstructor {
node v14.17/dgram.d.ts CHANGED
@@ -58,11 +58,11 @@ declare module 'dgram' {
58
58
  send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void;
59
59
  setBroadcast(flag: boolean): void;
60
60
  setMulticastInterface(multicastInterface: string): void;
61
- setMulticastLoopback(flag: boolean): void;
61
+ setMulticastLoopback(flag: boolean): boolean;
62
62
  setMulticastTTL(ttl: number): void;
63
63
  setRecvBufferSize(size: number): void;
64
64
  setSendBufferSize(size: number): void;
65
- setTTL(ttl: number): void;
65
+ setTTL(ttl: number): number;
66
66
  unref(): this;
67
67
  /**
68
68
  * Tells the kernel to join a source-specific multicast channel at the given
@@ -1910,11 +1910,17 @@ declare module 'inspector' {
1910
1910
 
1911
1911
  /**
1912
1912
  * Connects a session to the inspector back-end.
1913
- * An exception will be thrown if there is already a connected session established either
1914
- * through the API or by a front-end connected to the Inspector WebSocket port.
1915
1913
  */
1916
1914
  connect(): void;
1917
1915
 
1916
+ /**
1917
+ * Connects a session to the main thread inspector back-end.
1918
+ * An exception will be thrown if this API was not called on a Worker
1919
+ * thread.
1920
+ * @since 12.11.0
1921
+ */
1922
+ connectToMainThread(): void;
1923
+
1918
1924
  /**
1919
1925
  * Immediately close the session. All pending message callbacks will be called with an error.
1920
1926
  * session.connect() will need to be called to be able to send messages again.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.17.20",
3
+ "version": "14.17.24",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "4a6ba8516ea62f5b4e074e70cdd1e0a6cb015a225b2ea8f3eea9232fc7a3ec7a",
223
+ "typesPublisherContentHash": "47bcbed63d97606c26ac430985d0ab44c309115f0a97c533590837b79291f534",
224
224
  "typeScriptVersion": "3.7"
225
225
  }