@types/tar 6.1.7 → 6.1.9
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 +5 -4
- 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:
|
|
11
|
+
* Last updated: Fri, 10 Nov 2023 22:24:49 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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import stream = require("stream");
|
|
4
4
|
import zlib = require("zlib");
|
|
5
5
|
import MiniPass = require("minipass");
|
|
6
|
+
import fs = require("fs");
|
|
6
7
|
|
|
7
8
|
// #region Interfaces
|
|
8
9
|
|
|
@@ -229,7 +230,7 @@ export interface PackOptions {
|
|
|
229
230
|
*
|
|
230
231
|
* @default process.cwd()
|
|
231
232
|
*/
|
|
232
|
-
cwd?: string
|
|
233
|
+
cwd?: string;
|
|
233
234
|
/**
|
|
234
235
|
* A path portion to prefix onto the entries in the archive.
|
|
235
236
|
*/
|
|
@@ -243,7 +244,7 @@ export interface PackOptions {
|
|
|
243
244
|
* A function that gets called with (path, stat) for each entry being added.
|
|
244
245
|
* Return true to add the entry to the archive, or false to omit it.
|
|
245
246
|
*/
|
|
246
|
-
filter?(path: string, stat:
|
|
247
|
+
filter?(path: string, stat: fs.Stats): boolean;
|
|
247
248
|
/**
|
|
248
249
|
* Omit metadata that is system-specific: ctime, atime, uid, gid, uname,
|
|
249
250
|
* gname, dev, ino, and nlink. Note that mtime is still included, because
|
|
@@ -425,7 +426,7 @@ export interface CreateOptions {
|
|
|
425
426
|
* A function that gets called with (path, stat) for each entry being
|
|
426
427
|
* added. Return true to add the entry to the archive, or false to omit it.
|
|
427
428
|
*/
|
|
428
|
-
filter?(path: string, stat:
|
|
429
|
+
filter?(path: string, stat: fs.Stats): boolean;
|
|
429
430
|
|
|
430
431
|
/**
|
|
431
432
|
* Omit metadata that is system-specific: ctime, atime, uid, gid, uname,
|
|
@@ -739,7 +740,7 @@ export interface ReplaceOptions {
|
|
|
739
740
|
* A function that gets called with (path, stat) for each entry being
|
|
740
741
|
* added. Return true to emit the entry from the archive, or false to skip it.
|
|
741
742
|
*/
|
|
742
|
-
filter?(path: string, stat:
|
|
743
|
+
filter?(path: string, stat: fs.Stats): boolean;
|
|
743
744
|
|
|
744
745
|
/**
|
|
745
746
|
* Allow absolute paths. By default, / is stripped from absolute paths.
|
tar/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/tar",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.9",
|
|
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": "57421c0bc6a3554f6f686c8c82ee376f57b2d8ce46de5a5049d0d05bff0d3e79",
|
|
32
32
|
"typeScriptVersion": "4.5"
|
|
33
33
|
}
|