@types/tar
Advanced tools
Comparing version 6.1.2 to 6.1.3
@@ -556,3 +556,3 @@ // Type definitions for tar 6.1 | ||
*/ | ||
onentry?(entry: FileStat): void; | ||
onentry?(entry: ReadEntry): void; | ||
@@ -675,2 +675,14 @@ /** | ||
export type RequiredFileOptions = { | ||
/** | ||
* Uses the given file as the input or output of this function. | ||
*/ | ||
file: string; | ||
} | { | ||
/** | ||
* Alias for file. | ||
*/ | ||
f: string; | ||
}; | ||
/** | ||
@@ -755,21 +767,10 @@ * Create a tarball archive. The fileList is an array of paths to add to the | ||
* it. | ||
* | ||
* Archive data should be written to the returned stream. | ||
*/ | ||
export function list( | ||
options?: ListOptions & FileOptions, | ||
fileList?: ReadonlyArray<string>, | ||
callback?: (err?: Error) => void, | ||
): stream.Writable; | ||
export function list(options: ListOptions & RequiredFileOptions, fileList?: ReadonlyArray<string>): Promise<void>; | ||
export function list(options: ListOptions & RequiredFileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void; | ||
export function list(callback?: (err?: Error) => void): Parse; | ||
export function list(optionsOrFileList: ListOptions | ReadonlyArray<string>, callback?: (err?: Error) => void): Parse; | ||
export function list(options: ListOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): Parse; | ||
/** | ||
* List the contents of a tarball archive. The fileList is an array of paths | ||
* to list from the tarball. If no paths are provided, then all the entries | ||
* are listed. If the archive is gzipped, then tar will detect this and unzip | ||
* it. | ||
*/ | ||
export function list(options: ListOptions & FileOptions, fileList?: ReadonlyArray<string>): Promise<void>; | ||
export function list(options: ListOptions & FileOptions & { sync: true }, fileList?: ReadonlyArray<string>): void; | ||
/** | ||
* Alias for list | ||
@@ -776,0 +777,0 @@ */ |
{ | ||
"name": "@types/tar", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "TypeScript definitions for tar", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar", | ||
}, | ||
"typesPublisherContentHash": "1ed2a9537078e1f4506663bfa209058cfdcad5f1d6770ed205517e663ec67a8b", | ||
"typeScriptVersion": "4.0" | ||
"typesPublisherContentHash": "73d2759e05ef82c75abf82485bcfc9688944e454f3ab49a061586d8a42e1fec8", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 01 Aug 2022 22:02:17 GMT | ||
* Last updated: Mon, 26 Sep 2022 19:33:06 GMT | ||
* Dependencies: [@types/minipass](https://npmjs.com/package/@types/minipass), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26481
704