@vltpkg/cli-js 1.1.1 → 1.3.0
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/{access-YYMAAPHV.js → access-HIVJOWXZ.js} +10 -10
- package/{bugs-RK5JBPSC.js → bugs-2KFUYMPS.js} +19 -19
- package/{build-DVJSYCNF.js → build-CX6YZ4LS.js} +12 -12
- package/{cache-JKQNGZ7L.js → cache-I6L5ZRGD.js} +145 -16
- package/cache-unzip-src-unzip.js +2953 -164
- package/{src-MOKZQTH2.js → chunk-263MHLR3.js} +299 -43
- package/{chunk-3LUM7NX5.js → chunk-2HXJ4ZSF.js} +3 -3
- package/{chunk-GDJ7JT2R.js → chunk-33HBY5CF.js} +1 -1
- package/{chunk-MZA6N2TA.js → chunk-C6LK7C3L.js} +4 -4
- package/{chunk-34TE4HZS.js → chunk-CU752KW7.js} +2 -2
- package/{chunk-2PWSMJD7.js → chunk-D2LEK7VS.js} +1 -1
- package/{chunk-CEHPRPGQ.js → chunk-ENSGPOLR.js} +46 -0
- package/{chunk-V4YCZZHY.js → chunk-EP7AVBIO.js} +16 -8
- package/{chunk-DS7YMIHP.js → chunk-FHMIECHI.js} +158 -59
- package/chunk-GDV5LSQ2.js +75 -0
- package/{chunk-BWEH7DHQ.js → chunk-HCZOVC3Y.js} +1 -1
- package/{chunk-CBASIDQH.js → chunk-I6QGYSB4.js} +1 -1
- package/{chunk-KDF7PEBY.js → chunk-ILRJWH6A.js} +5 -5
- package/{chunk-JZJWASXL.js → chunk-J2WL3A3C.js} +134 -68
- package/{chunk-YOE3VZFX.js → chunk-J3R4XWB3.js} +2 -2
- package/{chunk-DF5K4CYR.js → chunk-JFHEXCG5.js} +5 -5
- package/{chunk-LR42WTKN.js → chunk-MJWUULO6.js} +14 -12
- package/{chunk-QQYTPGIL.js → chunk-N4RCKCHY.js} +1 -1
- package/{chunk-X2AWQGYG.js → chunk-P4LLYWCG.js} +112 -23
- package/{chunk-BHJT53TP.js → chunk-PDWPFR5T.js} +1 -1
- package/{chunk-XIF734VO.js → chunk-QETVMIIT.js} +4 -4
- package/{chunk-WE2TQN32.js → chunk-QWJDHBV7.js} +4 -3
- package/{chunk-VFBCWAOC.js → chunk-RH2Y7MPW.js} +29 -0
- package/{chunk-LN2A74PF.js → chunk-SVMH3NDM.js} +277 -50
- package/{chunk-DR4Z63B6.js → chunk-TYLYZKVA.js} +14 -11
- package/{chunk-XKVU23NC.js → chunk-V7EQZOO5.js} +1 -1
- package/{chunk-YBVTY6ZW.js → chunk-VBADA6QU.js} +1 -1
- package/{chunk-GDT6KI4I.js → chunk-W6UMN2YJ.js} +4 -4
- package/{chunk-VE6CCH33.js → chunk-Y5PA7DVK.js} +1 -0
- package/{chunk-6FT6K5YN.js → chunk-YZWFWSY7.js} +25 -7
- package/{chunk-SNOBGFNM.js → chunk-ZNUXDX6R.js} +50 -8
- package/{ci-WVYVR4XK.js → ci-BX54SEU3.js} +12 -12
- package/cli-package.json +3 -2
- package/{config-VYOTYBGS.js → config-HFF6XDCV.js} +9 -9
- package/{config-2MFZVP2N.js → config-WBVJX42R.js} +12 -12
- package/{create-OJPLHBRR.js → create-W67HRHWZ.js} +20 -20
- package/{deprecate-V4PKGFF7.js → deprecate-5T6JTGJ3.js} +14 -14
- package/{devtools-UEMPW5GG.js → devtools-UMJUK42W.js} +2 -2
- package/{dist-tag-DNLV4VDE.js → dist-tag-YIZTS7GF.js} +10 -10
- package/{docs-LXHDCGL5.js → docs-G7CKMPCL.js} +19 -19
- package/{exec-P32YSP44.js → exec-YYCAZZ6Z.js} +20 -20
- package/{exec-cache-JZ5PDTOY.js → exec-cache-6ENHAGC6.js} +18 -18
- package/{exec-local-HHA464H4.js → exec-local-OXG3PSLF.js} +17 -17
- package/{help-GVTTOYUL.js → help-RMOIAILM.js} +4 -4
- package/{init-RENGG74N.js → init-UPEQXC4D.js} +12 -12
- package/{install-V6VXOBH2.js → install-U7LLEQU6.js} +18 -18
- package/{list-7N7Y5OXB.js → list-N6CKPXTK.js} +20 -20
- package/{login-D2QSAUJC.js → login-MCO4ZLVF.js} +14 -14
- package/{logout-QPOYBQNF.js → logout-BJ4QRZYG.js} +10 -10
- package/{pack-4YYGXP3A.js → pack-U6PYRFZ6.js} +13 -13
- package/package.json +1 -1
- package/{ping-QYRIZONU.js → ping-VFB6SCMH.js} +10 -10
- package/{pkg-WQTNABKT.js → pkg-ZNK5SCF4.js} +13 -13
- package/{profile-PRI7WXK7.js → profile-TW32HLYA.js} +10 -10
- package/{publish-PSBYJQS7.js → publish-AHOITWZQ.js} +36 -21
- package/{query-UFYLQW4N.js → query-KKP5PNSQ.js} +20 -20
- package/{registry-YTJZ3AQD.js → registry-VHB65BWD.js} +5 -5
- package/registry-client-src-revalidate.js +5936 -5801
- package/{repo-4S6ETFXX.js → repo-BHTVK5KE.js} +19 -19
- package/{reporter-GLWYHI2Y.js → reporter-VQU7HYKM.js} +77 -77
- package/{run-OU7NUB7A.js → run-UD32OTUJ.js} +17 -17
- package/{run-exec-QPBY7ULE.js → run-exec-NOCIUNGL.js} +17 -17
- package/security-archive-src-update-expired.js +1 -1
- package/{setup-23QXG473.js → setup-PBCWOSTV.js} +18 -18
- package/{src-575IYJOL.js → src-LRKPUV4J.js} +16 -16
- package/src-T5FBZFMV.js +222 -0
- package/{src-3GN7TDNH.js → src-Z44JKVWS.js} +9 -7
- package/{token-FCIA3RGD.js → token-PCPB6NOL.js} +10 -10
- package/{uninstall-BQVZVKB5.js → uninstall-LOGSQXFS.js} +14 -14
- package/{unpublish-YGJ5HEYF.js → unpublish-O3UFCTEJ.js} +10 -10
- package/{update-WCGV66JK.js → update-WBCLWGLN.js} +17 -17
- package/{version-7EA3UQG7.js → version-S3LCB2TQ.js} +13 -13
- package/{view-5FWIENVE.js → view-LMPENVAJ.js} +12 -12
- package/vlr.js +1 -1
- package/vlrx.js +1 -1
- package/vlt.js +1 -1
- package/vlx.js +1 -1
- package/vlxl.js +1 -1
- package/{whoami-O4ZTBIC4.js → whoami-LYMG7R3P.js} +10 -10
- package/chunk-WD74RJXW.js +0 -75
|
@@ -12,36 +12,36 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
ExecCommand,
|
|
14
14
|
views
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ILRJWH6A.js";
|
|
16
16
|
import "./chunk-RIYFGX27.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-2HXJ4ZSF.js";
|
|
18
|
+
import "./chunk-MJWUULO6.js";
|
|
19
|
+
import "./chunk-CU752KW7.js";
|
|
20
20
|
import "./chunk-G2YT2GWF.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-33HBY5CF.js";
|
|
22
22
|
import "./chunk-VTEFO2FT.js";
|
|
23
23
|
import "./chunk-WGDTG44V.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-D2LEK7VS.js";
|
|
25
25
|
import {
|
|
26
26
|
runExec,
|
|
27
27
|
runExecFG
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-J2WL3A3C.js";
|
|
29
|
+
import "./chunk-JFHEXCG5.js";
|
|
30
30
|
import {
|
|
31
31
|
commandUsage
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-I6QGYSB4.js";
|
|
33
|
+
import "./chunk-P4LLYWCG.js";
|
|
34
34
|
import "./chunk-4KCU2KZL.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-J3R4XWB3.js";
|
|
36
|
+
import "./chunk-V7EQZOO5.js";
|
|
37
|
+
import "./chunk-ENSGPOLR.js";
|
|
38
38
|
import "./chunk-HTOTG4TS.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-VBADA6QU.js";
|
|
40
40
|
import "./chunk-U7TEQCBN.js";
|
|
41
|
-
import "./chunk-VFBCWAOC.js";
|
|
42
41
|
import "./chunk-XNLSTHDK.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-PDWPFR5T.js";
|
|
43
|
+
import "./chunk-Y5PA7DVK.js";
|
|
44
|
+
import "./chunk-RH2Y7MPW.js";
|
|
45
45
|
import "./chunk-WZWDS3W4.js";
|
|
46
46
|
import "./chunk-PZLD7RTK.js";
|
|
47
47
|
|
|
@@ -2146,7 +2146,7 @@ var baseDepID = (id) => {
|
|
|
2146
2146
|
var package_default = {
|
|
2147
2147
|
name: "@vltpkg/user-agent",
|
|
2148
2148
|
description: "The User-Agent string that vlt sends with every outbound request",
|
|
2149
|
-
version: "1.
|
|
2149
|
+
version: "1.3.0",
|
|
2150
2150
|
repository: {
|
|
2151
2151
|
type: "git",
|
|
2152
2152
|
url: "git+https://github.com/vltpkg/vltpkg.git",
|
|
@@ -11,47 +11,47 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
stdout
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-MJWUULO6.js";
|
|
15
|
+
import "./chunk-CU752KW7.js";
|
|
16
16
|
import "./chunk-G2YT2GWF.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-33HBY5CF.js";
|
|
18
18
|
import {
|
|
19
19
|
configWriteTarget,
|
|
20
20
|
registrySelectionFields
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-YZWFWSY7.js";
|
|
22
|
+
import "./chunk-SVMH3NDM.js";
|
|
23
23
|
import "./chunk-ZWKI5OSF.js";
|
|
24
24
|
import "./chunk-WGDTG44V.js";
|
|
25
25
|
import {
|
|
26
26
|
normalizeRegistryURL
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-D2LEK7VS.js";
|
|
28
28
|
import {
|
|
29
29
|
commandUsage
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-I6QGYSB4.js";
|
|
31
|
+
import "./chunk-P4LLYWCG.js";
|
|
32
32
|
import "./chunk-4KCU2KZL.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-J3R4XWB3.js";
|
|
34
|
+
import "./chunk-V7EQZOO5.js";
|
|
35
|
+
import "./chunk-ENSGPOLR.js";
|
|
36
36
|
import "./chunk-HTOTG4TS.js";
|
|
37
37
|
import {
|
|
38
38
|
RegistryClient,
|
|
39
39
|
getKC,
|
|
40
40
|
normalizeRegistryKey
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-FHMIECHI.js";
|
|
42
42
|
import "./chunk-APMYKJI2.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-ZNUXDX6R.js";
|
|
44
|
+
import "./chunk-VBADA6QU.js";
|
|
45
45
|
import "./chunk-U7TEQCBN.js";
|
|
46
|
+
import "./chunk-XNLSTHDK.js";
|
|
47
|
+
import "./chunk-PDWPFR5T.js";
|
|
48
|
+
import "./chunk-Y5PA7DVK.js";
|
|
46
49
|
import {
|
|
47
50
|
asError,
|
|
48
51
|
defaultRegistries,
|
|
49
52
|
isErrorWithCause,
|
|
50
53
|
isObject
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-XNLSTHDK.js";
|
|
53
|
-
import "./chunk-BHJT53TP.js";
|
|
54
|
-
import "./chunk-VE6CCH33.js";
|
|
54
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
55
55
|
import {
|
|
56
56
|
error
|
|
57
57
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,42 +11,42 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
loadCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GDV5LSQ2.js";
|
|
15
15
|
import {
|
|
16
16
|
flushAndExit,
|
|
17
17
|
indent,
|
|
18
18
|
outputCommand,
|
|
19
19
|
stderr,
|
|
20
20
|
stdout
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MJWUULO6.js";
|
|
22
22
|
import {
|
|
23
23
|
loadPackageJson
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CU752KW7.js";
|
|
25
25
|
import "./chunk-G2YT2GWF.js";
|
|
26
26
|
import {
|
|
27
27
|
asRootError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-33HBY5CF.js";
|
|
29
29
|
import {
|
|
30
30
|
Config
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-YZWFWSY7.js";
|
|
32
|
+
import "./chunk-SVMH3NDM.js";
|
|
33
33
|
import "./chunk-ZWKI5OSF.js";
|
|
34
34
|
import "./chunk-WGDTG44V.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-D2LEK7VS.js";
|
|
36
|
+
import "./chunk-P4LLYWCG.js";
|
|
37
37
|
import "./chunk-4KCU2KZL.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-J3R4XWB3.js";
|
|
39
|
+
import "./chunk-V7EQZOO5.js";
|
|
40
40
|
import {
|
|
41
41
|
getSortedCliOptions,
|
|
42
42
|
getSortedKeys
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ENSGPOLR.js";
|
|
44
44
|
import "./chunk-HTOTG4TS.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-ZNUXDX6R.js";
|
|
46
46
|
import "./chunk-U7TEQCBN.js";
|
|
47
|
-
import "./chunk-VFBCWAOC.js";
|
|
48
47
|
import "./chunk-XNLSTHDK.js";
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-Y5PA7DVK.js";
|
|
49
|
+
import "./chunk-RH2Y7MPW.js";
|
|
50
50
|
import "./chunk-WZWDS3W4.js";
|
|
51
51
|
import "./chunk-PZLD7RTK.js";
|
|
52
52
|
|
|
@@ -105,7 +105,7 @@ var run = async () => {
|
|
|
105
105
|
}
|
|
106
106
|
if (vlt.command !== "init" && (vlt.get("workspace") || vlt.get("workspace-group")) && ![...monorepo?.values() ?? []].length) {
|
|
107
107
|
stderr(
|
|
108
|
-
`Error: No matching workspaces found. Make sure the vlt.json config contains the correct workspaces.`
|
|
108
|
+
`Error: No matching workspaces found. Make sure the vlt.json config, or the "workspaces" field of the root package.json, contains the correct workspaces.`
|
|
109
109
|
);
|
|
110
110
|
if (vlt.get("workspace")) {
|
|
111
111
|
stderr(indent(`Workspace: ${format(vlt.get("workspace"))}`));
|
|
@@ -120,7 +120,7 @@ var run = async () => {
|
|
|
120
120
|
return flushAndExit(process.exitCode || 1);
|
|
121
121
|
}
|
|
122
122
|
if (vlt.command === "registry") {
|
|
123
|
-
const { dispatchRegistry } = await import("./registry-
|
|
123
|
+
const { dispatchRegistry } = await import("./registry-VHB65BWD.js");
|
|
124
124
|
await dispatchRegistry(vlt);
|
|
125
125
|
}
|
|
126
126
|
const command = await loadCommand(vlt.command);
|
package/src-T5FBZFMV.js
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
var global = globalThis;
|
|
2
|
+
import {Buffer} from "node:buffer";
|
|
3
|
+
import {setTimeout as _vlt_setTimeout,clearTimeout as _vlt_clearTimeout,setImmediate as _vlt_setImmediate,clearImmediate as _vlt_clearImmediate,setInterval as _vlt_setInterval,clearInterval as _vlt_clearInterval} from "node:timers";
|
|
4
|
+
globalThis.setTimeout = _vlt_setTimeout;
|
|
5
|
+
globalThis.clearTimeout = _vlt_clearTimeout;
|
|
6
|
+
globalThis.setImmediate = _vlt_setImmediate;
|
|
7
|
+
globalThis.clearImmediate = _vlt_clearImmediate;
|
|
8
|
+
globalThis.setInterval = _vlt_setInterval;
|
|
9
|
+
globalThis.clearInterval = _vlt_clearInterval;
|
|
10
|
+
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
|
+
var require = _vlt_createRequire(import.meta.filename);
|
|
12
|
+
import {
|
|
13
|
+
markStoreEntryCopied,
|
|
14
|
+
readStoreIndex,
|
|
15
|
+
removeStoreEntry,
|
|
16
|
+
storeCopiedPath,
|
|
17
|
+
storeEntryCopied,
|
|
18
|
+
storeEntryLinked,
|
|
19
|
+
storeEntryNames,
|
|
20
|
+
storeEntryTime,
|
|
21
|
+
storeIndexPath,
|
|
22
|
+
tmpName,
|
|
23
|
+
unpack,
|
|
24
|
+
unpackFileParallel,
|
|
25
|
+
unpackFileSync,
|
|
26
|
+
unpackParallel,
|
|
27
|
+
unpackSync,
|
|
28
|
+
unpackToStoreSync,
|
|
29
|
+
verifyStoreEntry
|
|
30
|
+
} from "./chunk-263MHLR3.js";
|
|
31
|
+
import {
|
|
32
|
+
rimrafSync
|
|
33
|
+
} from "./chunk-PDWPFR5T.js";
|
|
34
|
+
import "./chunk-Y5PA7DVK.js";
|
|
35
|
+
import "./chunk-RH2Y7MPW.js";
|
|
36
|
+
import "./chunk-WZWDS3W4.js";
|
|
37
|
+
import "./chunk-PZLD7RTK.js";
|
|
38
|
+
|
|
39
|
+
// ../../src/tar/src/link-tree.ts
|
|
40
|
+
import {
|
|
41
|
+
chmodSync,
|
|
42
|
+
linkSync,
|
|
43
|
+
lstatSync,
|
|
44
|
+
mkdirSync,
|
|
45
|
+
readFileSync,
|
|
46
|
+
renameSync,
|
|
47
|
+
statSync,
|
|
48
|
+
writeFileSync
|
|
49
|
+
} from "node:fs";
|
|
50
|
+
import { dirname, sep } from "node:path";
|
|
51
|
+
import { debuglog } from "node:util";
|
|
52
|
+
var debug = debuglog("vlt");
|
|
53
|
+
var noThrow = { throwIfNoEntry: false };
|
|
54
|
+
var verify = process.env.VLT_STORE_VERIFY === "1";
|
|
55
|
+
var copyAll = false;
|
|
56
|
+
var downgrade = (code) => {
|
|
57
|
+
copyAll = true;
|
|
58
|
+
debug("global store: linking failed, copying from now on", code);
|
|
59
|
+
};
|
|
60
|
+
var place = (src, dst, exec, copy) => {
|
|
61
|
+
if (!copy && !copyAll) {
|
|
62
|
+
try {
|
|
63
|
+
linkSync(src, dst);
|
|
64
|
+
return true;
|
|
65
|
+
} catch (er) {
|
|
66
|
+
const { code = "" } = er;
|
|
67
|
+
if (code === "ENOENT") {
|
|
68
|
+
if (!lstatSync(src, noThrow)) return false;
|
|
69
|
+
if (!lstatSync(dirname(dst), noThrow)) throw er;
|
|
70
|
+
downgrade(code);
|
|
71
|
+
} else if (code === "EXDEV" || code === "EPERM" || code === "EACCES" || code === "ENOTSUP") {
|
|
72
|
+
downgrade(code);
|
|
73
|
+
} else if (code !== "EMLINK") {
|
|
74
|
+
throw er;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
let body;
|
|
79
|
+
try {
|
|
80
|
+
body = readFileSync(src);
|
|
81
|
+
} catch (er) {
|
|
82
|
+
if (er.code === "ENOENT") return false;
|
|
83
|
+
throw er;
|
|
84
|
+
}
|
|
85
|
+
writeFileSync(dst, body, { mode: exec ? 511 : 438, flag: "wx" });
|
|
86
|
+
if (exec) chmodSync(dst, statSync(src).mode & 511);
|
|
87
|
+
return true;
|
|
88
|
+
};
|
|
89
|
+
var fill = (storeEntry, tmp, index, copy) => {
|
|
90
|
+
const native = sep === "/" ? (p) => p : (p) => p.replaceAll("/", sep);
|
|
91
|
+
const put = ([p, , exec]) => place(
|
|
92
|
+
storeEntry + sep + native(p),
|
|
93
|
+
tmp + sep + native(p),
|
|
94
|
+
exec,
|
|
95
|
+
copy
|
|
96
|
+
);
|
|
97
|
+
try {
|
|
98
|
+
for (const d of index.dirs) mkdirSync(tmp + sep + native(d));
|
|
99
|
+
let pj;
|
|
100
|
+
for (const f of index.files) {
|
|
101
|
+
if (f[0] === "package.json") pj = f;
|
|
102
|
+
else if (!put(f)) return "damaged";
|
|
103
|
+
}
|
|
104
|
+
if (!pj) return;
|
|
105
|
+
if (!put(pj)) return "damaged";
|
|
106
|
+
if (verify && statSync(tmp + sep + pj[0]).size !== pj[1]) {
|
|
107
|
+
return "damaged";
|
|
108
|
+
}
|
|
109
|
+
} catch (er) {
|
|
110
|
+
if (er.code === "EEXIST")
|
|
111
|
+
return "clash";
|
|
112
|
+
throw er;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var linkFromStore = (storeEntry, target, { copy = false } = {}) => {
|
|
116
|
+
const index = readStoreIndex(storeEntry);
|
|
117
|
+
if (!index || !lstatSync(storeEntry, noThrow)?.isDirectory()) {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
const parent = lstatSync(dirname(target), noThrow);
|
|
121
|
+
if (parent?.isSymbolicLink()) return false;
|
|
122
|
+
if (!parent) mkdirSync(dirname(target), { recursive: true });
|
|
123
|
+
const tmp = tmpName(target);
|
|
124
|
+
const og = tmp + ".ORIGINAL";
|
|
125
|
+
let succeeded = false;
|
|
126
|
+
try {
|
|
127
|
+
mkdirSync(tmp);
|
|
128
|
+
const copied = copy || index.scripts;
|
|
129
|
+
const miss = fill(storeEntry, tmp, index, copied);
|
|
130
|
+
if (miss === "clash") {
|
|
131
|
+
debug("global store: name clash in target", storeEntry);
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
if (miss) {
|
|
135
|
+
debug("global store: removing damaged entry", storeEntry);
|
|
136
|
+
try {
|
|
137
|
+
removeStoreEntry(storeEntry);
|
|
138
|
+
} catch {
|
|
139
|
+
}
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
const targetExists = !!lstatSync(target, noThrow);
|
|
143
|
+
if (targetExists) renameSync(target, og);
|
|
144
|
+
renameSync(tmp, target);
|
|
145
|
+
if (targetExists) rimrafSync(og);
|
|
146
|
+
if (copied || copyAll) markStoreEntryCopied(storeEntry);
|
|
147
|
+
succeeded = true;
|
|
148
|
+
return { how: copied || copyAll ? "copy" : "link", index };
|
|
149
|
+
} finally {
|
|
150
|
+
if (!succeeded) {
|
|
151
|
+
if (lstatSync(og, noThrow)) {
|
|
152
|
+
rimrafSync(target);
|
|
153
|
+
renameSync(og, target);
|
|
154
|
+
}
|
|
155
|
+
rimrafSync(tmp);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
// ../../src/tar/src/pool.ts
|
|
161
|
+
import { readFile } from "node:fs/promises";
|
|
162
|
+
var mode = process.env.VLT_TAR_SYNC;
|
|
163
|
+
var Pool = class {
|
|
164
|
+
/**
|
|
165
|
+
* Provide the tardata to be unpacked, and the location where it's to be
|
|
166
|
+
* placed. Resolves when the tarball has been extracted.
|
|
167
|
+
*/
|
|
168
|
+
async unpack(tarData, target, format) {
|
|
169
|
+
if (mode === "0") return unpack(tarData, target, format);
|
|
170
|
+
if (mode === "1") return unpackSync(tarData, target, format);
|
|
171
|
+
return unpackParallel(tarData, target, format);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Same, reading the tarball from a file and skipping `offset` leading
|
|
175
|
+
* bytes, so a cache entry is unpacked without loading it into the
|
|
176
|
+
* registry client's in-memory cache.
|
|
177
|
+
*/
|
|
178
|
+
async unpackFile(file, target, offset = 0, format) {
|
|
179
|
+
if (mode === "0") {
|
|
180
|
+
return unpack(
|
|
181
|
+
(await readFile(file)).subarray(offset),
|
|
182
|
+
target,
|
|
183
|
+
format
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
if (mode === "1") {
|
|
187
|
+
return unpackFileSync(file, target, offset, format);
|
|
188
|
+
}
|
|
189
|
+
return unpackFileParallel(file, target, offset, format);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Hardlink (or copy) a global store entry into `target`. Resolves
|
|
193
|
+
* how, with the index, or false on a store miss. See
|
|
194
|
+
* {@link linkFromStore}.
|
|
195
|
+
*/
|
|
196
|
+
async linkFromStore(storeEntry, target, opts) {
|
|
197
|
+
return linkFromStore(storeEntry, target, opts);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Explode a tarball into `dir` for the global store. See
|
|
201
|
+
* {@link unpackToStoreSync}.
|
|
202
|
+
*/
|
|
203
|
+
async unpackToStore(tarData, dir, format) {
|
|
204
|
+
return unpackToStoreSync(tarData, dir, format);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
export {
|
|
208
|
+
Pool,
|
|
209
|
+
linkFromStore,
|
|
210
|
+
markStoreEntryCopied,
|
|
211
|
+
readStoreIndex,
|
|
212
|
+
removeStoreEntry,
|
|
213
|
+
storeCopiedPath,
|
|
214
|
+
storeEntryCopied,
|
|
215
|
+
storeEntryLinked,
|
|
216
|
+
storeEntryNames,
|
|
217
|
+
storeEntryTime,
|
|
218
|
+
storeIndexPath,
|
|
219
|
+
unpack,
|
|
220
|
+
unpackToStoreSync,
|
|
221
|
+
verifyStoreEntry
|
|
222
|
+
};
|
|
@@ -27,21 +27,22 @@ import {
|
|
|
27
27
|
runtimeTokens,
|
|
28
28
|
setRuntimeToken,
|
|
29
29
|
setToken
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FHMIECHI.js";
|
|
31
31
|
import "./chunk-APMYKJI2.js";
|
|
32
32
|
import {
|
|
33
33
|
assertOk,
|
|
34
34
|
registryErrorMessage,
|
|
35
|
-
requestError
|
|
36
|
-
|
|
35
|
+
requestError,
|
|
36
|
+
storeRoot
|
|
37
|
+
} from "./chunk-ZNUXDX6R.js";
|
|
37
38
|
import {
|
|
38
39
|
userAgent
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VBADA6QU.js";
|
|
40
41
|
import "./chunk-U7TEQCBN.js";
|
|
41
|
-
import "./chunk-VFBCWAOC.js";
|
|
42
42
|
import "./chunk-XNLSTHDK.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-PDWPFR5T.js";
|
|
44
|
+
import "./chunk-Y5PA7DVK.js";
|
|
45
|
+
import "./chunk-RH2Y7MPW.js";
|
|
45
46
|
import "./chunk-WZWDS3W4.js";
|
|
46
47
|
import "./chunk-PZLD7RTK.js";
|
|
47
48
|
export {
|
|
@@ -65,5 +66,6 @@ export {
|
|
|
65
66
|
runtimeTokens,
|
|
66
67
|
setRuntimeToken,
|
|
67
68
|
setToken,
|
|
69
|
+
storeRoot,
|
|
68
70
|
userAgent
|
|
69
71
|
};
|
|
@@ -11,12 +11,12 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
requireRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D2LEK7VS.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-I6QGYSB4.js";
|
|
18
|
+
import "./chunk-V7EQZOO5.js";
|
|
19
|
+
import "./chunk-ENSGPOLR.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient,
|
|
22
22
|
deleteToken,
|
|
@@ -25,15 +25,15 @@ import {
|
|
|
25
25
|
normalizeRegistryKey,
|
|
26
26
|
registryBase,
|
|
27
27
|
setToken
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FHMIECHI.js";
|
|
29
29
|
import "./chunk-APMYKJI2.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-ZNUXDX6R.js";
|
|
31
|
+
import "./chunk-VBADA6QU.js";
|
|
32
32
|
import "./chunk-U7TEQCBN.js";
|
|
33
|
-
import "./chunk-VFBCWAOC.js";
|
|
34
33
|
import "./chunk-XNLSTHDK.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-PDWPFR5T.js";
|
|
35
|
+
import "./chunk-Y5PA7DVK.js";
|
|
36
|
+
import "./chunk-RH2Y7MPW.js";
|
|
37
37
|
import {
|
|
38
38
|
error
|
|
39
39
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,29 +11,29 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
parseRemoveArgs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-QETVMIIT.js";
|
|
15
|
+
import "./chunk-D2LEK7VS.js";
|
|
16
16
|
import {
|
|
17
17
|
uninstall
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-J2WL3A3C.js";
|
|
19
|
+
import "./chunk-JFHEXCG5.js";
|
|
20
20
|
import {
|
|
21
21
|
commandUsage
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-I6QGYSB4.js";
|
|
23
|
+
import "./chunk-P4LLYWCG.js";
|
|
24
24
|
import {
|
|
25
25
|
lazyView
|
|
26
26
|
} from "./chunk-4KCU2KZL.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-J3R4XWB3.js";
|
|
28
|
+
import "./chunk-V7EQZOO5.js";
|
|
29
|
+
import "./chunk-ENSGPOLR.js";
|
|
30
30
|
import "./chunk-HTOTG4TS.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-VBADA6QU.js";
|
|
32
32
|
import "./chunk-U7TEQCBN.js";
|
|
33
|
-
import "./chunk-VFBCWAOC.js";
|
|
34
33
|
import "./chunk-XNLSTHDK.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-PDWPFR5T.js";
|
|
35
|
+
import "./chunk-Y5PA7DVK.js";
|
|
36
|
+
import "./chunk-RH2Y7MPW.js";
|
|
37
37
|
import "./chunk-WZWDS3W4.js";
|
|
38
38
|
import "./chunk-PZLD7RTK.js";
|
|
39
39
|
|
|
@@ -66,7 +66,7 @@ var usage = () => commandUsage({
|
|
|
66
66
|
var views = {
|
|
67
67
|
json: (i) => i.graph.toJSON(),
|
|
68
68
|
human: lazyView(
|
|
69
|
-
async () => (await import("./reporter-
|
|
69
|
+
async () => (await import("./reporter-VQU7HYKM.js")).InstallReporter
|
|
70
70
|
)
|
|
71
71
|
};
|
|
72
72
|
var command = async (conf) => {
|
|
@@ -11,28 +11,28 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
resolveRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D2LEK7VS.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-I6QGYSB4.js";
|
|
18
18
|
import {
|
|
19
19
|
Spec
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-V7EQZOO5.js";
|
|
21
|
+
import "./chunk-ENSGPOLR.js";
|
|
22
22
|
import {
|
|
23
23
|
RegistryClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-FHMIECHI.js";
|
|
25
25
|
import "./chunk-APMYKJI2.js";
|
|
26
26
|
import {
|
|
27
27
|
assertOk,
|
|
28
28
|
requestError
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-ZNUXDX6R.js";
|
|
30
|
+
import "./chunk-VBADA6QU.js";
|
|
31
31
|
import "./chunk-U7TEQCBN.js";
|
|
32
|
-
import "./chunk-VFBCWAOC.js";
|
|
33
32
|
import "./chunk-XNLSTHDK.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-PDWPFR5T.js";
|
|
34
|
+
import "./chunk-Y5PA7DVK.js";
|
|
35
|
+
import "./chunk-RH2Y7MPW.js";
|
|
36
36
|
import {
|
|
37
37
|
error
|
|
38
38
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,35 +11,35 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
planSpecConfigPersist
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-C6LK7C3L.js";
|
|
15
|
+
import "./chunk-YZWFWSY7.js";
|
|
16
|
+
import "./chunk-SVMH3NDM.js";
|
|
17
17
|
import "./chunk-ZWKI5OSF.js";
|
|
18
18
|
import {
|
|
19
19
|
asUnknownSpecPrefix
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D2LEK7VS.js";
|
|
21
21
|
import {
|
|
22
22
|
update
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-J2WL3A3C.js";
|
|
24
|
+
import "./chunk-JFHEXCG5.js";
|
|
25
25
|
import {
|
|
26
26
|
commandUsage
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-I6QGYSB4.js";
|
|
28
|
+
import "./chunk-P4LLYWCG.js";
|
|
29
29
|
import {
|
|
30
30
|
lazyView
|
|
31
31
|
} from "./chunk-4KCU2KZL.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-J3R4XWB3.js";
|
|
33
|
+
import "./chunk-V7EQZOO5.js";
|
|
34
|
+
import "./chunk-ENSGPOLR.js";
|
|
35
35
|
import "./chunk-HTOTG4TS.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-ZNUXDX6R.js";
|
|
37
|
+
import "./chunk-VBADA6QU.js";
|
|
38
38
|
import "./chunk-U7TEQCBN.js";
|
|
39
|
-
import "./chunk-VFBCWAOC.js";
|
|
40
39
|
import "./chunk-XNLSTHDK.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-PDWPFR5T.js";
|
|
41
|
+
import "./chunk-Y5PA7DVK.js";
|
|
42
|
+
import "./chunk-RH2Y7MPW.js";
|
|
43
43
|
import {
|
|
44
44
|
error
|
|
45
45
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -73,7 +73,7 @@ var views = {
|
|
|
73
73
|
...i.persistedConfig ? { persistedConfig: i.persistedConfig } : null
|
|
74
74
|
}),
|
|
75
75
|
human: lazyView(
|
|
76
|
-
async () => (await import("./reporter-
|
|
76
|
+
async () => (await import("./reporter-VQU7HYKM.js")).InstallReporter
|
|
77
77
|
)
|
|
78
78
|
};
|
|
79
79
|
var command = async (conf) => {
|