@types/tar 6.1.5 → 6.1.6
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 +22 -19
- tar/package.json +2 -2
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: Tue,
|
|
11
|
+
* Last updated: Tue, 12 Sep 2023 12:34:30 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
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
/// <reference types="node" />
|
|
8
8
|
|
|
9
|
-
import stream = require(
|
|
10
|
-
import zlib = require(
|
|
11
|
-
import MiniPass = require(
|
|
9
|
+
import stream = require("stream");
|
|
10
|
+
import zlib = require("zlib");
|
|
11
|
+
import MiniPass = require("minipass");
|
|
12
12
|
|
|
13
13
|
// #region Interfaces
|
|
14
14
|
|
|
@@ -101,8 +101,8 @@ export const fieldEnds: number[];
|
|
|
101
101
|
*/
|
|
102
102
|
export const types: {
|
|
103
103
|
0: string;
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
"\0": string;
|
|
105
|
+
"": string;
|
|
106
106
|
1: string;
|
|
107
107
|
2: string;
|
|
108
108
|
3: string;
|
|
@@ -207,16 +207,16 @@ export interface ParseOptions {
|
|
|
207
207
|
* 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
208
|
*/
|
|
209
209
|
export interface Parse extends ParseStream {
|
|
210
|
-
on(event:
|
|
211
|
-
on(event:
|
|
210
|
+
on(event: "end" | "close", listener: () => void): this;
|
|
211
|
+
on(event: "entry", listener: (entry: ReadEntry) => void): this;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export const Parse: {
|
|
215
|
-
new
|
|
215
|
+
new(opt?: ParseOptions): Parse;
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
// #endregion
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
// #region Global Methods
|
|
220
220
|
|
|
221
221
|
export interface PackOptions {
|
|
222
222
|
/**
|
|
@@ -321,9 +321,9 @@ export interface PackOptions {
|
|
|
321
321
|
* The optional properties object are used to set properties in the tar 'Global Extended Header'.
|
|
322
322
|
*/
|
|
323
323
|
export class Pack extends MiniPass {
|
|
324
|
-
linkCache: PackOptions[
|
|
325
|
-
readdirCache: PackOptions[
|
|
326
|
-
statCache: PackOptions[
|
|
324
|
+
linkCache: PackOptions["linkCache"];
|
|
325
|
+
readdirCache: PackOptions["readdirCache"];
|
|
326
|
+
statCache: PackOptions["statCache"];
|
|
327
327
|
|
|
328
328
|
static Sync: typeof PackSync;
|
|
329
329
|
|
|
@@ -527,12 +527,12 @@ export interface ExtractOptions {
|
|
|
527
527
|
/**
|
|
528
528
|
* Alias for newer.
|
|
529
529
|
*/
|
|
530
|
-
|
|
530
|
+
"keep-newer"?: boolean | undefined;
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
* Alias for newer.
|
|
534
534
|
*/
|
|
535
|
-
|
|
535
|
+
"keep-newer-files"?: boolean | undefined;
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
538
|
* Do not overwrite existing files. In particular, if a file appears more
|
|
@@ -548,7 +548,7 @@ export interface ExtractOptions {
|
|
|
548
548
|
/**
|
|
549
549
|
* Alias for keep.
|
|
550
550
|
*/
|
|
551
|
-
|
|
551
|
+
"keep-existing"?: boolean | undefined;
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* Unlink files before creating them. Without this option, tar overwrites
|
|
@@ -568,7 +568,7 @@ export interface ExtractOptions {
|
|
|
568
568
|
/**
|
|
569
569
|
* Alias for strip.
|
|
570
570
|
*/
|
|
571
|
-
|
|
571
|
+
"strip-components"?: number | undefined;
|
|
572
572
|
|
|
573
573
|
/**
|
|
574
574
|
* Alias for strip.
|
|
@@ -613,7 +613,7 @@ export interface ExtractOptions {
|
|
|
613
613
|
*/
|
|
614
614
|
noMtime?: boolean | undefined;
|
|
615
615
|
m?: boolean | undefined;
|
|
616
|
-
|
|
616
|
+
"no-mtime"?: boolean | undefined;
|
|
617
617
|
|
|
618
618
|
/**
|
|
619
619
|
* Provide a function that takes an entry object, and returns a stream,
|
|
@@ -891,7 +891,10 @@ export const x: typeof extract;
|
|
|
891
891
|
* it.
|
|
892
892
|
*/
|
|
893
893
|
export function list(options: ListOptions & RequiredFileOptions, fileList?: ReadonlyArray<string>): Promise<void>;
|
|
894
|
-
export function list(
|
|
894
|
+
export function list(
|
|
895
|
+
options: ListOptions & RequiredFileOptions & { sync: true },
|
|
896
|
+
fileList?: ReadonlyArray<string>,
|
|
897
|
+
): void;
|
|
895
898
|
export function list(callback?: (err?: Error) => void): Parse;
|
|
896
899
|
export function list(optionsOrFileList: ListOptions | ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
|
|
897
900
|
export function list(options: ListOptions, fileList: ReadonlyArray<string>, callback?: (err?: Error) => void): Parse;
|
tar/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/tar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.6",
|
|
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": "
|
|
31
|
+
"typesPublisherContentHash": "4065914f29cd646640ddaebd234ed76cb5ab458fbb475ff60250404bd13f561c",
|
|
32
32
|
"typeScriptVersion": "4.3"
|
|
33
33
|
}
|