@unbrained/pm-cli 2026.12.1 → 2026.12.2
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-CWPR234D.js → chunk-7NAO7I75.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YQMQOUO.js → chunk-7V65VACG.js} +52 -52
- package/dist/cli-bundle/chunks/{chunk-NA6D75V5.js → chunk-G6TARHFK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YSVOXCYH.js → chunk-GOEQXVOI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OKEJ4U2I.js → chunk-ROTEELDL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-U7RBJGLF.js → chunk-SDXCJZKB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XME6GIFQ.js → chunk-TKUG2X24.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6GLSAJY.js → chunk-UNBW2LF3.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-V2S4XAX3.js +2 -0
- package/dist/cli-bundle/chunks/{item-transaction-66RDV7PH.js → item-transaction-56J5OCHA.js} +2 -2
- package/dist/cli-bundle/chunks/{linked-resource-value-list-E2DX52LY.js → linked-resource-value-list-ZBIY4H23.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-2F6JUBST.js → register-mutation-EK6DVIQK.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-ET3UKPYK.js → register-operations-6MURXE4V.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-I63QTFCU.js → register-setup-RW26X3GJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SQ72CVUH.js → chunk-3COWDIPX.js} +54 -54
- package/dist/cli-bundle/focused-chunks/{chunk-PT7RT3T6.js → chunk-J72TRWR5.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{item-transaction-2K4SFLJ7.js → item-transaction-LQLQLZE7.js} +2 -2
- package/dist/cli-bundle/main.js +3 -3
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +1 -1
- package/dist/sdk/extension/install-sources.d.ts +2 -2
- package/dist/sdk/extension/install-sources.js +5 -5
- package/marketplace.json +1 -1
- package/node_modules/tar/README.md +1792 -1147
- package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
- package/node_modules/tar/dist/commonjs/bytes.js +83 -0
- package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/codec.js +35 -0
- package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/concat.js +20 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
- package/node_modules/tar/dist/commonjs/create.js +150 -64
- package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
- package/node_modules/tar/dist/commonjs/dealias.js +50 -0
- package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/delete.js +121 -0
- package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
- package/node_modules/tar/dist/commonjs/entries.js +398 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
- package/node_modules/tar/dist/commonjs/extract.js +40 -81
- package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
- package/node_modules/tar/dist/commonjs/fs.js +5 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
- package/node_modules/tar/dist/commonjs/header.js +71 -53
- package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
- package/node_modules/tar/dist/commonjs/index.js +46 -18
- package/node_modules/tar/dist/commonjs/index.min.js +2 -3
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
- package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
- package/node_modules/tar/dist/commonjs/list.js +99 -138
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
- package/node_modules/tar/dist/commonjs/options.js +20 -61
- package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
- package/node_modules/tar/dist/commonjs/pack.js +752 -445
- package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
- package/node_modules/tar/dist/commonjs/parser.js +452 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
- package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/path.js +90 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
- package/node_modules/tar/dist/commonjs/pax.js +67 -36
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
- package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
- package/node_modules/tar/dist/commonjs/read-file.js +104 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
- package/node_modules/tar/dist/commonjs/replace.js +164 -211
- package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
- package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
- package/node_modules/tar/dist/commonjs/server/index.js +166 -0
- package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
- package/node_modules/tar/dist/commonjs/types.js +4 -3
- package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
- package/node_modules/tar/dist/commonjs/unpack.js +780 -725
- package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
- package/node_modules/tar/dist/commonjs/update.js +37 -28
- package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
- package/node_modules/tar/dist/commonjs/warn.js +36 -0
- package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
- package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
- package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
- package/node_modules/tar/dist/esm/bytes.js +72 -0
- package/node_modules/tar/dist/esm/codec.d.ts +53 -0
- package/node_modules/tar/dist/esm/codec.js +32 -0
- package/node_modules/tar/dist/esm/concat.d.ts +3 -0
- package/node_modules/tar/dist/esm/concat.js +16 -0
- package/node_modules/tar/dist/esm/create.d.ts +39 -2
- package/node_modules/tar/dist/esm/create.js +144 -61
- package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
- package/node_modules/tar/dist/esm/dealias.js +46 -0
- package/node_modules/tar/dist/esm/delete.d.ts +19 -0
- package/node_modules/tar/dist/esm/delete.js +117 -0
- package/node_modules/tar/dist/esm/entries.d.ts +82 -0
- package/node_modules/tar/dist/esm/entries.js +388 -0
- package/node_modules/tar/dist/esm/extract.d.ts +14 -2
- package/node_modules/tar/dist/esm/extract.js +37 -44
- package/node_modules/tar/dist/esm/fs.d.ts +201 -0
- package/node_modules/tar/dist/esm/fs.js +4 -0
- package/node_modules/tar/dist/esm/header.d.ts +4 -4
- package/node_modules/tar/dist/esm/header.js +71 -53
- package/node_modules/tar/dist/esm/index.d.ts +25 -18
- package/node_modules/tar/dist/esm/index.js +23 -18
- package/node_modules/tar/dist/esm/index.min.js +2 -3
- package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/esm/large-numbers.js +4 -4
- package/node_modules/tar/dist/esm/list.d.ts +23 -6
- package/node_modules/tar/dist/esm/list.js +96 -101
- package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/esm/mkdir.js +119 -154
- package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/esm/options.d.ts +284 -513
- package/node_modules/tar/dist/esm/options.js +17 -51
- package/node_modules/tar/dist/esm/pack.d.ts +150 -96
- package/node_modules/tar/dist/esm/pack.js +750 -441
- package/node_modules/tar/dist/esm/parser.d.ts +98 -0
- package/node_modules/tar/dist/esm/parser.js +448 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/esm/path-reservations.js +110 -140
- package/node_modules/tar/dist/esm/path.d.ts +19 -0
- package/node_modules/tar/dist/esm/path.js +80 -0
- package/node_modules/tar/dist/esm/pax.d.ts +3 -1
- package/node_modules/tar/dist/esm/pax.js +66 -35
- package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/esm/read-entry.js +248 -96
- package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
- package/node_modules/tar/dist/esm/read-file.js +99 -0
- package/node_modules/tar/dist/esm/replace.d.ts +45 -1
- package/node_modules/tar/dist/esm/replace.js +160 -207
- package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/esm/server/codecs.js +214 -0
- package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
- package/node_modules/tar/dist/esm/server/index.js +102 -0
- package/node_modules/tar/dist/esm/server/index.min.js +3 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/esm/to-stream.js +18 -0
- package/node_modules/tar/dist/esm/types.d.ts +4 -3
- package/node_modules/tar/dist/esm/types.js +4 -3
- package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
- package/node_modules/tar/dist/esm/unpack.js +776 -719
- package/node_modules/tar/dist/esm/update.d.ts +11 -1
- package/node_modules/tar/dist/esm/update.js +35 -28
- package/node_modules/tar/dist/esm/warn.d.ts +27 -0
- package/node_modules/tar/dist/esm/warn.js +31 -0
- package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/esm/win32-path.js +60 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/esm/write-entry.js +107 -633
- package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/esm/write-flag.js +25 -0
- package/node_modules/tar/package.json +68 -224
- package/package.json +2 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-AJLU6KLW.js +0 -2
- package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
- package/node_modules/@isaacs/fs-minipass/README.md +0 -71
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/package.json +0 -72
- package/node_modules/chownr/LICENSE.md +0 -63
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
- package/node_modules/chownr/dist/commonjs/index.js +0 -93
- package/node_modules/chownr/dist/commonjs/package.json +0 -3
- package/node_modules/chownr/dist/esm/index.d.ts +0 -3
- package/node_modules/chownr/dist/esm/index.js +0 -85
- package/node_modules/chownr/dist/esm/package.json +0 -3
- package/node_modules/chownr/package.json +0 -69
- package/node_modules/minipass/LICENSE.md +0 -55
- package/node_modules/minipass/README.md +0 -825
- package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
- package/node_modules/minipass/dist/commonjs/index.js +0 -1038
- package/node_modules/minipass/dist/commonjs/package.json +0 -3
- package/node_modules/minipass/dist/esm/index.d.ts +0 -545
- package/node_modules/minipass/dist/esm/index.js +0 -1020
- package/node_modules/minipass/dist/esm/package.json +0 -3
- package/node_modules/minipass/package.json +0 -77
- package/node_modules/minizlib/LICENSE +0 -26
- package/node_modules/minizlib/README.md +0 -64
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
- package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
- package/node_modules/minizlib/dist/commonjs/index.js +0 -416
- package/node_modules/minizlib/dist/commonjs/package.json +0 -3
- package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/esm/constants.js +0 -117
- package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
- package/node_modules/minizlib/dist/esm/index.js +0 -363
- package/node_modules/minizlib/dist/esm/package.json +0 -3
- package/node_modules/minizlib/package.json +0 -80
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
- package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
- package/node_modules/tar/dist/commonjs/make-command.js +0 -52
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
- package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
- package/node_modules/tar/dist/commonjs/parse.js +0 -655
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
- package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
- package/node_modules/tar/dist/esm/make-command.js +0 -48
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
- package/node_modules/tar/dist/esm/parse.d.ts +0 -92
- package/node_modules/tar/dist/esm/parse.js +0 -651
- package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/esm/process-umask.js +0 -3
- package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/esm/warn-method.js +0 -27
- package/node_modules/yallist/LICENSE.md +0 -63
- package/node_modules/yallist/README.md +0 -205
- package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
- package/node_modules/yallist/dist/commonjs/index.js +0 -384
- package/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/node_modules/yallist/dist/esm/index.d.ts +0 -39
- package/node_modules/yallist/dist/esm/index.js +0 -379
- package/node_modules/yallist/dist/esm/package.json +0 -3
- package/node_modules/yallist/package.json +0 -68
|
@@ -1,101 +1,155 @@
|
|
|
1
|
-
import { type Stats } from 'node:fs';
|
|
2
|
-
import type { MkdirError } from './mkdir.js';
|
|
3
|
-
import { Parser } from './parse.js';
|
|
4
|
-
import type { TarOptions } from './options.js';
|
|
5
|
-
import { PathReservations } from './path-reservations.js';
|
|
6
|
-
import type { ReadEntry } from './read-entry.js';
|
|
7
|
-
import type { WarnData } from './warn-method.js';
|
|
8
1
|
import { SymlinkError } from './symlink-error.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
writable: true;
|
|
42
|
-
readable: false;
|
|
2
|
+
import type { ExtractStats } from './fs.js';
|
|
3
|
+
import { type MkdirOptions } from './mkdir.js';
|
|
4
|
+
import { type ExtractOptions, type ExtractOptionsSync, type ReadOptions, type TarInput, type TarInputSync, type UnpackOptions } from './options.js';
|
|
5
|
+
import type { EntryData, ReadEntry, ReadEntrySync } from './read-entry.js';
|
|
6
|
+
import { type WarnData } from './warn.js';
|
|
7
|
+
import { type OpenConstants } from './write-flag.js';
|
|
8
|
+
/** The options that `UnpackBase` reads. */
|
|
9
|
+
export type UnpackBaseOptions<E extends EntryData> = ReadOptions<E> & UnpackOptions & {
|
|
10
|
+
fs: {
|
|
11
|
+
constants?: OpenConstants;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The parts of the extraction that do not use the file system: the
|
|
16
|
+
* options, the checks of each entry, and the warnings. `Unpack` and
|
|
17
|
+
* `UnpackSync` add the file system work.
|
|
18
|
+
*/
|
|
19
|
+
export declare class UnpackBase<E extends EntryData, O extends UnpackBaseOptions<E> = UnpackBaseOptions<E>> {
|
|
20
|
+
#private;
|
|
21
|
+
/** The options, with no prototype. */
|
|
22
|
+
opt: O;
|
|
23
|
+
/** The absolute path of the extraction directory. */
|
|
24
|
+
cwd: string;
|
|
25
|
+
win32: boolean;
|
|
26
|
+
strip: number;
|
|
27
|
+
maxDepth: number;
|
|
28
|
+
preservePaths: boolean;
|
|
29
|
+
unlink: boolean;
|
|
30
|
+
keep: boolean;
|
|
31
|
+
newer: boolean;
|
|
32
|
+
noMtime: boolean;
|
|
33
|
+
chmod: boolean;
|
|
43
34
|
uid?: number;
|
|
44
35
|
gid?: number;
|
|
45
|
-
setOwner: boolean;
|
|
46
36
|
preserveOwner: boolean;
|
|
47
|
-
processGid?: number;
|
|
48
|
-
processUid?: number;
|
|
49
|
-
maxDepth: number;
|
|
50
37
|
forceChown: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
keep: boolean;
|
|
54
|
-
noMtime: boolean;
|
|
55
|
-
preservePaths: boolean;
|
|
56
|
-
unlink: boolean;
|
|
57
|
-
cwd: string;
|
|
58
|
-
strip: number;
|
|
38
|
+
processUid?: number;
|
|
39
|
+
processGid?: number;
|
|
59
40
|
processUmask: number;
|
|
60
41
|
umask: number;
|
|
61
42
|
dmode: number;
|
|
62
43
|
fmode: number;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
44
|
+
/** Gives the `open` flag for a new file of a given size. */
|
|
45
|
+
writeFlag: (size: number) => string | number;
|
|
46
|
+
/** Resolve a path from an absolute path. */
|
|
47
|
+
resolve: (base: string, path: string) => string;
|
|
48
|
+
/** The parent directory of an absolute path. */
|
|
49
|
+
dirname: (path: string) => string;
|
|
50
|
+
/** Set when an error stops the extraction. */
|
|
51
|
+
fatal?: {
|
|
52
|
+
error: unknown;
|
|
53
|
+
};
|
|
54
|
+
constructor(options: O);
|
|
55
|
+
/**
|
|
56
|
+
* Report a problem to `onwarn`, or throw it if `strict` is set. A
|
|
57
|
+
* damaged archive is always an error here, because the extraction
|
|
58
|
+
* cannot be complete.
|
|
59
|
+
*/
|
|
60
|
+
warn(code: string, message: string | Error, data?: WarnData): void;
|
|
61
|
+
/** The options for the reader. Its warnings go to `warn()`. */
|
|
62
|
+
readerOptions(): ReadOptions<E>;
|
|
63
|
+
/**
|
|
64
|
+
* Report the failure of one entry as a `TAR_ENTRY_ERROR` warning.
|
|
65
|
+
* Throws the error if it stops the extraction: the extraction
|
|
66
|
+
* directory is not usable, the archive cannot be read, or `strict`
|
|
67
|
+
* is set.
|
|
68
|
+
*/
|
|
69
|
+
entryError(er: unknown, entry: E): void;
|
|
70
|
+
/** Record the error that stops the extraction. Returns it. */
|
|
71
|
+
fail(error: unknown): unknown;
|
|
72
|
+
/**
|
|
73
|
+
* Check the entry, with no use of the file system. Set its
|
|
74
|
+
* `absolute` path, and change its `path`, `linkpath`, and `mode` to
|
|
75
|
+
* the values to extract. False if the entry must not be extracted.
|
|
76
|
+
*/
|
|
77
|
+
check(entry: E): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The paths that the entry must have for itself while it is made.
|
|
80
|
+
* A link also reserves its target, so that an entry that makes the
|
|
81
|
+
* target, and an entry that goes through the link, do not run at
|
|
82
|
+
* the same time as the link.
|
|
83
|
+
*/
|
|
84
|
+
reservedPaths(entry: E): string[];
|
|
85
|
+
/** The options to make a directory with a mode. */
|
|
86
|
+
mkdirOptions(mode: number): MkdirOptions;
|
|
87
|
+
/**
|
|
88
|
+
* The owner to set on the entry, if it needs one: with
|
|
89
|
+
* `preserveOwner`, when the owner in the archive is not the process
|
|
90
|
+
* owner, and with `uid` and `gid`, when they are not the process
|
|
91
|
+
* owner.
|
|
92
|
+
*/
|
|
93
|
+
owner(entry: E): {
|
|
94
|
+
uid: number;
|
|
95
|
+
gid: number;
|
|
96
|
+
} | undefined;
|
|
97
|
+
/** The times to set on the entry, if it needs them. */
|
|
98
|
+
times(entry: E): {
|
|
99
|
+
atime: Date;
|
|
100
|
+
mtime: Date;
|
|
101
|
+
} | undefined;
|
|
102
|
+
/** True if the object on disk at the path of the entry must stay. */
|
|
103
|
+
skip(entry: E, st: ExtractStats): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* True if the entry can be written into the file that is on disk.
|
|
106
|
+
* A file with more than one link is not used, because the write
|
|
107
|
+
* would change the other links. Windows does not report a useful
|
|
108
|
+
* link count.
|
|
109
|
+
*/
|
|
110
|
+
isReusable(entry: E, st: ExtractStats): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The parts of the path from the extraction directory to the
|
|
113
|
+
* target of a link entry. None of them can be a symbolic link.
|
|
114
|
+
*/
|
|
115
|
+
linkParts(entry: E, absolute: string): string[];
|
|
116
|
+
/**
|
|
117
|
+
* The parts of the path from the extraction directory to the
|
|
118
|
+
* parent directory of an entry. The extraction checks them again
|
|
119
|
+
* after it makes the entry: none of them can be a symbolic link
|
|
120
|
+
* then. So a directory that another process replaced with a
|
|
121
|
+
* symbolic link during the extraction is an error of the entry.
|
|
122
|
+
*/
|
|
123
|
+
parentParts(absolute: string): string[];
|
|
124
|
+
/** The error for a link target that goes through a symbolic link. */
|
|
125
|
+
symlinkError(symlink: string, parts: string[]): SymlinkError;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Extracts the entries of an archive with async file system
|
|
129
|
+
* functions.
|
|
130
|
+
*
|
|
131
|
+
* Several entries are extracted at one time. Entries that use the
|
|
132
|
+
* same path, or a path and a directory above it, are extracted in
|
|
133
|
+
* the order of the archive.
|
|
134
|
+
*/
|
|
135
|
+
export declare class Unpack extends UnpackBase<ReadEntry, ExtractOptions> {
|
|
136
|
+
#private;
|
|
137
|
+
constructor(opt: ExtractOptions);
|
|
138
|
+
/**
|
|
139
|
+
* Extract the archive. The promise settles when all the file
|
|
140
|
+
* system work is done. It rejects with the first error that stops
|
|
141
|
+
* the extraction.
|
|
142
|
+
*/
|
|
143
|
+
extract(input: TarInput): Promise<void>;
|
|
89
144
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
145
|
+
/**
|
|
146
|
+
* Extracts the entries of an archive with sync file system
|
|
147
|
+
* functions, one entry at a time.
|
|
148
|
+
*/
|
|
149
|
+
export declare class UnpackSync extends UnpackBase<ReadEntrySync, ExtractOptionsSync> {
|
|
150
|
+
#private;
|
|
151
|
+
constructor(opt: ExtractOptionsSync);
|
|
152
|
+
/** Extract the archive. Throws the first error that stops it. */
|
|
153
|
+
extract(input: TarInputSync): void;
|
|
99
154
|
}
|
|
100
|
-
export {};
|
|
101
155
|
//# sourceMappingURL=unpack.d.ts.map
|