@vltpkg/cli-js 1.2.0 → 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-FTHPFPUJ.js → access-HIVJOWXZ.js} +10 -10
- package/{bugs-QS6HQUO2.js → bugs-2KFUYMPS.js} +19 -19
- package/{build-H27SXMAS.js → build-CX6YZ4LS.js} +11 -11
- package/{cache-IB4HMFDT.js → cache-I6L5ZRGD.js} +15 -15
- package/cache-unzip-src-unzip.js +31 -12
- package/{chunk-QA6RE2GS.js → chunk-263MHLR3.js} +57 -22
- package/{chunk-YFNQ6HZ3.js → chunk-2HXJ4ZSF.js} +3 -3
- package/{chunk-YTT3UHUB.js → chunk-33HBY5CF.js} +1 -1
- package/{chunk-LD4BQJBG.js → chunk-C6LK7C3L.js} +4 -4
- package/{chunk-GUATFMMU.js → chunk-CU752KW7.js} +1 -1
- package/{chunk-O44Z6MAV.js → chunk-D2LEK7VS.js} +1 -1
- package/{chunk-6A3XS52F.js → chunk-ENSGPOLR.js} +13 -0
- package/{chunk-7KFMQ3BR.js → chunk-EP7AVBIO.js} +5 -5
- package/{chunk-OE6VHHN4.js → chunk-FHMIECHI.js} +27 -27
- package/chunk-GDV5LSQ2.js +75 -0
- package/{chunk-3CUFJPBK.js → chunk-HCZOVC3Y.js} +1 -1
- package/{chunk-55DYW2MP.js → chunk-I6QGYSB4.js} +1 -1
- package/{chunk-LEGPLJWK.js → chunk-ILRJWH6A.js} +5 -5
- package/{chunk-B2FK2HHL.js → chunk-J2WL3A3C.js} +62 -17
- package/{chunk-SYGF27W7.js → chunk-J3R4XWB3.js} +2 -2
- package/{chunk-FOJCK57G.js → chunk-JFHEXCG5.js} +3 -3
- package/{chunk-UNWQVOLY.js → chunk-MJWUULO6.js} +6 -6
- package/{chunk-VHHLO5L6.js → chunk-N4RCKCHY.js} +1 -1
- package/{chunk-6G7MTZGS.js → chunk-P4LLYWCG.js} +110 -21
- package/{chunk-BHJT53TP.js → chunk-PDWPFR5T.js} +1 -1
- package/{chunk-LKQ5R4VX.js → chunk-QETVMIIT.js} +4 -4
- package/{chunk-5PP77V44.js → chunk-QWJDHBV7.js} +4 -3
- package/{chunk-G5BSQ6DP.js → chunk-RH2Y7MPW.js} +22 -0
- package/{chunk-5YB6UIC3.js → chunk-SVMH3NDM.js} +40 -23
- package/{chunk-NJZSCUD4.js → chunk-TYLYZKVA.js} +14 -11
- package/{chunk-G5NJ7CYI.js → chunk-V7EQZOO5.js} +1 -1
- package/{chunk-JTUZP2OD.js → chunk-VBADA6QU.js} +1 -1
- package/{chunk-FSZF2RSQ.js → chunk-W6UMN2YJ.js} +4 -4
- package/{chunk-VE6CCH33.js → chunk-Y5PA7DVK.js} +1 -0
- package/{chunk-5BD4QGW2.js → chunk-YZWFWSY7.js} +6 -6
- package/{chunk-UQUIO7LW.js → chunk-ZNUXDX6R.js} +4 -3
- package/{ci-XJBYXFFJ.js → ci-BX54SEU3.js} +12 -12
- package/cli-package.json +2 -2
- package/{config-4Y46SH5K.js → config-HFF6XDCV.js} +9 -9
- package/{config-H2Q4ABSS.js → config-WBVJX42R.js} +11 -11
- package/{create-LUYL2QI4.js → create-W67HRHWZ.js} +20 -20
- package/{deprecate-5ANCI2L6.js → deprecate-5T6JTGJ3.js} +13 -13
- package/{devtools-UEMPW5GG.js → devtools-UMJUK42W.js} +2 -2
- package/{dist-tag-SD2CRWIL.js → dist-tag-YIZTS7GF.js} +10 -10
- package/{docs-B6LVNWTP.js → docs-G7CKMPCL.js} +19 -19
- package/{exec-CJ5KQA72.js → exec-YYCAZZ6Z.js} +20 -20
- package/{exec-cache-EE7DAOW2.js → exec-cache-6ENHAGC6.js} +18 -18
- package/{exec-local-HT3VBN6S.js → exec-local-OXG3PSLF.js} +17 -17
- package/{help-GZ44WYDS.js → help-RMOIAILM.js} +4 -4
- package/{init-HVXRXFVY.js → init-UPEQXC4D.js} +12 -12
- package/{install-E2C7EE6P.js → install-U7LLEQU6.js} +18 -18
- package/{list-V4V6SHJP.js → list-N6CKPXTK.js} +20 -20
- package/{login-VRFV7MCE.js → login-MCO4ZLVF.js} +14 -14
- package/{logout-SU75R7BN.js → logout-BJ4QRZYG.js} +10 -10
- package/{pack-IVGKUXTL.js → pack-U6PYRFZ6.js} +13 -13
- package/package.json +1 -1
- package/{ping-WB222SDT.js → ping-VFB6SCMH.js} +10 -10
- package/{pkg-LAAFNONA.js → pkg-ZNK5SCF4.js} +13 -13
- package/{profile-P3AVHRDI.js → profile-TW32HLYA.js} +10 -10
- package/{publish-IUNB3KH5.js → publish-AHOITWZQ.js} +36 -21
- package/{query-XCN55INS.js → query-KKP5PNSQ.js} +20 -20
- package/{registry-QQLWJHJI.js → registry-VHB65BWD.js} +5 -5
- package/registry-client-src-revalidate.js +25 -26
- package/{repo-BQDWUCX5.js → repo-BHTVK5KE.js} +19 -19
- package/{reporter-5BVUNWQ6.js → reporter-VQU7HYKM.js} +75 -75
- package/{run-QT7DX243.js → run-UD32OTUJ.js} +17 -17
- package/{run-exec-XYUI7GLN.js → run-exec-NOCIUNGL.js} +17 -17
- package/security-archive-src-update-expired.js +1 -1
- package/{setup-CXDJXRAG.js → setup-PBCWOSTV.js} +17 -17
- package/{src-UBAERP25.js → src-LRKPUV4J.js} +16 -16
- package/{src-OKMGXMAD.js → src-T5FBZFMV.js} +24 -14
- package/{src-2BUT4WYP.js → src-Z44JKVWS.js} +6 -6
- package/{token-CBOK6DMT.js → token-PCPB6NOL.js} +10 -10
- package/{uninstall-27VP46KJ.js → uninstall-LOGSQXFS.js} +14 -14
- package/{unpublish-F4637OQX.js → unpublish-O3UFCTEJ.js} +10 -10
- package/{update-NGWLJJ22.js → update-WBCLWGLN.js} +17 -17
- package/{version-WPD2KNVC.js → version-S3LCB2TQ.js} +12 -12
- package/{view-YKFTRRPD.js → view-LMPENVAJ.js} +11 -11
- 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-I5Q6RTAP.js → whoami-LYMG7R3P.js} +10 -10
- package/chunk-SPRVRSEL.js +0 -75
|
@@ -11,25 +11,25 @@ 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-
|
|
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
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FHMIECHI.js";
|
|
23
23
|
import "./chunk-APMYKJI2.js";
|
|
24
24
|
import {
|
|
25
25
|
assertOk
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-ZNUXDX6R.js";
|
|
27
|
+
import "./chunk-VBADA6QU.js";
|
|
28
28
|
import "./chunk-U7TEQCBN.js";
|
|
29
29
|
import "./chunk-XNLSTHDK.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-PDWPFR5T.js";
|
|
31
|
+
import "./chunk-Y5PA7DVK.js";
|
|
32
|
+
import "./chunk-RH2Y7MPW.js";
|
|
33
33
|
import {
|
|
34
34
|
error
|
|
35
35
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -14,46 +14,46 @@ import {
|
|
|
14
14
|
} from "./chunk-CLVRCGOZ.js";
|
|
15
15
|
import {
|
|
16
16
|
openUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HCZOVC3Y.js";
|
|
18
18
|
import {
|
|
19
19
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-2HXJ4ZSF.js";
|
|
21
|
+
import "./chunk-MJWUULO6.js";
|
|
22
|
+
import "./chunk-CU752KW7.js";
|
|
23
23
|
import "./chunk-G2YT2GWF.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-33HBY5CF.js";
|
|
25
25
|
import {
|
|
26
26
|
PackageInfoClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SVMH3NDM.js";
|
|
28
28
|
import "./chunk-ZWKI5OSF.js";
|
|
29
29
|
import "./chunk-WGDTG44V.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-D2LEK7VS.js";
|
|
31
31
|
import {
|
|
32
32
|
Query,
|
|
33
33
|
actual
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-J2WL3A3C.js";
|
|
35
35
|
import {
|
|
36
36
|
SecurityArchive
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-JFHEXCG5.js";
|
|
38
38
|
import {
|
|
39
39
|
commandUsage
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-I6QGYSB4.js";
|
|
41
|
+
import "./chunk-P4LLYWCG.js";
|
|
42
42
|
import "./chunk-4KCU2KZL.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-J3R4XWB3.js";
|
|
44
44
|
import {
|
|
45
45
|
Spec
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-V7EQZOO5.js";
|
|
47
|
+
import "./chunk-ENSGPOLR.js";
|
|
48
48
|
import "./chunk-HTOTG4TS.js";
|
|
49
49
|
import "./chunk-APMYKJI2.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-ZNUXDX6R.js";
|
|
51
|
+
import "./chunk-VBADA6QU.js";
|
|
52
52
|
import "./chunk-U7TEQCBN.js";
|
|
53
53
|
import "./chunk-XNLSTHDK.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-PDWPFR5T.js";
|
|
55
|
+
import "./chunk-Y5PA7DVK.js";
|
|
56
|
+
import "./chunk-RH2Y7MPW.js";
|
|
57
57
|
import {
|
|
58
58
|
error
|
|
59
59
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,24 +11,24 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
build
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-J2WL3A3C.js";
|
|
15
|
+
import "./chunk-JFHEXCG5.js";
|
|
16
16
|
import {
|
|
17
17
|
commandUsage
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-I6QGYSB4.js";
|
|
19
|
+
import "./chunk-P4LLYWCG.js";
|
|
20
|
+
import "./chunk-J3R4XWB3.js";
|
|
21
|
+
import "./chunk-V7EQZOO5.js";
|
|
22
|
+
import "./chunk-ENSGPOLR.js";
|
|
23
23
|
import "./chunk-HTOTG4TS.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VBADA6QU.js";
|
|
25
25
|
import "./chunk-U7TEQCBN.js";
|
|
26
26
|
import "./chunk-XNLSTHDK.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-PDWPFR5T.js";
|
|
28
|
+
import "./chunk-Y5PA7DVK.js";
|
|
29
29
|
import {
|
|
30
30
|
isErrorWithCause
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
32
32
|
import {
|
|
33
33
|
error
|
|
34
34
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -15,31 +15,31 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
stderr,
|
|
17
17
|
stdout
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./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-WGDTG44V.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-D2LEK7VS.js";
|
|
24
24
|
import {
|
|
25
25
|
commandUsage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-I6QGYSB4.js";
|
|
27
27
|
import {
|
|
28
28
|
ViewClass
|
|
29
29
|
} from "./chunk-4KCU2KZL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-J3R4XWB3.js";
|
|
31
31
|
import {
|
|
32
32
|
Spec
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-V7EQZOO5.js";
|
|
34
|
+
import "./chunk-ENSGPOLR.js";
|
|
35
35
|
import {
|
|
36
36
|
CacheEntry
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FHMIECHI.js";
|
|
38
38
|
import "./chunk-APMYKJI2.js";
|
|
39
39
|
import {
|
|
40
40
|
assertOk
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-ZNUXDX6R.js";
|
|
42
|
+
import "./chunk-VBADA6QU.js";
|
|
43
43
|
import "./chunk-U7TEQCBN.js";
|
|
44
44
|
import "./chunk-XNLSTHDK.js";
|
|
45
45
|
import {
|
|
@@ -50,12 +50,12 @@ import {
|
|
|
50
50
|
storeEntryNames,
|
|
51
51
|
storeEntryTime,
|
|
52
52
|
verifyStoreEntry
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-263MHLR3.js";
|
|
54
|
+
import "./chunk-PDWPFR5T.js";
|
|
55
|
+
import "./chunk-Y5PA7DVK.js";
|
|
56
56
|
import {
|
|
57
57
|
integrityHex
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
59
59
|
import {
|
|
60
60
|
error
|
|
61
61
|
} from "./chunk-WZWDS3W4.js";
|
package/cache-unzip-src-unzip.js
CHANGED
|
@@ -1762,6 +1762,11 @@ var normalizeBinPaths = (manifest) => {
|
|
|
1762
1762
|
var integrityRE = /^sha512-[a-zA-Z0-9/+]{86}==$/;
|
|
1763
1763
|
var isIntegrity = (i) => typeof i === "string" && integrityRE.test(i);
|
|
1764
1764
|
var integrityHex = (i) => isIntegrity(i) ? Buffer.from(i.slice(7), "base64").toString("hex") : void 0;
|
|
1765
|
+
var BROTLI_TARBALL_EXT = ".tar.br";
|
|
1766
|
+
var tarballFormat = (url) => {
|
|
1767
|
+
const end = /[?#]/.exec(url)?.index ?? url.length;
|
|
1768
|
+
return url.endsWith(BROTLI_TARBALL_EXT, end) ? "brotli" : void 0;
|
|
1769
|
+
};
|
|
1765
1770
|
var asError = (er, fallbackMessage = "Unknown error") => er instanceof Error ? er : new Error(String(er) || fallbackMessage);
|
|
1766
1771
|
var isObject = (v2) => !!v2 && typeof v2 === "object" && (v2.constructor === Object || v2.constructor === void 0);
|
|
1767
1772
|
var maybeRecordStringString = (o) => o === void 0 || isRecordStringString(o);
|
|
@@ -6889,7 +6894,12 @@ var parseKVLine = (set, line) => {
|
|
|
6889
6894
|
};
|
|
6890
6895
|
|
|
6891
6896
|
// ../../src/tar/src/unpack.ts
|
|
6892
|
-
import {
|
|
6897
|
+
import {
|
|
6898
|
+
brotliDecompress as brotliCB,
|
|
6899
|
+
brotliDecompressSync as brotliSyncCB,
|
|
6900
|
+
unzip as unzipCB,
|
|
6901
|
+
unzipSync as unzipSyncCB
|
|
6902
|
+
} from "node:zlib";
|
|
6893
6903
|
|
|
6894
6904
|
// ../../src/tar/src/find-tar-dir.ts
|
|
6895
6905
|
var findTarDir = (path, tarDir) => {
|
|
@@ -6928,6 +6938,16 @@ var unzipSync = (input) => {
|
|
|
6928
6938
|
throw unzipError(er, input.length, max);
|
|
6929
6939
|
}
|
|
6930
6940
|
};
|
|
6941
|
+
var isGzip = (b) => b[0] === 31 && b[1] === 139;
|
|
6942
|
+
var brotliSync = (input) => {
|
|
6943
|
+
const max = unzipMax(input.length);
|
|
6944
|
+
try {
|
|
6945
|
+
return brotliSyncCB(input, { maxOutputLength: max });
|
|
6946
|
+
} catch (er) {
|
|
6947
|
+
throw unzipError(er, input.length, max);
|
|
6948
|
+
}
|
|
6949
|
+
};
|
|
6950
|
+
var decompressSync = (input, format) => format === "brotli" ? brotliSync(input) : isGzip(input) ? unzipSync(input) : input;
|
|
6931
6951
|
var tmp = randomBytes2(6).toString("hex") + ".";
|
|
6932
6952
|
var foldKeys = process.platform === "darwin" || process.platform === "win32";
|
|
6933
6953
|
var entryKey = (p) => foldKeys ? p.toLowerCase() : p;
|
|
@@ -6975,10 +6995,9 @@ var checkFs = (h, tarDir, target) => {
|
|
|
6975
6995
|
return true;
|
|
6976
6996
|
};
|
|
6977
6997
|
var parseTarball = (buffer, tmp2) => {
|
|
6978
|
-
|
|
6979
|
-
if (isGzip) {
|
|
6998
|
+
if (isGzip(buffer)) {
|
|
6980
6999
|
throw error("still gzipped after unzipping", {
|
|
6981
|
-
found:
|
|
7000
|
+
found: true,
|
|
6982
7001
|
wanted: false
|
|
6983
7002
|
});
|
|
6984
7003
|
}
|
|
@@ -7081,10 +7100,9 @@ var parseTarball = (buffer, tmp2) => {
|
|
|
7081
7100
|
}
|
|
7082
7101
|
return { dirs, files };
|
|
7083
7102
|
};
|
|
7084
|
-
var storeLayout = (tarData, dir) => {
|
|
7085
|
-
const isGzip = tarData[0] === 31 && tarData[1] === 139;
|
|
7103
|
+
var storeLayout = (tarData, dir, format) => {
|
|
7086
7104
|
const { dirs, files } = parseTarball(
|
|
7087
|
-
|
|
7105
|
+
decompressSync(tarData, format),
|
|
7088
7106
|
dir
|
|
7089
7107
|
);
|
|
7090
7108
|
const rel = (p) => relative(dir, p).replace(/\\/g, "/");
|
|
@@ -7126,8 +7144,8 @@ var storeLayout = (tarData, dir) => {
|
|
|
7126
7144
|
binFiles
|
|
7127
7145
|
};
|
|
7128
7146
|
};
|
|
7129
|
-
var unpackToStoreSync = (tarData, dir) => {
|
|
7130
|
-
const { index, files, binFiles } = storeLayout(tarData, dir);
|
|
7147
|
+
var unpackToStoreSync = (tarData, dir, format) => {
|
|
7148
|
+
const { index, files, binFiles } = storeLayout(tarData, dir, format);
|
|
7131
7149
|
mkdirSync2(dirname2(dir), { recursive: true });
|
|
7132
7150
|
mkdirSync2(dir, { mode: 511 });
|
|
7133
7151
|
let succeeded = false;
|
|
@@ -7200,7 +7218,7 @@ var sweep = (tmp2) => {
|
|
|
7200
7218
|
}
|
|
7201
7219
|
};
|
|
7202
7220
|
var seq = 0;
|
|
7203
|
-
var explodeEntry = (store, buf) => {
|
|
7221
|
+
var explodeEntry = (store, buf, format) => {
|
|
7204
7222
|
const hex = integrityHex(entryIntegrity(buf));
|
|
7205
7223
|
if (!hex) return "ignored";
|
|
7206
7224
|
const entry = join2(store, hex);
|
|
@@ -7213,7 +7231,8 @@ var explodeEntry = (store, buf) => {
|
|
|
7213
7231
|
const sideTmp = join2(store, ".tmp", `${hex}.json.${n7}`);
|
|
7214
7232
|
const { index } = unpackToStoreSync(
|
|
7215
7233
|
buf.subarray(buf.readUInt32BE(0)),
|
|
7216
|
-
tmp2
|
|
7234
|
+
tmp2,
|
|
7235
|
+
format
|
|
7217
7236
|
);
|
|
7218
7237
|
try {
|
|
7219
7238
|
writeFileSync2(sideTmp, JSON.stringify(index));
|
|
@@ -7256,7 +7275,7 @@ var explode = async (cache, store, keys, integrities) => {
|
|
|
7256
7275
|
continue;
|
|
7257
7276
|
}
|
|
7258
7277
|
try {
|
|
7259
|
-
const res = explodeEntry(store, buf);
|
|
7278
|
+
const res = explodeEntry(store, buf, tarballFormat(key));
|
|
7260
7279
|
if (typeof res === "number") {
|
|
7261
7280
|
s.exploded.add(key);
|
|
7262
7281
|
s.written++;
|
|
@@ -12,11 +12,11 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
rimraf,
|
|
14
14
|
rimrafSync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PDWPFR5T.js";
|
|
16
16
|
import {
|
|
17
17
|
isManifest,
|
|
18
18
|
normalizeBinPaths
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -87,7 +87,13 @@ import {
|
|
|
87
87
|
statSync,
|
|
88
88
|
writeFileSync
|
|
89
89
|
} from "node:fs";
|
|
90
|
-
import {
|
|
90
|
+
import {
|
|
91
|
+
lstat,
|
|
92
|
+
mkdir,
|
|
93
|
+
readFile,
|
|
94
|
+
rename,
|
|
95
|
+
writeFile
|
|
96
|
+
} from "node:fs/promises";
|
|
91
97
|
import {
|
|
92
98
|
basename as basename2,
|
|
93
99
|
dirname,
|
|
@@ -590,7 +596,12 @@ var parseKVLine = (set, line) => {
|
|
|
590
596
|
};
|
|
591
597
|
|
|
592
598
|
// ../../src/tar/src/unpack.ts
|
|
593
|
-
import {
|
|
599
|
+
import {
|
|
600
|
+
brotliDecompress as brotliCB,
|
|
601
|
+
brotliDecompressSync as brotliSyncCB,
|
|
602
|
+
unzip as unzipCB,
|
|
603
|
+
unzipSync as unzipSyncCB
|
|
604
|
+
} from "node:zlib";
|
|
594
605
|
|
|
595
606
|
// ../../src/tar/src/find-tar-dir.ts
|
|
596
607
|
var findTarDir = (path, tarDir) => {
|
|
@@ -639,6 +650,27 @@ var unzipSync = (input) => {
|
|
|
639
650
|
throw unzipError(er, input.length, max);
|
|
640
651
|
}
|
|
641
652
|
};
|
|
653
|
+
var isGzip = (b) => b[0] === 31 && b[1] === 139;
|
|
654
|
+
var brotli = async (input) => {
|
|
655
|
+
const max = unzipMax(input.length);
|
|
656
|
+
return new Promise(
|
|
657
|
+
(res, rej) => brotliCB(
|
|
658
|
+
input,
|
|
659
|
+
{ maxOutputLength: max },
|
|
660
|
+
(er, result) => er ? rej(unzipError(er, input.length, max)) : res(result)
|
|
661
|
+
)
|
|
662
|
+
);
|
|
663
|
+
};
|
|
664
|
+
var brotliSync = (input) => {
|
|
665
|
+
const max = unzipMax(input.length);
|
|
666
|
+
try {
|
|
667
|
+
return brotliSyncCB(input, { maxOutputLength: max });
|
|
668
|
+
} catch (er) {
|
|
669
|
+
throw unzipError(er, input.length, max);
|
|
670
|
+
}
|
|
671
|
+
};
|
|
672
|
+
var decompress = async (input, format) => format === "brotli" ? brotli(input) : isGzip(input) ? unzip(input) : input;
|
|
673
|
+
var decompressSync = (input, format) => format === "brotli" ? brotliSync(input) : isGzip(input) ? unzipSync(input) : input;
|
|
642
674
|
var exists = async (path) => {
|
|
643
675
|
try {
|
|
644
676
|
await lstat(path);
|
|
@@ -737,24 +769,26 @@ var write = async (path, body, executable = false) => {
|
|
|
737
769
|
mode: executable ? 511 : 438
|
|
738
770
|
});
|
|
739
771
|
};
|
|
740
|
-
var unpack = async (tarData, target) => {
|
|
741
|
-
|
|
742
|
-
await unpackUnzipped(
|
|
743
|
-
isGzip ? await unzip(tarData) : tarData,
|
|
744
|
-
target
|
|
745
|
-
);
|
|
772
|
+
var unpack = async (tarData, target, format) => {
|
|
773
|
+
await unpackUnzipped(await decompress(tarData, format), target);
|
|
746
774
|
};
|
|
747
|
-
var unpackSync = (tarData, target) => {
|
|
748
|
-
|
|
749
|
-
unpackUnzippedSync(isGzip ? unzipSync(tarData) : tarData, target);
|
|
775
|
+
var unpackSync = (tarData, target, format) => {
|
|
776
|
+
unpackUnzippedSync(decompressSync(tarData, format), target);
|
|
750
777
|
};
|
|
751
|
-
var
|
|
778
|
+
var unpackParallel = async (tarData, target, format) => {
|
|
779
|
+
unpackUnzippedSync(await decompress(tarData, format), target);
|
|
780
|
+
};
|
|
781
|
+
var unpackFileParallel = async (file, target, offset = 0, format) => unpackParallel(
|
|
782
|
+
(await readFile(file)).subarray(offset),
|
|
783
|
+
target,
|
|
784
|
+
format
|
|
785
|
+
);
|
|
786
|
+
var unpackFileSync = (file, target, offset = 0, format) => unpackSync(readFileSync2(file).subarray(offset), target, format);
|
|
752
787
|
var tmpName = (target) => dirname(target) + sep + "." + basename2(target) + "." + tmpSuffix();
|
|
753
788
|
var parseTarball = (buffer, tmp2) => {
|
|
754
|
-
|
|
755
|
-
if (isGzip) {
|
|
789
|
+
if (isGzip(buffer)) {
|
|
756
790
|
throw error("still gzipped after unzipping", {
|
|
757
|
-
found:
|
|
791
|
+
found: true,
|
|
758
792
|
wanted: false
|
|
759
793
|
});
|
|
760
794
|
}
|
|
@@ -923,10 +957,9 @@ var unpackUnzippedSync = (buffer, target) => {
|
|
|
923
957
|
}
|
|
924
958
|
}
|
|
925
959
|
};
|
|
926
|
-
var storeLayout = (tarData, dir) => {
|
|
927
|
-
const isGzip = tarData[0] === 31 && tarData[1] === 139;
|
|
960
|
+
var storeLayout = (tarData, dir, format) => {
|
|
928
961
|
const { dirs, files } = parseTarball(
|
|
929
|
-
|
|
962
|
+
decompressSync(tarData, format),
|
|
930
963
|
dir
|
|
931
964
|
);
|
|
932
965
|
const rel = (p) => relative(dir, p).replace(/\\/g, "/");
|
|
@@ -968,8 +1001,8 @@ var storeLayout = (tarData, dir) => {
|
|
|
968
1001
|
binFiles
|
|
969
1002
|
};
|
|
970
1003
|
};
|
|
971
|
-
var unpackToStoreSync = (tarData, dir) => {
|
|
972
|
-
const { index, files, binFiles } = storeLayout(tarData, dir);
|
|
1004
|
+
var unpackToStoreSync = (tarData, dir, format) => {
|
|
1005
|
+
const { index, files, binFiles } = storeLayout(tarData, dir, format);
|
|
973
1006
|
mkdirSync(dirname(dir), { recursive: true });
|
|
974
1007
|
mkdirSync(dir, { mode: 511 });
|
|
975
1008
|
let succeeded = false;
|
|
@@ -1101,6 +1134,8 @@ export {
|
|
|
1101
1134
|
readStoreIndex,
|
|
1102
1135
|
unpack,
|
|
1103
1136
|
unpackSync,
|
|
1137
|
+
unpackParallel,
|
|
1138
|
+
unpackFileParallel,
|
|
1104
1139
|
unpackFileSync,
|
|
1105
1140
|
tmpName,
|
|
1106
1141
|
unpackToStoreSync,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
actual,
|
|
14
14
|
callLimit,
|
|
15
15
|
createVirtualRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J2WL3A3C.js";
|
|
17
17
|
import {
|
|
18
18
|
SecurityArchive
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JFHEXCG5.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -140,7 +140,7 @@ var reloadConfig = async (folder) => {
|
|
|
140
140
|
unload("project");
|
|
141
141
|
} catch {
|
|
142
142
|
}
|
|
143
|
-
const { Config } = await import("./config-
|
|
143
|
+
const { Config } = await import("./config-HFF6XDCV.js");
|
|
144
144
|
return Config.load(folder, process.argv, true);
|
|
145
145
|
};
|
|
146
146
|
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
pairsToRecords,
|
|
16
16
|
registrySelectionFields,
|
|
17
17
|
registrySelectors
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YZWFWSY7.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeRegistryURL
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-D2LEK7VS.js";
|
|
22
22
|
import {
|
|
23
23
|
getCommand,
|
|
24
24
|
isRecordField
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ENSGPOLR.js";
|
|
26
26
|
import {
|
|
27
27
|
find
|
|
28
28
|
} from "./chunk-HTOTG4TS.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
defaultRegistries,
|
|
34
34
|
defaultRegistryName,
|
|
35
35
|
isObject
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
37
37
|
import {
|
|
38
38
|
error
|
|
39
39
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-WGDTG44V.js";
|
|
15
15
|
import {
|
|
16
16
|
commandAliases
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ENSGPOLR.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/.vlt/~npm~package-json-from-dist@1.0.1/node_modules/package-json-from-dist/dist/esm/index.js
|
|
20
20
|
import { readFileSync } from "node:fs";
|
|
@@ -1780,6 +1780,19 @@ var definition = j2.heading("Configuration").description(
|
|
|
1780
1780
|
},
|
|
1781
1781
|
"lockfile-only": {
|
|
1782
1782
|
description: "Only update the lockfile (vlt-lock.json) and package.json files, skip all node_modules operations including package extraction and filesystem changes."
|
|
1783
|
+
},
|
|
1784
|
+
"brotli-tarballs": {
|
|
1785
|
+
description: `Resolve to the Brotli (\`.tar.br\`) tarball when the
|
|
1786
|
+
registry advertises one for a version, transferring far
|
|
1787
|
+
less than the gzip \`.tgz\`.
|
|
1788
|
+
|
|
1789
|
+
The \`.tar.br\` is its own artifact and hashes
|
|
1790
|
+
differently, so a version installed this way records that
|
|
1791
|
+
hash in \`vlt-lock.json\`. An existing lockfile keeps
|
|
1792
|
+
whichever artifact it already pinned; set
|
|
1793
|
+
\`--no-brotli-tarballs\` before resolving to pin the
|
|
1794
|
+
\`.tgz\` instead.`,
|
|
1795
|
+
default: true
|
|
1783
1796
|
}
|
|
1784
1797
|
}).opt({
|
|
1785
1798
|
"allow-scripts": {
|
|
@@ -11,17 +11,17 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
PackageInfoClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SVMH3NDM.js";
|
|
15
15
|
import {
|
|
16
16
|
findCmdShimIfExists,
|
|
17
17
|
install
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J2WL3A3C.js";
|
|
19
19
|
import {
|
|
20
20
|
PathScurry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-P4LLYWCG.js";
|
|
22
22
|
import {
|
|
23
23
|
Spec
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-V7EQZOO5.js";
|
|
25
25
|
import {
|
|
26
26
|
walkUp
|
|
27
27
|
} from "./chunk-HTOTG4TS.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-XNLSTHDK.js";
|
|
31
31
|
import {
|
|
32
32
|
parseScope
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
34
34
|
import {
|
|
35
35
|
error
|
|
36
36
|
} from "./chunk-WZWDS3W4.js";
|