@types/node 12.20.25 → 12.20.29

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.20/README.md CHANGED
@@ -8,9 +8,9 @@ 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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 14 Sep 2021 21:01:33 GMT
11
+ * Last updated: Tue, 12 Oct 2021 17:31:35 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), [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), [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), 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), [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), [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), and [ExE Boss](https://github.com/ExE-Boss).
@@ -445,12 +445,13 @@ declare module 'child_process' {
445
445
  error?: Error | undefined;
446
446
  }
447
447
  function spawnSync(command: string): SpawnSyncReturns<Buffer>;
448
- function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
449
- function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
450
- function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
451
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
452
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
453
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
448
+ function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
449
+ function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
450
+ function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
451
+ function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
452
+ function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
453
+ function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
454
+ function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
454
455
 
455
456
  interface ExecSyncOptions extends CommonOptions {
456
457
  input?: string | Uint8Array | undefined;
@@ -467,9 +468,9 @@ declare module 'child_process' {
467
468
  encoding: string; // specify `null`.
468
469
  }
469
470
  function execSync(command: string): Buffer;
470
- function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
471
- function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer;
472
- function execSync(command: string, options?: ExecSyncOptions): Buffer;
471
+ function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
472
+ function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
473
+ function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
473
474
 
474
475
  interface ExecFileSyncOptions extends CommonOptions {
475
476
  input?: string | NodeJS.ArrayBufferView | undefined;
@@ -486,10 +487,11 @@ declare module 'child_process' {
486
487
  encoding: string; // specify `null`.
487
488
  }
488
489
  function execFileSync(command: string): Buffer;
489
- function execFileSync(command: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
490
- function execFileSync(command: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
491
- function execFileSync(command: string, options?: ExecFileSyncOptions): Buffer;
492
- function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
493
- function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
494
- function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
490
+ function execFileSync(command: string, options: ExecFileSyncOptionsWithStringEncoding): string;
491
+ function execFileSync(command: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
492
+ function execFileSync(command: string, options?: ExecFileSyncOptions): string | Buffer;
493
+ function execFileSync(command: string, args: ReadonlyArray<string>): Buffer;
494
+ function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithStringEncoding): string;
495
+ function execFileSync(command: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
496
+ function execFileSync(command: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
495
497
  }
@@ -542,6 +542,11 @@ declare namespace NodeJS {
542
542
  ignoreErrors?: boolean | undefined;
543
543
  colorMode?: boolean | 'auto' | undefined;
544
544
  inspectOptions?: InspectOptions | undefined;
545
+ /**
546
+ * Set group indentation
547
+ * @default 2
548
+ */
549
+ groupIndentation?: number | undefined;
545
550
  }
546
551
 
547
552
  interface ConsoleConstructor {
node v12.20/index.d.ts CHANGED
@@ -36,7 +36,6 @@
36
36
  // Junxiao Shi <https://github.com/yoursunny>
37
37
  // Ilia Baryshnikov <https://github.com/qwelias>
38
38
  // ExE Boss <https://github.com/ExE-Boss>
39
- // Jason Kwok <https://github.com/JasonHK>
40
39
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
41
40
 
42
41
  // NOTE: These definitions support NodeJS and TypeScript 3.7.
@@ -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": "12.20.25",
3
+ "version": "12.20.29",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -184,11 +184,6 @@
184
184
  "name": "ExE Boss",
185
185
  "url": "https://github.com/ExE-Boss",
186
186
  "githubUsername": "ExE-Boss"
187
- },
188
- {
189
- "name": "Jason Kwok",
190
- "url": "https://github.com/JasonHK",
191
- "githubUsername": "JasonHK"
192
187
  }
193
188
  ],
194
189
  "main": "",
@@ -200,6 +195,6 @@
200
195
  },
201
196
  "scripts": {},
202
197
  "dependencies": {},
203
- "typesPublisherContentHash": "420290b8095a82d9f6bfd5c199f4093624f6188cbee242ea5fb4d500109c18e6",
198
+ "typesPublisherContentHash": "5ea422dffd3fd3bb8e19dba22cd923a6f49a8681b277ca739936becf32f6ea51",
204
199
  "typeScriptVersion": "3.7"
205
200
  }