@types/tar 4.0.2 → 6.1.0

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.
Files changed (4) hide show
  1. tar/LICENSE +21 -21
  2. tar/README.md +5 -5
  3. tar/index.d.ts +129 -80
  4. tar/package.json +5 -4
tar/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
tar/README.md CHANGED
@@ -5,12 +5,12 @@
5
5
  This package contains type definitions for tar (https://github.com/npm/node-tar).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar.
9
9
 
10
- Additional Details
11
- * Last updated: Wed, 03 Jul 2019 15:47:18 GMT
12
- * Dependencies: @types/minipass, @types/node
10
+ ### Additional Details
11
+ * Last updated: Thu, 21 Oct 2021 07:01:23 GMT
12
+ * Dependencies: [@types/minipass](https://npmjs.com/package/@types/minipass), [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by Maxime LUCE <https://github.com/SomaticIT>, and Connor Peet <https://github.com/connor4312>.
16
+ These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), and [Connor Peet](https://github.com/connor4312).
tar/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for tar 4.0
1
+ // Type definitions for tar 6.1
2
2
  // Project: https://github.com/npm/node-tar
3
3
  // Definitions by: Maxime LUCE <https://github.com/SomaticIT>, Connor Peet <https://github.com/connor4312>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -15,24 +15,24 @@ import MiniPass = require('minipass');
15
15
 
16
16
  export interface HeaderProperties {
17
17
  path: string;
18
- mode?: number;
19
- noProprietary?: boolean;
20
- uid?: number;
21
- gid?: number;
22
- size?: number;
23
- mtime?: number;
24
- type?: string;
25
- uname?: string;
26
- gname?: string;
27
- devmaj?: number;
28
- devmin?: number;
18
+ mode?: number | undefined;
19
+ noProprietary?: boolean | undefined;
20
+ uid?: number | undefined;
21
+ gid?: number | undefined;
22
+ size?: number | undefined;
23
+ mtime?: number | undefined;
24
+ type?: string | undefined;
25
+ uname?: string | undefined;
26
+ gname?: string | undefined;
27
+ devmaj?: number | undefined;
28
+ devmin?: number | undefined;
29
29
  }
30
30
 
31
31
  export interface ExtractOptions {
32
- type?: string;
33
- Directory?: boolean;
34
- path?: string;
35
- strip?: number;
32
+ type?: string | undefined;
33
+ Directory?: boolean | undefined;
34
+ path?: string | undefined;
35
+ strip?: number | undefined;
36
36
  }
37
37
 
38
38
  export interface ParseStream extends NodeJS.ReadWriteStream {
@@ -102,8 +102,8 @@ export const fieldEnds: number[];
102
102
  */
103
103
  export const types: {
104
104
  0: string;
105
- "\0": string;
106
- "": string;
105
+ '\0': string;
106
+ '': string;
107
107
  1: string;
108
108
  2: string;
109
109
  3: string;
@@ -264,28 +264,28 @@ export interface CreateOptions {
264
264
  /**
265
265
  * Treat warnings as crash-worthy errors. Default false.
266
266
  */
267
- strict?: boolean;
267
+ strict?: boolean | undefined;
268
268
 
269
269
  /**
270
270
  * The current working directory for creating the archive. Defaults to process.cwd().
271
271
  */
272
- cwd?: string;
272
+ cwd?: string | undefined;
273
273
 
274
274
  /**
275
275
  * Alias for cwd.
276
276
  */
277
- C?: string;
277
+ C?: string | undefined;
278
278
 
279
279
  /**
280
280
  * Set to any truthy value to create a gzipped archive,
281
281
  * or an object with settings for zlib.Gzip()
282
282
  */
283
- gzip?: boolean | zlib.ZlibOptions;
283
+ gzip?: boolean | zlib.ZlibOptions | undefined;
284
284
 
285
285
  /**
286
286
  * Alias for gzip.
287
287
  */
288
- z?: boolean | zlib.ZlibOptions;
288
+ z?: boolean | zlib.ZlibOptions | undefined;
289
289
 
290
290
  /**
291
291
  * A function that gets called with (path, stat) for each entry being
@@ -298,55 +298,55 @@ export interface CreateOptions {
298
298
  * gname, dev, ino, and nlink. Note that mtime is still included,
299
299
  * because this is necessary other time-based operations.
300
300
  */
301
- portable?: boolean;
301
+ portable?: boolean | undefined;
302
302
 
303
303
  /**
304
304
  * Allow absolute paths. By default, / is stripped from absolute paths.
305
305
  */
306
- preservePaths?: boolean;
306
+ preservePaths?: boolean | undefined;
307
307
 
308
308
  /**
309
309
  * Alias for presevePaths.
310
310
  */
311
- P?: boolean;
311
+ P?: boolean | undefined;
312
312
 
313
313
  /**
314
314
  * The mode to set on the created file archive.
315
315
  */
316
- mode?: number;
316
+ mode?: number | undefined;
317
317
 
318
318
  /**
319
319
  * Do not recursively archive the contents of directories.
320
320
  */
321
- noDirRecurse?: boolean;
321
+ noDirRecurse?: boolean | undefined;
322
322
 
323
323
  /**
324
324
  * Set to true to pack the targets of symbolic links. Without this
325
325
  * option, symbolic links are archived as such.
326
326
  */
327
- follow?: boolean;
327
+ follow?: boolean | undefined;
328
328
 
329
329
  /**
330
330
  * Alias for follow.
331
331
  */
332
- L?: boolean;
332
+ L?: boolean | undefined;
333
333
 
334
334
  /**
335
335
  * Alias for follow.
336
336
  */
337
- h?: boolean;
337
+ h?: boolean | undefined;
338
338
 
339
339
  /**
340
340
  * Suppress pax extended headers. Note that this means that long paths and
341
341
  * linkpaths will be truncated, and large or negative numeric values
342
342
  * may be interpreted incorrectly.
343
343
  */
344
- noPax?: boolean;
344
+ noPax?: boolean | undefined;
345
345
 
346
346
  /**
347
347
  * A path portion to prefix onto the entries in the archive.
348
348
  */
349
- prefix?: string;
349
+ prefix?: string | undefined;
350
350
  }
351
351
 
352
352
  export interface ExtractOptions {
@@ -359,18 +359,18 @@ export interface ExtractOptions {
359
359
  /**
360
360
  * Treat warnings as crash-worthy errors. Default false.
361
361
  */
362
- strict?: boolean;
362
+ strict?: boolean | undefined;
363
363
 
364
364
  /**
365
365
  * Extract files relative to the specified directory. Defaults to
366
366
  * process.cwd(). If provided, this must exist and must be a directory.
367
367
  */
368
- cwd?: string;
368
+ cwd?: string | undefined;
369
369
 
370
370
  /**
371
371
  * Alias for cwd.
372
372
  */
373
- C?: string;
373
+ C?: string | undefined;
374
374
 
375
375
  /**
376
376
  * A function that gets called with (path, stat) for each entry being
@@ -382,33 +382,33 @@ export interface ExtractOptions {
382
382
  * Set to true to keep the existing file on disk if it's newer than
383
383
  * the file in the archive.
384
384
  */
385
- newer?: boolean;
385
+ newer?: boolean | undefined;
386
386
 
387
387
  /**
388
388
  * Alias for newer.
389
389
  */
390
- 'keep-newer'?: boolean;
390
+ 'keep-newer'?: boolean | undefined;
391
391
 
392
392
  /**
393
393
  * Alias for newer.
394
394
  */
395
- 'keep-newer-files'?: boolean;
395
+ 'keep-newer-files'?: boolean | undefined;
396
396
 
397
397
  /**
398
398
  * Do not overwrite existing files. In particular, if a file appears more
399
399
  * than once in an archive, later copies will not overwrite earlier copies
400
400
  */
401
- keep?: boolean;
401
+ keep?: boolean | undefined;
402
402
 
403
403
  /**
404
404
  * Alias for keep.
405
405
  */
406
- k?: boolean;
406
+ k?: boolean | undefined;
407
407
 
408
408
  /**
409
409
  * Alias for keep.
410
410
  */
411
- 'keep-existing'?: boolean;
411
+ 'keep-existing'?: boolean | undefined;
412
412
 
413
413
  /**
414
414
  * Unlink files before creating them. Without this option, tar overwrites
@@ -416,24 +416,24 @@ export interface ExtractOptions {
416
416
  * existing hardlinks will be broken, as will any symlink that would
417
417
  * affect the location of an extracted file.
418
418
  */
419
- unlink?: boolean;
419
+ unlink?: boolean | undefined;
420
420
 
421
421
  /**
422
422
  * Remove the specified number of leading path elements. Pathnames with
423
423
  * fewer elements will be silently skipped. Note that the pathname
424
424
  * is edited after applying the filter, but before security checks.
425
425
  */
426
- strip?: number;
426
+ strip?: number | undefined;
427
427
 
428
428
  /**
429
429
  * Alias for strip.
430
430
  */
431
- 'strip-components'?: number;
431
+ 'strip-components'?: number | undefined;
432
432
 
433
433
  /**
434
434
  * Alias for strip.
435
435
  */
436
- stripComponents?: number;
436
+ stripComponents?: number | undefined;
437
437
 
438
438
  /**
439
439
  * If true, tar will set the uid and gid of extracted entries to the uid
@@ -444,12 +444,12 @@ export interface ExtractOptions {
444
444
  * never unpacked in this implementation, and modes
445
445
  * are set by default already.
446
446
  */
447
- preserveOwner?: boolean;
447
+ preserveOwner?: boolean | undefined;
448
448
 
449
449
  /**
450
450
  * Alias for preserveOwner.
451
451
  */
452
- p?: boolean;
452
+ p?: boolean | undefined;
453
453
 
454
454
  /**
455
455
  * Set to a number to force ownership of all extracted files and folders,
@@ -457,7 +457,7 @@ export interface ExtractOptions {
457
457
  * user id, regardless of the uid field in the archive. Cannot be used
458
458
  * along with preserveOwner. Requires also setting a gid option.
459
459
  */
460
- uid?: number;
460
+ uid?: number | undefined;
461
461
 
462
462
  /**
463
463
  * Set to a number to force ownership of all extracted files and folders,
@@ -465,15 +465,15 @@ export interface ExtractOptions {
465
465
  * group id, regardless of the gid field in the archive. Cannot be used
466
466
  * along with preserveOwner. Requires also setting a uid option
467
467
  */
468
- gid?: number;
468
+ gid?: number | undefined;
469
469
 
470
470
  /**
471
471
  * Set to true to omit writing mtime value for extracted entries.
472
472
  * [Alias: m, no-mtime]
473
473
  */
474
- noMtime?: boolean;
475
- m?: boolean;
476
- 'no-mtime'?: boolean;
474
+ noMtime?: boolean | undefined;
475
+ m?: boolean | undefined;
476
+ 'no-mtime'?: boolean | undefined;
477
477
 
478
478
  /**
479
479
  * Provide a function that takes an entry object, and returns a stream,
@@ -489,24 +489,45 @@ export interface ExtractOptions {
489
489
  * filter.
490
490
  */
491
491
  onentry?(entry: ReadEntry): void;
492
+
493
+ /**
494
+ * Set to true to omit calling `fs.chmod()` to ensure that the extracted file
495
+ * matches the entry mode. This also suppresses the call to `process.umask()`
496
+ * to determine the default umask value, since tar will extract with whatever
497
+ * mode is provided, and let the process `umask` apply normally.
498
+ */
499
+ noChmod?: boolean | undefined;
500
+
501
+ // The following options are mostly internal, but can be modified in some
502
+ // advanced use cases, such as re-using caches between runs.
503
+
504
+ /**
505
+ * The maximum buffer size for fs.read() operations (in bytes). Defaults to 16 MB.
506
+ */
507
+ maxReadSize?: number | undefined;
508
+
509
+ /**
510
+ * The maximum size of meta entries that is supported. Defaults to 1 MB.
511
+ */
512
+ maxMetaEntrySize?: number | undefined;
492
513
  }
493
514
 
494
515
  export interface ListOptions {
495
516
  /**
496
517
  * Treat warnings as crash-worthy errors. Default false.
497
518
  */
498
- strict?: boolean;
519
+ strict?: boolean | undefined;
499
520
 
500
521
  /**
501
522
  * Extract files relative to the specified directory. Defaults to
502
523
  * process.cwd(). If provided, this must exist and must be a directory.
503
524
  */
504
- cwd?: string;
525
+ cwd?: string | undefined;
505
526
 
506
527
  /**
507
528
  * Alias for cwd.
508
529
  */
509
- C?: string;
530
+ C?: string | undefined;
510
531
 
511
532
  /**
512
533
  * A function that gets called with (path, stat) for each entry being
@@ -524,7 +545,7 @@ export interface ListOptions {
524
545
  /**
525
546
  * The maximum buffer size for fs.read() operations. Defaults to 16 MB.
526
547
  */
527
- maxReadSize?: number;
548
+ maxReadSize?: number | undefined;
528
549
 
529
550
  /**
530
551
  * By default, entry streams are resumed immediately after the call to
@@ -532,7 +553,7 @@ export interface ListOptions {
532
553
  * opting into this, the stream will never complete until the entry
533
554
  * data is consumed.
534
555
  */
535
- noResume?: boolean;
556
+ noResume?: boolean | undefined;
536
557
  }
537
558
 
538
559
  export interface ReplaceOptions {
@@ -545,7 +566,7 @@ export interface ReplaceOptions {
545
566
  * Act synchronously. If this is set, then any provided file will be
546
567
  * fully written after the call to tar.c.
547
568
  */
548
- sync?: boolean;
569
+ sync?: boolean | undefined;
549
570
 
550
571
  /**
551
572
  * A function that will get called with (message, data)
@@ -556,29 +577,29 @@ export interface ReplaceOptions {
556
577
  /**
557
578
  * Treat warnings as crash-worthy errors. Default false.
558
579
  */
559
- strict?: boolean;
580
+ strict?: boolean | undefined;
560
581
 
561
582
  /**
562
583
  * Extract files relative to the specified directory. Defaults to
563
584
  * process.cwd(). If provided, this must exist and must be a directory.
564
585
  */
565
- cwd?: string;
586
+ cwd?: string | undefined;
566
587
 
567
588
  /**
568
589
  * Alias for cwd.
569
590
  */
570
- C?: string;
591
+ C?: string | undefined;
571
592
 
572
593
  /**
573
594
  * A path portion to prefix onto the entries in the archive.
574
595
  */
575
- prefix?: string;
596
+ prefix?: string | undefined;
576
597
 
577
598
  /**
578
599
  * Set to any truthy value to create a gzipped archive,
579
600
  * or an object with settings for zlib.Gzip()
580
601
  */
581
- gzip?: boolean | zlib.ZlibOptions;
602
+ gzip?: boolean | zlib.ZlibOptions | undefined;
582
603
 
583
604
  /**
584
605
  * A function that gets called with (path, stat) for each entry being
@@ -589,52 +610,52 @@ export interface ReplaceOptions {
589
610
  /**
590
611
  * Allow absolute paths. By default, / is stripped from absolute paths.
591
612
  */
592
- preservePaths?: boolean;
613
+ preservePaths?: boolean | undefined;
593
614
 
594
615
  /**
595
616
  * The maximum buffer size for fs.read() operations. Defaults to 16 MB.
596
617
  */
597
- maxReadSize?: number;
618
+ maxReadSize?: number | undefined;
598
619
 
599
620
  /**
600
621
  * Do not recursively archive the contents of directories.
601
622
  */
602
- noDirRecurse?: boolean;
623
+ noDirRecurse?: boolean | undefined;
603
624
 
604
625
  /**
605
626
  * Set to true to pack the targets of symbolic links. Without this
606
627
  * option, symbolic links are archived as such.
607
628
  */
608
- follow?: boolean;
629
+ follow?: boolean | undefined;
609
630
 
610
631
  /**
611
632
  * Alias for follow.
612
633
  */
613
- L?: boolean;
634
+ L?: boolean | undefined;
614
635
 
615
636
  /**
616
637
  * Alias for follow.
617
638
  */
618
- h?: boolean;
639
+ h?: boolean | undefined;
619
640
 
620
641
  /**
621
642
  * uppress pax extended headers. Note that this means that long paths and
622
643
  * linkpaths will be truncated, and large or negative numeric values
623
644
  * may be interpreted incorrectly.
624
645
  */
625
- noPax?: boolean;
646
+ noPax?: boolean | undefined;
626
647
  }
627
648
 
628
649
  export interface FileOptions {
629
650
  /**
630
651
  * Uses the given file as the input or output of this function.
631
652
  */
632
- file?: string;
653
+ file?: string | undefined;
633
654
 
634
655
  /**
635
656
  * Alias for file.
636
657
  */
637
- f?: string;
658
+ f?: string | undefined;
638
659
  }
639
660
 
640
661
  /**
@@ -645,7 +666,11 @@ export interface FileOptions {
645
666
  *
646
667
  * Archive data may be read from the returned stream.
647
668
  */
648
- export function create(options: CreateOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): stream.Readable;
669
+ export function create(
670
+ options: CreateOptions,
671
+ fileList: ReadonlyArray<string>,
672
+ callback?: (err?: Error) => void,
673
+ ): stream.Readable;
649
674
 
650
675
  /**
651
676
  * Create a tarball archive. The fileList is an array of paths to add to the
@@ -655,7 +680,11 @@ export function create(options: CreateOptions, fileList: ReadonlyArray<string>,
655
680
  */
656
681
  export function create(options: CreateOptions & FileOptions, fileList: ReadonlyArray<string>): Promise<void>;
657
682
  export function create(options: CreateOptions & FileOptions & { sync: true }, fileList: ReadonlyArray<string>): void;
658
- export function create(options: CreateOptions & FileOptions, fileList: ReadonlyArray<string>, callback: (err?: Error) => void): void;
683
+ export function create(
684
+ options: CreateOptions & FileOptions,
685
+ fileList: ReadonlyArray<string>,
686
+ callback: (err?: Error) => void,
687
+ ): void;
659
688
 
660
689
  /**
661
690
  * Alias for create
@@ -674,7 +703,11 @@ export const c: typeof create;
674
703
  *
675
704
  * Archive data should be written to the returned stream.
676
705
  */
677
- export function extract(options: ExtractOptions, fileList?: ReadonlyArray<string>, callback?: (err?: Error) => void): stream.Writable;
706
+ export function extract(
707
+ options: ExtractOptions,
708
+ fileList?: ReadonlyArray<string>,
709
+ callback?: (err?: Error) => void,
710
+ ): stream.Writable;
678
711
 
679
712
  /**
680
713
  * Extract a tarball archive. The fileList is an array of paths to extract
@@ -688,7 +721,11 @@ export function extract(options: ExtractOptions, fileList?: ReadonlyArray<string
688
721
  */
689
722
  export function extract(options: ExtractOptions & FileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
690
723
  export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void;
691
- export function extract(options: ExtractOptions & FileOptions, fileList: ReadonlyArray<string> | undefined, callback: (err?: Error) => void): void;
724
+ export function extract(
725
+ options: ExtractOptions & FileOptions,
726
+ fileList: ReadonlyArray<string> | undefined,
727
+ callback: (err?: Error) => void,
728
+ ): void;
692
729
 
693
730
  /**
694
731
  * Alias for extract
@@ -703,7 +740,11 @@ export const x: typeof extract;
703
740
  *
704
741
  * Archive data should be written to the returned stream.
705
742
  */
706
- export function list(options?: ListOptions, fileList?: ReadonlyArray<string>, callback?: (err?: Error) => void): stream.Writable;
743
+ export function list(
744
+ options?: ListOptions & FileOptions,
745
+ fileList?: ReadonlyArray<string>,
746
+ callback?: (err?: Error) => void,
747
+ ): stream.Writable;
707
748
 
708
749
  /**
709
750
  * List the contents of a tarball archive. The fileList is an array of paths
@@ -728,7 +769,11 @@ export const t: typeof list;
728
769
  * starts with @, prepend it with ./.
729
770
  */
730
771
  export function replace(options: ReplaceOptions, fileList?: ReadonlyArray<string>): Promise<void>;
731
- export function replace(options: ReplaceOptions, fileList: ReadonlyArray<string> | undefined, callback: (err?: Error) => void): Promise<void>;
772
+ export function replace(
773
+ options: ReplaceOptions,
774
+ fileList: ReadonlyArray<string> | undefined,
775
+ callback: (err?: Error) => void,
776
+ ): Promise<void>;
732
777
 
733
778
  /**
734
779
  * Alias for replace
@@ -743,7 +788,11 @@ export const r: typeof replace;
743
788
  * To add a file that starts with @, prepend it with ./.
744
789
  */
745
790
  export function update(options: ReplaceOptions, fileList?: ReadonlyArray<string>): Promise<void>;
746
- export function update(options: ReplaceOptions, fileList: ReadonlyArray<string> | undefined, callback: (err?: Error) => void): Promise<void>;
791
+ export function update(
792
+ options: ReplaceOptions,
793
+ fileList: ReadonlyArray<string> | undefined,
794
+ callback: (err?: Error) => void,
795
+ ): Promise<void>;
747
796
 
748
797
  /**
749
798
  * Alias for update
tar/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/tar",
3
- "version": "4.0.2",
3
+ "version": "6.1.0",
4
4
  "description": "TypeScript definitions for tar",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar",
5
6
  "license": "MIT",
6
7
  "contributors": [
7
8
  {
@@ -16,7 +17,7 @@
16
17
  }
17
18
  ],
18
19
  "main": "",
19
- "types": "index",
20
+ "types": "index.d.ts",
20
21
  "repository": {
21
22
  "type": "git",
22
23
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -27,6 +28,6 @@
27
28
  "@types/minipass": "*",
28
29
  "@types/node": "*"
29
30
  },
30
- "typesPublisherContentHash": "5eac56f7bdc16e812aeccc805b77236b23cb5e812ff295bbfaf69e1507b3ff6f",
31
- "typeScriptVersion": "2.0"
31
+ "typesPublisherContentHash": "aebf6b80128a2e3a776d3742fd05cafcc88c431c2fbc925074bea71195da6229",
32
+ "typeScriptVersion": "3.7"
32
33
  }