@types/tar 4.0.5 → 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.
- tar/README.md +1 -1
- tar/index.d.ts +46 -10
- tar/package.json +3 -3
tar/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for tar (https://github.com/npm/node-tar)
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 21 Oct 2021 07:01:23 GMT
|
|
12
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
|
|
tar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for tar
|
|
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
|
|
@@ -102,8 +102,8 @@ export const fieldEnds: number[];
|
|
|
102
102
|
*/
|
|
103
103
|
export const types: {
|
|
104
104
|
0: string;
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
'\0': string;
|
|
106
|
+
'': string;
|
|
107
107
|
1: string;
|
|
108
108
|
2: string;
|
|
109
109
|
3: string;
|
|
@@ -490,6 +490,14 @@ export interface ExtractOptions {
|
|
|
490
490
|
*/
|
|
491
491
|
onentry?(entry: ReadEntry): void;
|
|
492
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
|
+
|
|
493
501
|
// The following options are mostly internal, but can be modified in some
|
|
494
502
|
// advanced use cases, such as re-using caches between runs.
|
|
495
503
|
|
|
@@ -658,7 +666,11 @@ export interface FileOptions {
|
|
|
658
666
|
*
|
|
659
667
|
* Archive data may be read from the returned stream.
|
|
660
668
|
*/
|
|
661
|
-
export function create(
|
|
669
|
+
export function create(
|
|
670
|
+
options: CreateOptions,
|
|
671
|
+
fileList: ReadonlyArray<string>,
|
|
672
|
+
callback?: (err?: Error) => void,
|
|
673
|
+
): stream.Readable;
|
|
662
674
|
|
|
663
675
|
/**
|
|
664
676
|
* Create a tarball archive. The fileList is an array of paths to add to the
|
|
@@ -668,7 +680,11 @@ export function create(options: CreateOptions, fileList: ReadonlyArray<string>,
|
|
|
668
680
|
*/
|
|
669
681
|
export function create(options: CreateOptions & FileOptions, fileList: ReadonlyArray<string>): Promise<void>;
|
|
670
682
|
export function create(options: CreateOptions & FileOptions & { sync: true }, fileList: ReadonlyArray<string>): void;
|
|
671
|
-
export function create(
|
|
683
|
+
export function create(
|
|
684
|
+
options: CreateOptions & FileOptions,
|
|
685
|
+
fileList: ReadonlyArray<string>,
|
|
686
|
+
callback: (err?: Error) => void,
|
|
687
|
+
): void;
|
|
672
688
|
|
|
673
689
|
/**
|
|
674
690
|
* Alias for create
|
|
@@ -687,7 +703,11 @@ export const c: typeof create;
|
|
|
687
703
|
*
|
|
688
704
|
* Archive data should be written to the returned stream.
|
|
689
705
|
*/
|
|
690
|
-
export function extract(
|
|
706
|
+
export function extract(
|
|
707
|
+
options: ExtractOptions,
|
|
708
|
+
fileList?: ReadonlyArray<string>,
|
|
709
|
+
callback?: (err?: Error) => void,
|
|
710
|
+
): stream.Writable;
|
|
691
711
|
|
|
692
712
|
/**
|
|
693
713
|
* Extract a tarball archive. The fileList is an array of paths to extract
|
|
@@ -701,7 +721,11 @@ export function extract(options: ExtractOptions, fileList?: ReadonlyArray<string
|
|
|
701
721
|
*/
|
|
702
722
|
export function extract(options: ExtractOptions & FileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
|
|
703
723
|
export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void;
|
|
704
|
-
export function extract(
|
|
724
|
+
export function extract(
|
|
725
|
+
options: ExtractOptions & FileOptions,
|
|
726
|
+
fileList: ReadonlyArray<string> | undefined,
|
|
727
|
+
callback: (err?: Error) => void,
|
|
728
|
+
): void;
|
|
705
729
|
|
|
706
730
|
/**
|
|
707
731
|
* Alias for extract
|
|
@@ -716,7 +740,11 @@ export const x: typeof extract;
|
|
|
716
740
|
*
|
|
717
741
|
* Archive data should be written to the returned stream.
|
|
718
742
|
*/
|
|
719
|
-
export function list(
|
|
743
|
+
export function list(
|
|
744
|
+
options?: ListOptions & FileOptions,
|
|
745
|
+
fileList?: ReadonlyArray<string>,
|
|
746
|
+
callback?: (err?: Error) => void,
|
|
747
|
+
): stream.Writable;
|
|
720
748
|
|
|
721
749
|
/**
|
|
722
750
|
* List the contents of a tarball archive. The fileList is an array of paths
|
|
@@ -741,7 +769,11 @@ export const t: typeof list;
|
|
|
741
769
|
* starts with @, prepend it with ./.
|
|
742
770
|
*/
|
|
743
771
|
export function replace(options: ReplaceOptions, fileList?: ReadonlyArray<string>): Promise<void>;
|
|
744
|
-
export function replace(
|
|
772
|
+
export function replace(
|
|
773
|
+
options: ReplaceOptions,
|
|
774
|
+
fileList: ReadonlyArray<string> | undefined,
|
|
775
|
+
callback: (err?: Error) => void,
|
|
776
|
+
): Promise<void>;
|
|
745
777
|
|
|
746
778
|
/**
|
|
747
779
|
* Alias for replace
|
|
@@ -756,7 +788,11 @@ export const r: typeof replace;
|
|
|
756
788
|
* To add a file that starts with @, prepend it with ./.
|
|
757
789
|
*/
|
|
758
790
|
export function update(options: ReplaceOptions, fileList?: ReadonlyArray<string>): Promise<void>;
|
|
759
|
-
export function update(
|
|
791
|
+
export function update(
|
|
792
|
+
options: ReplaceOptions,
|
|
793
|
+
fileList: ReadonlyArray<string> | undefined,
|
|
794
|
+
callback: (err?: Error) => void,
|
|
795
|
+
): Promise<void>;
|
|
760
796
|
|
|
761
797
|
/**
|
|
762
798
|
* Alias for update
|
tar/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/tar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "TypeScript definitions for tar",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"@types/minipass": "*",
|
|
29
29
|
"@types/node": "*"
|
|
30
30
|
},
|
|
31
|
-
"typesPublisherContentHash": "
|
|
32
|
-
"typeScriptVersion": "3.
|
|
31
|
+
"typesPublisherContentHash": "aebf6b80128a2e3a776d3742fd05cafcc88c431c2fbc925074bea71195da6229",
|
|
32
|
+
"typeScriptVersion": "3.7"
|
|
33
33
|
}
|