@types/node 13.13.41 → 13.13.45

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 v13.13/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/v13.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 03 Feb 2021 22:47:37 GMT
11
+ * Last updated: Fri, 19 Feb 2021 17:58:45 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
 
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), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [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), [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), [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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), 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), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [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), [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), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Jason Kwok](https://github.com/JasonHK).
node v13.13/fs.d.ts CHANGED
@@ -491,9 +491,10 @@ declare module "fs" {
491
491
  * Asynchronous stat(2) - Get file status.
492
492
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
493
493
  */
494
- function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
495
- function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
496
494
  function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
495
+ function stat(path: PathLike, options: StatOptions & { bigint?: false } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
496
+ function stat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
497
+ function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
497
498
 
498
499
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
499
500
  namespace stat {
@@ -501,24 +502,27 @@ declare module "fs" {
501
502
  * Asynchronous stat(2) - Get file status.
502
503
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
503
504
  */
504
- function __promisify__(path: PathLike, options: BigIntOptions): Promise<BigIntStats>;
505
- function __promisify__(path: PathLike, options: StatOptions): Promise<Stats | BigIntStats>;
506
- function __promisify__(path: PathLike): Promise<Stats>;
505
+ function __promisify__(path: PathLike, options?: StatOptions & { bigint?: false }): Promise<Stats>;
506
+ function __promisify__(path: PathLike, options: StatOptions & { bigint: true }): Promise<BigIntStats>;
507
+ function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
507
508
  }
508
509
 
509
510
  /**
510
511
  * Synchronous stat(2) - Get file status.
511
512
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
512
513
  */
513
- function statSync(path: PathLike, options: BigIntOptions): BigIntStats;
514
- function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats;
515
- function statSync(path: PathLike): Stats;
514
+ function statSync(path: PathLike, options?: StatOptions & { bigint?: false }): Stats;
515
+ function statSync(path: PathLike, options: StatOptions & { bigint: true }): BigIntStats;
516
+ function statSync(path: PathLike, options?: StatOptions): Stats | BigIntStats;
516
517
 
517
518
  /**
518
519
  * Asynchronous fstat(2) - Get file status.
519
520
  * @param fd A file descriptor.
520
521
  */
521
522
  function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
523
+ function fstat(fd: number, options: StatOptions & { bigint?: false } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
524
+ function fstat(fd: number, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
525
+ function fstat(fd: number, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
522
526
 
523
527
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
524
528
  namespace fstat {
@@ -526,20 +530,27 @@ declare module "fs" {
526
530
  * Asynchronous fstat(2) - Get file status.
527
531
  * @param fd A file descriptor.
528
532
  */
529
- function __promisify__(fd: number): Promise<Stats>;
533
+ function __promisify__(fd: number, options?: StatOptions & { bigint?: false }): Promise<Stats>;
534
+ function __promisify__(fd: number, options: StatOptions & { bigint: true }): Promise<BigIntStats>;
535
+ function __promisify__(fd: number, options?: StatOptions): Promise<Stats | BigIntStats>;
530
536
  }
531
537
 
532
538
  /**
533
539
  * Synchronous fstat(2) - Get file status.
534
540
  * @param fd A file descriptor.
535
541
  */
536
- function fstatSync(fd: number): Stats;
542
+ function fstatSync(fd: number, options?: StatOptions & { bigint?: false }): Stats;
543
+ function fstatSync(fd: number, options: StatOptions & { bigint: true }): BigIntStats;
544
+ function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
537
545
 
538
546
  /**
539
547
  * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
540
548
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
541
549
  */
542
550
  function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
551
+ function lstat(path: PathLike, options: StatOptions & { bigint?: false } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
552
+ function lstat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
553
+ function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
543
554
 
544
555
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
545
556
  namespace lstat {
@@ -547,14 +558,18 @@ declare module "fs" {
547
558
  * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
548
559
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
549
560
  */
550
- function __promisify__(path: PathLike): Promise<Stats>;
561
+ function __promisify__(path: PathLike, options?: StatOptions & { bigint?: false }): Promise<Stats>;
562
+ function __promisify__(path: PathLike, options: StatOptions & { bigint: true }): Promise<BigIntStats>;
563
+ function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
551
564
  }
552
565
 
553
566
  /**
554
567
  * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
555
568
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
556
569
  */
557
- function lstatSync(path: PathLike): Stats;
570
+ function lstatSync(path: PathLike, options?: StatOptions & { bigint?: false }): Stats;
571
+ function lstatSync(path: PathLike, options: StatOptions & { bigint: true }): BigIntStats;
572
+ function lstatSync(path: PathLike, options?: StatOptions): Stats | BigIntStats;
558
573
 
559
574
  /**
560
575
  * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
@@ -2198,7 +2213,9 @@ declare module "fs" {
2198
2213
  /**
2199
2214
  * Asynchronous fstat(2) - Get file status.
2200
2215
  */
2201
- stat(): Promise<Stats>;
2216
+ stat(opts?: StatOptions & { bigint?: false }): Promise<Stats>;
2217
+ stat(opts: StatOptions & { bigint: true }): Promise<BigIntStats>;
2218
+ stat(opts?: StatOptions): Promise<Stats | BigIntStats>;
2202
2219
 
2203
2220
  /**
2204
2221
  * Asynchronous ftruncate(2) - Truncate a file to a specified length.
@@ -2458,23 +2475,21 @@ declare module "fs" {
2458
2475
  */
2459
2476
  function symlink(target: PathLike, path: PathLike, type?: string | null): Promise<void>;
2460
2477
 
2461
- /**
2462
- * Asynchronous fstat(2) - Get file status.
2463
- * @param handle A `FileHandle`.
2464
- */
2465
- function fstat(handle: FileHandle): Promise<Stats>;
2466
-
2467
2478
  /**
2468
2479
  * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links.
2469
2480
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2470
2481
  */
2471
- function lstat(path: PathLike): Promise<Stats>;
2482
+ function lstat(path: PathLike, opts?: StatOptions & { bigint?: false }): Promise<Stats>;
2483
+ function lstat(path: PathLike, opts: StatOptions & { bigint: true }): Promise<BigIntStats>;
2484
+ function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
2472
2485
 
2473
2486
  /**
2474
2487
  * Asynchronous stat(2) - Get file status.
2475
2488
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2476
2489
  */
2477
- function stat(path: PathLike): Promise<Stats>;
2490
+ function stat(path: PathLike, opts?: StatOptions & { bigint?: false }): Promise<Stats>;
2491
+ function stat(path: PathLike, opts: StatOptions & { bigint: true }): Promise<BigIntStats>;
2492
+ function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
2478
2493
 
2479
2494
  /**
2480
2495
  * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file.
node v13.13/index.d.ts CHANGED
@@ -3,7 +3,6 @@
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
  // Benjamin Toueg <https://github.com/btoueg>
@@ -13,7 +12,6 @@
13
12
  // David Junger <https://github.com/touffy>
14
13
  // Deividas Bakanas <https://github.com/DeividasBakanas>
15
14
  // Eugene Y. Q. Shen <https://github.com/eyqs>
16
- // Flarna <https://github.com/Flarna>
17
15
  // Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
18
16
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
19
17
  // Huw <https://github.com/hoo29>
@@ -32,7 +30,6 @@
32
30
  // wwwy3y3 <https://github.com/wwwy3y3>
33
31
  // Samuel Ainsworth <https://github.com/samuela>
34
32
  // Kyle Uehlein <https://github.com/kuehlein>
35
- // Jordi Oliveras Rovira <https://github.com/j-oliveras>
36
33
  // Thanik Bhongbhibhat <https://github.com/bhongy>
37
34
  // Marcin Kopacz <https://github.com/chyzwar>
38
35
  // Trivikram Kamat <https://github.com/trivikr>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.13.41",
3
+ "version": "13.13.45",
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",
@@ -69,11 +64,6 @@
69
64
  "url": "https://github.com/eyqs",
70
65
  "githubUsername": "eyqs"
71
66
  },
72
- {
73
- "name": "Flarna",
74
- "url": "https://github.com/Flarna",
75
- "githubUsername": "Flarna"
76
- },
77
67
  {
78
68
  "name": "Hannes Magnusson",
79
69
  "url": "https://github.com/Hannes-Magnusson-CK",
@@ -164,11 +154,6 @@
164
154
  "url": "https://github.com/kuehlein",
165
155
  "githubUsername": "kuehlein"
166
156
  },
167
- {
168
- "name": "Jordi Oliveras Rovira",
169
- "url": "https://github.com/j-oliveras",
170
- "githubUsername": "j-oliveras"
171
- },
172
157
  {
173
158
  "name": "Thanik Bhongbhibhat",
174
159
  "url": "https://github.com/bhongy",
@@ -241,6 +226,6 @@
241
226
  },
242
227
  "scripts": {},
243
228
  "dependencies": {},
244
- "typesPublisherContentHash": "57e09f4181881840c8e34686af2b4341425c91614fbf3832921a25f47da98b6d",
229
+ "typesPublisherContentHash": "320f8dd66d99ddc3386aa2ca41ed5cb1fe16cab7206360d80aa4e3ab6454b3d1",
245
230
  "typeScriptVersion": "3.4"
246
231
  }
node v13.13/vm.d.ts CHANGED
@@ -21,6 +21,7 @@ declare module "vm" {
21
21
  displayErrors?: boolean;
22
22
  timeout?: number;
23
23
  cachedData?: Buffer;
24
+ /** @deprecated in favor of `script.createCachedData()` */
24
25
  produceCachedData?: boolean;
25
26
  }
26
27
  interface RunningScriptOptions extends BaseOptions {
@@ -115,6 +116,7 @@ declare module "vm" {
115
116
  runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any;
116
117
  runInThisContext(options?: RunningScriptOptions): any;
117
118
  createCachedData(): Buffer;
119
+ cachedDataRejected?: boolean;
118
120
  }
119
121
  function createContext(sandbox?: Context, options?: CreateContextOptions): Context;
120
122
  function isContext(sandbox: Context): boolean;