@types/tar 6.1.9 → 6.1.11
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 +17 -17
- 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, 25 Jan 2024 07:07:05 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [minipass](https://npmjs.com/package/minipass)
|
|
13
13
|
|
|
14
14
|
# Credits
|
tar/index.d.ts
CHANGED
|
@@ -307,7 +307,7 @@ export interface PackOptions {
|
|
|
307
307
|
* Set to a Date object to force a specific mtime for everything added to
|
|
308
308
|
* the archive. Overridden by noMtime.
|
|
309
309
|
*/
|
|
310
|
-
mtime?:
|
|
310
|
+
mtime?: Date;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
/**
|
|
@@ -815,7 +815,7 @@ export type RequiredFileOptions = {
|
|
|
815
815
|
*/
|
|
816
816
|
export function create(
|
|
817
817
|
options: CreateOptions,
|
|
818
|
-
fileList:
|
|
818
|
+
fileList: readonly string[],
|
|
819
819
|
callback?: (err?: Error) => void,
|
|
820
820
|
): stream.Readable;
|
|
821
821
|
|
|
@@ -825,11 +825,11 @@ export function create(
|
|
|
825
825
|
* fileList that starts with an @ symbol is a tar archive whose entries will
|
|
826
826
|
* be added. To add a file that starts with @, prepend it with `./`.
|
|
827
827
|
*/
|
|
828
|
-
export function create(options: CreateOptions & FileOptions, fileList:
|
|
829
|
-
export function create(options: CreateOptions & FileOptions & { sync: true }, fileList:
|
|
828
|
+
export function create(options: CreateOptions & FileOptions, fileList: readonly string[]): Promise<void>;
|
|
829
|
+
export function create(options: CreateOptions & FileOptions & { sync: true }, fileList: readonly string[]): void;
|
|
830
830
|
export function create(
|
|
831
831
|
options: CreateOptions & FileOptions,
|
|
832
|
-
fileList:
|
|
832
|
+
fileList: readonly string[],
|
|
833
833
|
callback: (err?: Error) => void,
|
|
834
834
|
): void;
|
|
835
835
|
|
|
@@ -852,7 +852,7 @@ export const c: typeof create;
|
|
|
852
852
|
*/
|
|
853
853
|
export function extract(
|
|
854
854
|
options: ExtractOptions,
|
|
855
|
-
fileList?:
|
|
855
|
+
fileList?: readonly string[],
|
|
856
856
|
callback?: (err?: Error) => void,
|
|
857
857
|
): stream.Writable;
|
|
858
858
|
|
|
@@ -866,11 +866,11 @@ export function extract(
|
|
|
866
866
|
* extraction errors will cause a warn event to be emitted. If the cwd is
|
|
867
867
|
* missing, or not a directory, then the extraction will fail completely.
|
|
868
868
|
*/
|
|
869
|
-
export function extract(options: ExtractOptions & FileOptions, fileList?:
|
|
870
|
-
export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?:
|
|
869
|
+
export function extract(options: ExtractOptions & FileOptions, fileList?: readonly string[]): Promise<void>;
|
|
870
|
+
export function extract(options: ExtractOptions & FileOptions & { sync: true }, fileList?: readonly string[]): void;
|
|
871
871
|
export function extract(
|
|
872
872
|
options: ExtractOptions & FileOptions,
|
|
873
|
-
fileList:
|
|
873
|
+
fileList: readonly string[] | undefined,
|
|
874
874
|
callback: (err?: Error) => void,
|
|
875
875
|
): void;
|
|
876
876
|
|
|
@@ -885,14 +885,14 @@ export const x: typeof extract;
|
|
|
885
885
|
* are listed. If the archive is gzipped, then tar will detect this and unzip
|
|
886
886
|
* it.
|
|
887
887
|
*/
|
|
888
|
-
export function list(options: ListOptions & RequiredFileOptions, fileList?:
|
|
888
|
+
export function list(options: ListOptions & RequiredFileOptions, fileList?: readonly string[]): Promise<void>;
|
|
889
889
|
export function list(
|
|
890
890
|
options: ListOptions & RequiredFileOptions & { sync: true },
|
|
891
|
-
fileList?:
|
|
891
|
+
fileList?: readonly string[],
|
|
892
892
|
): void;
|
|
893
893
|
export function list(callback?: (err?: Error) => void): Parse;
|
|
894
|
-
export function list(optionsOrFileList: ListOptions |
|
|
895
|
-
export function list(options: ListOptions, fileList:
|
|
894
|
+
export function list(optionsOrFileList: ListOptions | readonly string[], callback?: (err?: Error) => void): Parse;
|
|
895
|
+
export function list(options: ListOptions, fileList: readonly string[], callback?: (err?: Error) => void): Parse;
|
|
896
896
|
|
|
897
897
|
/**
|
|
898
898
|
* Alias for list
|
|
@@ -907,10 +907,10 @@ export const t: typeof list;
|
|
|
907
907
|
* a tar archive whose entries will be added. To add a file that
|
|
908
908
|
* starts with @, prepend it with ./.
|
|
909
909
|
*/
|
|
910
|
-
export function replace(options: ReplaceOptions, fileList?:
|
|
910
|
+
export function replace(options: ReplaceOptions, fileList?: readonly string[]): Promise<void>;
|
|
911
911
|
export function replace(
|
|
912
912
|
options: ReplaceOptions,
|
|
913
|
-
fileList:
|
|
913
|
+
fileList: readonly string[] | undefined,
|
|
914
914
|
callback: (err?: Error) => void,
|
|
915
915
|
): Promise<void>;
|
|
916
916
|
|
|
@@ -926,10 +926,10 @@ export const r: typeof replace;
|
|
|
926
926
|
* that starts with an @ symbol is a tar archive whose entries will be added.
|
|
927
927
|
* To add a file that starts with @, prepend it with ./.
|
|
928
928
|
*/
|
|
929
|
-
export function update(options: ReplaceOptions, fileList?:
|
|
929
|
+
export function update(options: ReplaceOptions, fileList?: readonly string[]): Promise<void>;
|
|
930
930
|
export function update(
|
|
931
931
|
options: ReplaceOptions,
|
|
932
|
-
fileList:
|
|
932
|
+
fileList: readonly string[] | undefined,
|
|
933
933
|
callback: (err?: Error) => void,
|
|
934
934
|
): Promise<void>;
|
|
935
935
|
|
tar/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/tar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.11",
|
|
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/node": "*",
|
|
29
29
|
"minipass": "^4.0.0"
|
|
30
30
|
},
|
|
31
|
-
"typesPublisherContentHash": "
|
|
32
|
-
"typeScriptVersion": "4.
|
|
31
|
+
"typesPublisherContentHash": "189829b574735c37eec5a76be4fbd5dde6e8df5b4042f718532fcb7177a054f4",
|
|
32
|
+
"typeScriptVersion": "4.6"
|
|
33
33
|
}
|