@types/tar 6.1.10 → 6.1.12
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 +26 -14
- 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: Wed, 03 Apr 2024 22:35:26 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
|
@@ -22,13 +22,6 @@ export interface HeaderProperties {
|
|
|
22
22
|
devmin?: number | undefined;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export interface ExtractOptions {
|
|
26
|
-
type?: string | undefined;
|
|
27
|
-
Directory?: boolean | undefined;
|
|
28
|
-
path?: string | undefined;
|
|
29
|
-
strip?: number | undefined;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
25
|
export interface ParseStream extends NodeJS.ReadWriteStream {
|
|
33
26
|
position: number;
|
|
34
27
|
|
|
@@ -240,6 +233,11 @@ export interface PackOptions {
|
|
|
240
233
|
* settings for zlib.Gzip()
|
|
241
234
|
*/
|
|
242
235
|
gzip?: boolean | zlib.ZlibOptions;
|
|
236
|
+
/**
|
|
237
|
+
* Set to any truthy value to create a brotli-compressed archive,
|
|
238
|
+
* or an object with settings for zlib.BrotliCompress()
|
|
239
|
+
*/
|
|
240
|
+
brotli?: boolean | zlib.BrotliOptions;
|
|
243
241
|
/**
|
|
244
242
|
* A function that gets called with (path, stat) for each entry being added.
|
|
245
243
|
* Return true to add the entry to the archive, or false to omit it.
|
|
@@ -307,7 +305,7 @@ export interface PackOptions {
|
|
|
307
305
|
* Set to a Date object to force a specific mtime for everything added to
|
|
308
306
|
* the archive. Overridden by noMtime.
|
|
309
307
|
*/
|
|
310
|
-
mtime?:
|
|
308
|
+
mtime?: Date;
|
|
311
309
|
}
|
|
312
310
|
|
|
313
311
|
/**
|
|
@@ -422,6 +420,12 @@ export interface CreateOptions {
|
|
|
422
420
|
*/
|
|
423
421
|
z?: boolean | zlib.ZlibOptions | undefined;
|
|
424
422
|
|
|
423
|
+
/**
|
|
424
|
+
* Set to any truthy value to create a brotli-compressed archive,
|
|
425
|
+
* or an object with settings for zlib.BrotliCompress()
|
|
426
|
+
*/
|
|
427
|
+
brotli?: boolean | zlib.BrotliOptions | undefined;
|
|
428
|
+
|
|
425
429
|
/**
|
|
426
430
|
* A function that gets called with (path, stat) for each entry being
|
|
427
431
|
* added. Return true to add the entry to the archive, or false to omit it.
|
|
@@ -545,6 +549,20 @@ export interface ExtractOptions {
|
|
|
545
549
|
*/
|
|
546
550
|
"keep-existing"?: boolean | undefined;
|
|
547
551
|
|
|
552
|
+
/**
|
|
553
|
+
* Allow absolute paths, paths containing .., and extracting
|
|
554
|
+
* through symbolic links. By default, / is stripped from
|
|
555
|
+
* absolute paths, .. paths are not extracted, and any file
|
|
556
|
+
* whose location would be modified by a symbolic link is not
|
|
557
|
+
* extracted.
|
|
558
|
+
*/
|
|
559
|
+
preservePaths?: boolean | undefined;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Alias for presevePaths.
|
|
563
|
+
*/
|
|
564
|
+
P?: boolean | undefined;
|
|
565
|
+
|
|
548
566
|
/**
|
|
549
567
|
* Unlink files before creating them. Without this option, tar overwrites
|
|
550
568
|
* existing files, which preserves existing hardlinks. With this option,
|
|
@@ -730,12 +748,6 @@ export interface ReplaceOptions {
|
|
|
730
748
|
*/
|
|
731
749
|
prefix?: string | undefined;
|
|
732
750
|
|
|
733
|
-
/**
|
|
734
|
-
* Set to any truthy value to create a gzipped archive,
|
|
735
|
-
* or an object with settings for zlib.Gzip()
|
|
736
|
-
*/
|
|
737
|
-
gzip?: boolean | zlib.ZlibOptions | undefined;
|
|
738
|
-
|
|
739
751
|
/**
|
|
740
752
|
* A function that gets called with (path, stat) for each entry being
|
|
741
753
|
* added. Return true to emit the entry from the archive, or false to skip it.
|
tar/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/tar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.12",
|
|
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": "12af6944cac285eaefd8363264b57fc47d3060b01086375fcca3a960b5c7ba48",
|
|
32
|
+
"typeScriptVersion": "4.7"
|
|
33
33
|
}
|