@types/tar 6.1.5 → 6.1.7
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/LICENSE +0 -0
- tar/README.md +2 -3
- tar/index.d.ts +22 -25
- tar/package.json +7 -7
tar/LICENSE
CHANGED
|
File without changes
|
tar/README.md
CHANGED
|
@@ -8,9 +8,8 @@ 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:
|
|
12
|
-
* Dependencies: [@types/
|
|
13
|
-
* Global values: none
|
|
11
|
+
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
|
|
12
|
+
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [minipass](https://npmjs.com/package/minipass)
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), and [Connor Peet](https://github.com/connor4312).
|
tar/index.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
// Type definitions for tar 6.1
|
|
2
|
-
// Project: https://github.com/npm/node-tar
|
|
3
|
-
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>, Connor Peet <https://github.com/connor4312>
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
-
// TODO: When/if typings for [fstream](https://github.com/npm/fstream) are written, refactor this typing to use it for the various streams.
|
|
6
|
-
|
|
7
1
|
/// <reference types="node" />
|
|
8
2
|
|
|
9
|
-
import stream = require(
|
|
10
|
-
import zlib = require(
|
|
11
|
-
import MiniPass = require(
|
|
3
|
+
import stream = require("stream");
|
|
4
|
+
import zlib = require("zlib");
|
|
5
|
+
import MiniPass = require("minipass");
|
|
12
6
|
|
|
13
7
|
// #region Interfaces
|
|
14
8
|
|
|
@@ -101,8 +95,8 @@ export const fieldEnds: number[];
|
|
|
101
95
|
*/
|
|
102
96
|
export const types: {
|
|
103
97
|
0: string;
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
"\0": string;
|
|
99
|
+
"": string;
|
|
106
100
|
1: string;
|
|
107
101
|
2: string;
|
|
108
102
|
3: string;
|
|
@@ -207,16 +201,16 @@ export interface ParseOptions {
|
|
|
207
201
|
* A writable stream. Write tar data to it and it will emit entry events for each entry parsed from the tarball. This is used by tar.Extract.
|
|
208
202
|
*/
|
|
209
203
|
export interface Parse extends ParseStream {
|
|
210
|
-
on(event:
|
|
211
|
-
on(event:
|
|
204
|
+
on(event: "end" | "close", listener: () => void): this;
|
|
205
|
+
on(event: "entry", listener: (entry: ReadEntry) => void): this;
|
|
212
206
|
}
|
|
213
207
|
|
|
214
208
|
export const Parse: {
|
|
215
|
-
new
|
|
209
|
+
new(opt?: ParseOptions): Parse;
|
|
216
210
|
};
|
|
217
|
-
|
|
211
|
+
// #endregion
|
|
218
212
|
|
|
219
|
-
|
|
213
|
+
// #region Global Methods
|
|
220
214
|
|
|
221
215
|
export interface PackOptions {
|
|
222
216
|
/**
|
|
@@ -321,9 +315,9 @@ export interface PackOptions {
|
|
|
321
315
|
* The optional properties object are used to set properties in the tar 'Global Extended Header'.
|
|
322
316
|
*/
|
|
323
317
|
export class Pack extends MiniPass {
|
|
324
|
-
linkCache: PackOptions[
|
|
325
|
-
readdirCache: PackOptions[
|
|
326
|
-
statCache: PackOptions[
|
|
318
|
+
linkCache: PackOptions["linkCache"];
|
|
319
|
+
readdirCache: PackOptions["readdirCache"];
|
|
320
|
+
statCache: PackOptions["statCache"];
|
|
327
321
|
|
|
328
322
|
static Sync: typeof PackSync;
|
|
329
323
|
|
|
@@ -527,12 +521,12 @@ export interface ExtractOptions {
|
|
|
527
521
|
/**
|
|
528
522
|
* Alias for newer.
|
|
529
523
|
*/
|
|
530
|
-
|
|
524
|
+
"keep-newer"?: boolean | undefined;
|
|
531
525
|
|
|
532
526
|
/**
|
|
533
527
|
* Alias for newer.
|
|
534
528
|
*/
|
|
535
|
-
|
|
529
|
+
"keep-newer-files"?: boolean | undefined;
|
|
536
530
|
|
|
537
531
|
/**
|
|
538
532
|
* Do not overwrite existing files. In particular, if a file appears more
|
|
@@ -548,7 +542,7 @@ export interface ExtractOptions {
|
|
|
548
542
|
/**
|
|
549
543
|
* Alias for keep.
|
|
550
544
|
*/
|
|
551
|
-
|
|
545
|
+
"keep-existing"?: boolean | undefined;
|
|
552
546
|
|
|
553
547
|
/**
|
|
554
548
|
* Unlink files before creating them. Without this option, tar overwrites
|
|
@@ -568,7 +562,7 @@ export interface ExtractOptions {
|
|
|
568
562
|
/**
|
|
569
563
|
* Alias for strip.
|
|
570
564
|
*/
|
|
571
|
-
|
|
565
|
+
"strip-components"?: number | undefined;
|
|
572
566
|
|
|
573
567
|
/**
|
|
574
568
|
* Alias for strip.
|
|
@@ -613,7 +607,7 @@ export interface ExtractOptions {
|
|
|
613
607
|
*/
|
|
614
608
|
noMtime?: boolean | undefined;
|
|
615
609
|
m?: boolean | undefined;
|
|
616
|
-
|
|
610
|
+
"no-mtime"?: boolean | undefined;
|
|
617
611
|
|
|
618
612
|
/**
|
|
619
613
|
* Provide a function that takes an entry object, and returns a stream,
|
|
@@ -891,7 +885,10 @@ export const x: typeof extract;
|
|
|
891
885
|
* it.
|
|
892
886
|
*/
|
|
893
887
|
export function list(options: ListOptions & RequiredFileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
|
|
894
|
-
export function list(
|
|
888
|
+
export function list(
|
|
889
|
+
options: ListOptions & RequiredFileOptions & { sync: true },
|
|
890
|
+
fileList?: ReadonlyArray<string>,
|
|
891
|
+
): void;
|
|
895
892
|
export function list(callback?: (err?: Error) => void): Parse;
|
|
896
893
|
export function list(optionsOrFileList: ListOptions | ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
|
|
897
894
|
export function list(options: ListOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
|
tar/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/tar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.7",
|
|
4
4
|
"description": "TypeScript definitions for tar",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "Maxime LUCE",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "SomaticIT",
|
|
11
|
+
"url": "https://github.com/SomaticIT"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "Connor Peet",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "connor4312",
|
|
16
|
+
"url": "https://github.com/connor4312"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"main": "",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"@types/node": "*",
|
|
29
29
|
"minipass": "^4.0.0"
|
|
30
30
|
},
|
|
31
|
-
"typesPublisherContentHash": "
|
|
32
|
-
"typeScriptVersion": "4.
|
|
31
|
+
"typesPublisherContentHash": "622fa856702b962bf64cc49a8a80919a93a24c27b13b44655a8d3a6b9f5de6df",
|
|
32
|
+
"typeScriptVersion": "4.5"
|
|
33
33
|
}
|