@vltpkg/cli-js 1.3.6 → 1.3.8
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-SFEGWG3Y.js → access-WLKANIOE.js} +8 -8
- package/{bugs-X2JHO4WZ.js → bugs-5Q3QSTWP.js} +17 -17
- package/{build-BK4ITRPX.js → build-XSFR63AW.js} +9 -9
- package/{cache-JRW72UJE.js → cache-UVPK5J5A.js} +13 -13
- package/chunk-3U6QWN62.js +45 -0
- package/{chunk-2XDF3JBH.js → chunk-43HNQWPQ.js} +6 -6
- package/chunk-4JAZZRKR.js +76 -0
- package/{chunk-F6ZN6TTL.js → chunk-5KOLUYXH.js} +61 -11
- package/{chunk-TY2UJ3SA.js → chunk-6BQKR2FM.js} +1 -1
- package/{chunk-PBBULTAG.js → chunk-6D54UN4T.js} +1 -1
- package/{chunk-FOSDT7YU.js → chunk-6P5CFJR7.js} +4 -4
- package/{chunk-J4NHRZX6.js → chunk-A2TSRXZD.js} +1 -1
- package/{chunk-IXAHSTBN.js → chunk-BGA3WB7H.js} +86 -10
- package/{chunk-GDYDW277.js → chunk-CB65DPZ2.js} +195 -195
- package/{chunk-VI7V6OCC.js → chunk-DL3H4EMY.js} +46 -19
- package/{chunk-O2B5SLP7.js → chunk-EL4GVZK5.js} +2 -2
- package/{chunk-HD6TAM7A.js → chunk-FIUUAQGC.js} +5 -5
- package/{chunk-64VFL4WI.js → chunk-GZ5MYMBT.js} +1 -1
- package/{chunk-X2WYIUFQ.js → chunk-H77JYU7F.js} +1 -1
- package/{chunk-BP3PQ67D.js → chunk-IBGFQR23.js} +16 -0
- package/{chunk-CRGWLUGC.js → chunk-IHXJVKAE.js} +1 -1
- package/{chunk-2XFFMF6G.js → chunk-IUL6MPP6.js} +4 -4
- package/{chunk-BCANUHR3.js → chunk-KMOOTBHM.js} +5 -1
- package/{chunk-WGSYVB4F.js → chunk-NWHKSRO3.js} +268 -21
- package/{chunk-JELA46YR.js → chunk-OAP2ROTL.js} +1 -1
- package/{chunk-AFUXQ3P4.js → chunk-OWMR2EDW.js} +1 -1
- package/{chunk-RAE3LNUK.js → chunk-PJJCFMLW.js} +3 -3
- package/chunk-QNDM4DVO.js +25 -0
- package/{chunk-XU5WNX4S.js → chunk-SE2FSMBR.js} +1 -0
- package/{chunk-JIQBZ2UT.js → chunk-SV4WK3KX.js} +2 -2
- package/{chunk-LHIDMYN2.js → chunk-TLY4VGMH.js} +1 -1
- package/{chunk-WS7BNE5S.js → chunk-WHLYMMI2.js} +3 -3
- package/{chunk-LFCZGP2L.js → chunk-WKA5UYNA.js} +3 -10
- package/{chunk-2XD7RUKI.js → chunk-XCDLOQZZ.js} +3 -3
- package/{chunk-TOKUDCSW.js → chunk-XDSZO74H.js} +6 -6
- package/{ci-6GQ3GMJK.js → ci-EDRETPUF.js} +10 -10
- package/cli-package.json +3 -1
- package/{config-6VRNS5F3.js → config-MVNXGEOQ.js} +8 -8
- package/{config-5VN6JXGK.js → config-OKBXU7TU.js} +10 -10
- package/{create-K7ROUCVJ.js → create-R7BXYJSU.js} +18 -18
- package/{deprecate-WRSZJ2WG.js → deprecate-YSUKBKQM.js} +11 -11
- package/{dist-tag-NSTCFNON.js → dist-tag-MIGYSR4F.js} +8 -8
- package/{docs-E2PATRJS.js → docs-4WVIN75H.js} +17 -17
- package/{exec-SV4RXF2E.js → exec-IXHDQLAM.js} +26 -18
- package/{exec-cache-K4LBRSRD.js → exec-cache-EA7GHIK7.js} +16 -16
- package/{exec-local-RT27P325.js → exec-local-GM4LH56M.js} +15 -15
- package/{help-XXKA42B7.js → help-TCXGBICU.js} +4 -4
- package/{init-IYCFQJPW.js → init-MWZDWQHM.js} +10 -10
- package/{install-RRCUQ34D.js → install-HPI5HU3C.js} +16 -16
- package/{list-WFYB66G7.js → list-2CX6REPJ.js} +21 -19
- package/{login-K6HTWO4J.js → login-RAY23CVG.js} +12 -12
- package/{logout-F6EI7WST.js → logout-ICB5OMGY.js} +8 -8
- package/outdated-FYHPXRMT.js +533 -0
- package/{pack-FX24JZR4.js → pack-E5MNPQXK.js} +11 -11
- package/package.json +1 -1
- package/{ping-6QRL622S.js → ping-REQ2KSAR.js} +8 -8
- package/{pkg-FPWX4VUE.js → pkg-YB4GSRII.js} +11 -11
- package/{profile-WAI5BGPU.js → profile-GKBW6GRI.js} +8 -8
- package/{publish-GI7T7TE2.js → publish-4ZQJYYLF.js} +17 -17
- package/{query-GC2DGBWT.js → query-SKXBF3MJ.js} +21 -19
- package/{registry-PY2L5ZWC.js → registry-MQJJCWJY.js} +5 -5
- package/registry-client-src-revalidate.js +58 -9
- package/{repo-CFXNFSY7.js → repo-ACPTZI2C.js} +17 -17
- package/{reporter-5QKWEQNH.js → reporter-4KK2JNGO.js} +10 -10
- package/{run-VFHTHV5N.js → run-YW3ITX2A.js} +15 -15
- package/{run-exec-OJEIP3WL.js → run-exec-7VQX3OFG.js} +15 -15
- package/security-archive-src-update-expired.js +1 -1
- package/{setup-CCM2QAVA.js → setup-PLEKCMXN.js} +15 -15
- package/{src-3MEJQYBG.js → src-GP7VLT7P.js} +2 -2
- package/{src-LLE3Q5NY.js → src-PXDFMQ6W.js} +6 -4
- package/{src-54SW7RQE.js → src-XQ7KVUVN.js} +14 -14
- package/{token-P5N54F4D.js → token-GB7RPE5J.js} +8 -8
- package/{uninstall-QJA3X4GY.js → uninstall-RLCECX37.js} +12 -12
- package/{unpublish-IAB6LNVC.js → unpublish-3ZXEAVHF.js} +8 -8
- package/{update-VZEF6QRY.js → update-VDZP6EZN.js} +25 -16
- package/{version-A6FPEDV5.js → version-MRELJPOK.js} +10 -10
- package/{view-SA6QU2NW.js → view-LCXMTGCJ.js} +76 -52
- 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-YDNKCWU7.js → whoami-PNRDBS45.js} +8 -8
- package/chunk-MXRSLXAC.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-A2TSRXZD.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-TLY4VGMH.js";
|
|
18
|
+
import "./chunk-GZ5MYMBT.js";
|
|
19
|
+
import "./chunk-SE2FSMBR.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5KOLUYXH.js";
|
|
23
23
|
import "./chunk-APMYKJI2.js";
|
|
24
24
|
import {
|
|
25
25
|
assertOk
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-6D54UN4T.js";
|
|
27
|
+
import "./chunk-6BQKR2FM.js";
|
|
28
28
|
import "./chunk-U7TEQCBN.js";
|
|
29
29
|
import "./chunk-XNLSTHDK.js";
|
|
30
30
|
import "./chunk-PDWPFR5T.js";
|
|
31
31
|
import "./chunk-Y5PA7DVK.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-IBGFQR23.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-OWMR2EDW.js";
|
|
18
18
|
import {
|
|
19
19
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-WHLYMMI2.js";
|
|
21
|
+
import "./chunk-XDSZO74H.js";
|
|
22
|
+
import "./chunk-KMOOTBHM.js";
|
|
23
23
|
import "./chunk-G2YT2GWF.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-IHXJVKAE.js";
|
|
25
25
|
import {
|
|
26
26
|
PackageInfoClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DL3H4EMY.js";
|
|
28
28
|
import "./chunk-SRWDPPLX.js";
|
|
29
29
|
import "./chunk-WGDTG44V.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-A2TSRXZD.js";
|
|
31
31
|
import {
|
|
32
32
|
Query,
|
|
33
33
|
actual
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NWHKSRO3.js";
|
|
35
35
|
import {
|
|
36
36
|
SecurityArchive
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XCDLOQZZ.js";
|
|
38
38
|
import {
|
|
39
39
|
commandUsage
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-TLY4VGMH.js";
|
|
41
|
+
import "./chunk-CB65DPZ2.js";
|
|
42
42
|
import "./chunk-4KCU2KZL.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-SV4WK3KX.js";
|
|
44
44
|
import {
|
|
45
45
|
Spec
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-GZ5MYMBT.js";
|
|
47
|
+
import "./chunk-SE2FSMBR.js";
|
|
48
48
|
import "./chunk-HTOTG4TS.js";
|
|
49
49
|
import "./chunk-APMYKJI2.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-6D54UN4T.js";
|
|
51
|
+
import "./chunk-6BQKR2FM.js";
|
|
52
52
|
import "./chunk-U7TEQCBN.js";
|
|
53
53
|
import "./chunk-XNLSTHDK.js";
|
|
54
54
|
import "./chunk-PDWPFR5T.js";
|
|
55
55
|
import "./chunk-Y5PA7DVK.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-IBGFQR23.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-NWHKSRO3.js";
|
|
15
|
+
import "./chunk-XCDLOQZZ.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-TLY4VGMH.js";
|
|
19
|
+
import "./chunk-CB65DPZ2.js";
|
|
20
|
+
import "./chunk-SV4WK3KX.js";
|
|
21
|
+
import "./chunk-GZ5MYMBT.js";
|
|
22
|
+
import "./chunk-SE2FSMBR.js";
|
|
23
23
|
import "./chunk-HTOTG4TS.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-6BQKR2FM.js";
|
|
25
25
|
import "./chunk-U7TEQCBN.js";
|
|
26
26
|
import "./chunk-XNLSTHDK.js";
|
|
27
27
|
import "./chunk-PDWPFR5T.js";
|
|
28
28
|
import "./chunk-Y5PA7DVK.js";
|
|
29
29
|
import {
|
|
30
30
|
isErrorWithCause
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IBGFQR23.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-XDSZO74H.js";
|
|
19
|
+
import "./chunk-KMOOTBHM.js";
|
|
20
20
|
import "./chunk-G2YT2GWF.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-IHXJVKAE.js";
|
|
22
22
|
import "./chunk-WGDTG44V.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-A2TSRXZD.js";
|
|
24
24
|
import {
|
|
25
25
|
commandUsage
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TLY4VGMH.js";
|
|
27
27
|
import {
|
|
28
28
|
ViewClass
|
|
29
29
|
} from "./chunk-4KCU2KZL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-SV4WK3KX.js";
|
|
31
31
|
import {
|
|
32
32
|
Spec
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-GZ5MYMBT.js";
|
|
34
|
+
import "./chunk-SE2FSMBR.js";
|
|
35
35
|
import {
|
|
36
36
|
CacheEntry
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-5KOLUYXH.js";
|
|
38
38
|
import "./chunk-APMYKJI2.js";
|
|
39
39
|
import {
|
|
40
40
|
assertOk
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-6D54UN4T.js";
|
|
42
|
+
import "./chunk-6BQKR2FM.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-
|
|
53
|
+
} from "./chunk-H77JYU7F.js";
|
|
54
54
|
import "./chunk-PDWPFR5T.js";
|
|
55
55
|
import "./chunk-Y5PA7DVK.js";
|
|
56
56
|
import {
|
|
57
57
|
integrityHex
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IBGFQR23.js";
|
|
59
59
|
import {
|
|
60
60
|
error
|
|
61
61
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
getId
|
|
14
|
+
} from "./chunk-SV4WK3KX.js";
|
|
15
|
+
|
|
16
|
+
// ../../src/cli-sdk/src/stub-node.ts
|
|
17
|
+
var createStubNode = (spec, name, version, options) => ({
|
|
18
|
+
id: getId(spec, { name, version }),
|
|
19
|
+
name,
|
|
20
|
+
version,
|
|
21
|
+
confused: false,
|
|
22
|
+
edgesIn: /* @__PURE__ */ new Set(),
|
|
23
|
+
edgesOut: /* @__PURE__ */ new Map(),
|
|
24
|
+
workspaces: void 0,
|
|
25
|
+
importer: false,
|
|
26
|
+
mainImporter: false,
|
|
27
|
+
projectRoot: "",
|
|
28
|
+
dev: false,
|
|
29
|
+
optional: false,
|
|
30
|
+
graph: {},
|
|
31
|
+
options,
|
|
32
|
+
/* c8 ignore next 5 - stub methods for NodeLike interface */
|
|
33
|
+
toJSON: () => ({}),
|
|
34
|
+
toString: () => `${name}@${version}`,
|
|
35
|
+
setResolved: () => {
|
|
36
|
+
},
|
|
37
|
+
setConfusedManifest: () => {
|
|
38
|
+
},
|
|
39
|
+
maybeSetConfusedManifest: () => {
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
createStubNode
|
|
45
|
+
};
|
|
@@ -11,15 +11,15 @@ 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-DL3H4EMY.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
PathScurry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CB65DPZ2.js";
|
|
20
20
|
import {
|
|
21
21
|
resetCaches
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SV4WK3KX.js";
|
|
23
23
|
import {
|
|
24
24
|
commands,
|
|
25
25
|
defaultValues,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
isRecordField,
|
|
29
29
|
recordFields,
|
|
30
30
|
storeLinkers
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SE2FSMBR.js";
|
|
32
32
|
import {
|
|
33
33
|
find,
|
|
34
34
|
load,
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
} from "./chunk-HTOTG4TS.js";
|
|
38
38
|
import {
|
|
39
39
|
storeRoot
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6D54UN4T.js";
|
|
41
41
|
import {
|
|
42
42
|
assertRecordStringString,
|
|
43
43
|
assertRecordStringT,
|
|
44
44
|
getOptions,
|
|
45
45
|
isObject,
|
|
46
46
|
isRecordStringString
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-IBGFQR23.js";
|
|
48
48
|
import {
|
|
49
49
|
error
|
|
50
50
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
error
|
|
14
|
+
} from "./chunk-WZWDS3W4.js";
|
|
15
|
+
import {
|
|
16
|
+
__glob
|
|
17
|
+
} from "./chunk-PZLD7RTK.js";
|
|
18
|
+
|
|
19
|
+
// import("./commands/**/*.ts") in ../../src/cli-sdk/src/load-command.ts
|
|
20
|
+
var globImport_commands_ts = __glob({
|
|
21
|
+
"./commands/access.ts": () => import("./access-WLKANIOE.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-5Q3QSTWP.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-XSFR63AW.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-UVPK5J5A.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-EDRETPUF.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-OKBXU7TU.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-R7BXYJSU.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-YSUKBKQM.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-MIGYSR4F.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-4WVIN75H.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-EA7GHIK7.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-GM4LH56M.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-IXHDQLAM.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-TCXGBICU.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-MWZDWQHM.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-HPI5HU3C.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-4KK2JNGO.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-2CX6REPJ.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-RAY23CVG.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-ICB5OMGY.js"),
|
|
41
|
+
"./commands/outdated.ts": () => import("./outdated-FYHPXRMT.js"),
|
|
42
|
+
"./commands/pack.ts": () => import("./pack-E5MNPQXK.js"),
|
|
43
|
+
"./commands/ping.ts": () => import("./ping-REQ2KSAR.js"),
|
|
44
|
+
"./commands/pkg.ts": () => import("./pkg-YB4GSRII.js"),
|
|
45
|
+
"./commands/profile.ts": () => import("./profile-GKBW6GRI.js"),
|
|
46
|
+
"./commands/publish.ts": () => import("./publish-4ZQJYYLF.js"),
|
|
47
|
+
"./commands/query.ts": () => import("./query-SKXBF3MJ.js"),
|
|
48
|
+
"./commands/registry.ts": () => import("./registry-MQJJCWJY.js"),
|
|
49
|
+
"./commands/repo.ts": () => import("./repo-ACPTZI2C.js"),
|
|
50
|
+
"./commands/run-exec.ts": () => import("./run-exec-7VQX3OFG.js"),
|
|
51
|
+
"./commands/run.ts": () => import("./run-YW3ITX2A.js"),
|
|
52
|
+
"./commands/setup.ts": () => import("./setup-PLEKCMXN.js"),
|
|
53
|
+
"./commands/token.ts": () => import("./token-GB7RPE5J.js"),
|
|
54
|
+
"./commands/uninstall.ts": () => import("./uninstall-RLCECX37.js"),
|
|
55
|
+
"./commands/unpublish.ts": () => import("./unpublish-3ZXEAVHF.js"),
|
|
56
|
+
"./commands/update.ts": () => import("./update-VDZP6EZN.js"),
|
|
57
|
+
"./commands/version.ts": () => import("./version-MRELJPOK.js"),
|
|
58
|
+
"./commands/view.ts": () => import("./view-LCXMTGCJ.js"),
|
|
59
|
+
"./commands/whoami.ts": () => import("./whoami-PNRDBS45.js")
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// ../../src/cli-sdk/src/load-command.ts
|
|
63
|
+
var loadCommand = async (command) => {
|
|
64
|
+
try {
|
|
65
|
+
return await globImport_commands_ts(`./commands/${command}.ts`);
|
|
66
|
+
} catch (e) {
|
|
67
|
+
throw error("Could not load command", {
|
|
68
|
+
found: command,
|
|
69
|
+
cause: e
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
loadCommand
|
|
76
|
+
};
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
statusText,
|
|
19
19
|
storeRoot,
|
|
20
20
|
tokenRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6D54UN4T.js";
|
|
22
22
|
import {
|
|
23
23
|
userAgent
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6BQKR2FM.js";
|
|
25
25
|
import {
|
|
26
26
|
I,
|
|
27
27
|
logRequest
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
asError,
|
|
37
37
|
integrityHex,
|
|
38
38
|
integrityRE
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-IBGFQR23.js";
|
|
40
40
|
import {
|
|
41
41
|
error
|
|
42
42
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -26320,10 +26320,15 @@ var getKC = (identity) => {
|
|
|
26320
26320
|
return nkc;
|
|
26321
26321
|
};
|
|
26322
26322
|
var isToken = (t) => typeof t === "string" && (t.startsWith("Bearer ") || t.startsWith("Basic "));
|
|
26323
|
-
var deleteToken = async (registry, identity) => {
|
|
26323
|
+
var deleteToken = async (registry, identity, token) => {
|
|
26324
26324
|
const kc = getKC(identity);
|
|
26325
26325
|
await kc.load();
|
|
26326
26326
|
kc.delete(normalizeRegistryKey(registry));
|
|
26327
|
+
if (token) {
|
|
26328
|
+
for (const key of kc.keysSync()) {
|
|
26329
|
+
if (kc.getSync(key) === token) kc.delete(key);
|
|
26330
|
+
}
|
|
26331
|
+
}
|
|
26327
26332
|
await kc.save();
|
|
26328
26333
|
};
|
|
26329
26334
|
var setToken = async (registry, token, identity) => {
|
|
@@ -26346,9 +26351,19 @@ var getToken = async (registry, identity) => {
|
|
|
26346
26351
|
if (tok) return `Bearer ${tok}`;
|
|
26347
26352
|
return kc.get(key);
|
|
26348
26353
|
};
|
|
26349
|
-
var
|
|
26354
|
+
var registryKeys = (o) => [
|
|
26355
|
+
...new Set(
|
|
26356
|
+
[
|
|
26357
|
+
o.registry,
|
|
26358
|
+
...Object.values(o.registries ?? {}),
|
|
26359
|
+
...Object.values(o["scoped-registries"] ?? {}),
|
|
26360
|
+
...Object.values(o["jsr-registries"] ?? {})
|
|
26361
|
+
].filter((u) => !!u && URL.canParse(u)).map(normalizeRegistryKey)
|
|
26362
|
+
)
|
|
26363
|
+
];
|
|
26364
|
+
var getTokenByURL = async (requestUrl, identity, keys = []) => {
|
|
26350
26365
|
const normalized = normalizeRegistryKey(requestUrl);
|
|
26351
|
-
const candidates = [...runtimeTokens.keys()];
|
|
26366
|
+
const candidates = [...runtimeTokens.keys(), ...keys];
|
|
26352
26367
|
const envReg = process.env.VLT_REGISTRY;
|
|
26353
26368
|
if (envReg) {
|
|
26354
26369
|
candidates.push(normalizeRegistryKey(envReg));
|
|
@@ -27573,9 +27588,13 @@ var RegistryClient = class {
|
|
|
27573
27588
|
agent;
|
|
27574
27589
|
cache;
|
|
27575
27590
|
identity;
|
|
27591
|
+
/** configured registry keys; `VLT_TOKEN_<key>` applies under each */
|
|
27592
|
+
registryKeys;
|
|
27576
27593
|
staleWhileRevalidateFactor;
|
|
27577
27594
|
#session = randomUUID();
|
|
27578
27595
|
#decoded = /* @__PURE__ */ new WeakMap();
|
|
27596
|
+
// request() calls not settled yet, awaited by drain()
|
|
27597
|
+
#inFlight = /* @__PURE__ */ new Set();
|
|
27579
27598
|
constructor(options) {
|
|
27580
27599
|
const {
|
|
27581
27600
|
cache = xdg.cache(),
|
|
@@ -27588,6 +27607,7 @@ var RegistryClient = class {
|
|
|
27588
27607
|
// 48h for a 5min cache
|
|
27589
27608
|
} = options;
|
|
27590
27609
|
this.identity = identity;
|
|
27610
|
+
this.registryKeys = registryKeys(options);
|
|
27591
27611
|
this.staleWhileRevalidateFactor = staleWhileRevalidateFactor;
|
|
27592
27612
|
const path = resolve4(cache, "registry-client");
|
|
27593
27613
|
const store = options.storeRoot ?? storeRoot(cache);
|
|
@@ -27710,7 +27730,7 @@ var RegistryClient = class {
|
|
|
27710
27730
|
}
|
|
27711
27731
|
}
|
|
27712
27732
|
} finally {
|
|
27713
|
-
await deleteToken(registry, this.identity);
|
|
27733
|
+
await deleteToken(registry, this.identity, tok);
|
|
27714
27734
|
}
|
|
27715
27735
|
}
|
|
27716
27736
|
/**
|
|
@@ -27971,7 +27991,11 @@ var RegistryClient = class {
|
|
|
27971
27991
|
o.headers = addHeader(
|
|
27972
27992
|
o.headers,
|
|
27973
27993
|
"authorization",
|
|
27974
|
-
await getTokenByURL(
|
|
27994
|
+
await getTokenByURL(
|
|
27995
|
+
String(u),
|
|
27996
|
+
this.identity,
|
|
27997
|
+
this.registryKeys
|
|
27998
|
+
)
|
|
27975
27999
|
);
|
|
27976
28000
|
logRequest(url, "start", { method: o.method });
|
|
27977
28001
|
const requestStart = Date.now();
|
|
@@ -27994,7 +28018,28 @@ var RegistryClient = class {
|
|
|
27994
28018
|
}
|
|
27995
28019
|
return { statusCode: response.statusCode, body };
|
|
27996
28020
|
}
|
|
28021
|
+
/**
|
|
28022
|
+
* Settle in-flight requests and their cache writes. Await before
|
|
28023
|
+
* removing the cache dir.
|
|
28024
|
+
*/
|
|
28025
|
+
async drain() {
|
|
28026
|
+
do {
|
|
28027
|
+
await Promise.all(this.#inFlight);
|
|
28028
|
+
await this.cache.promise();
|
|
28029
|
+
} while (this.#inFlight.size);
|
|
28030
|
+
}
|
|
27997
28031
|
async request(url, options = {}) {
|
|
28032
|
+
let settle;
|
|
28033
|
+
const tracked = new Promise((res) => settle = res);
|
|
28034
|
+
this.#inFlight.add(tracked);
|
|
28035
|
+
try {
|
|
28036
|
+
return await this.#request(url, options);
|
|
28037
|
+
} finally {
|
|
28038
|
+
this.#inFlight.delete(tracked);
|
|
28039
|
+
settle();
|
|
28040
|
+
}
|
|
28041
|
+
}
|
|
28042
|
+
async #request(url, options) {
|
|
27998
28043
|
const u = typeof url === "string" ? new URL(url) : url;
|
|
27999
28044
|
const {
|
|
28000
28045
|
method = "GET",
|
|
@@ -28070,7 +28115,11 @@ var RegistryClient = class {
|
|
|
28070
28115
|
options.headers = addHeader(
|
|
28071
28116
|
options.headers,
|
|
28072
28117
|
"authorization",
|
|
28073
|
-
await getTokenByURL(
|
|
28118
|
+
await getTokenByURL(
|
|
28119
|
+
String(u),
|
|
28120
|
+
this.identity,
|
|
28121
|
+
this.registryKeys
|
|
28122
|
+
)
|
|
28074
28123
|
);
|
|
28075
28124
|
}
|
|
28076
28125
|
let response = null;
|
|
@@ -28134,7 +28183,7 @@ var RegistryClient = class {
|
|
|
28134
28183
|
if (response.statusCode === 401) {
|
|
28135
28184
|
const otpResult = await otplease(this, options, response);
|
|
28136
28185
|
if (otpResult && "retry" in otpResult) {
|
|
28137
|
-
return await this
|
|
28186
|
+
return await this.#request(url, otpResult.retry);
|
|
28138
28187
|
}
|
|
28139
28188
|
if (otpResult && "bodyConsumed" in otpResult) {
|
|
28140
28189
|
consumedBody = otpResult.bodyConsumed;
|
|
@@ -28162,7 +28211,7 @@ var RegistryClient = class {
|
|
|
28162
28211
|
response.body.resume();
|
|
28163
28212
|
const [nextURL, nextOptions] = redirect(options, result, url);
|
|
28164
28213
|
if (nextOptions && nextURL) {
|
|
28165
|
-
return await this
|
|
28214
|
+
return await this.#request(nextURL, nextOptions);
|
|
28166
28215
|
}
|
|
28167
28216
|
return result;
|
|
28168
28217
|
}
|
|
@@ -28188,6 +28237,7 @@ export {
|
|
|
28188
28237
|
deleteToken,
|
|
28189
28238
|
setToken,
|
|
28190
28239
|
getToken,
|
|
28240
|
+
registryKeys,
|
|
28191
28241
|
getTokenByURL,
|
|
28192
28242
|
CacheEntry,
|
|
28193
28243
|
oidc,
|
|
@@ -14,7 +14,7 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
14
14
|
var package_default = {
|
|
15
15
|
name: "@vltpkg/user-agent",
|
|
16
16
|
description: "The User-Agent string that vlt sends with every outbound request",
|
|
17
|
-
version: "1.3.
|
|
17
|
+
version: "1.3.8",
|
|
18
18
|
repository: {
|
|
19
19
|
type: "git",
|
|
20
20
|
url: "git+https://github.com/vltpkg/vltpkg.git",
|
|
@@ -11,18 +11,18 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
asUnknownSpecPrefix
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A2TSRXZD.js";
|
|
15
15
|
import {
|
|
16
16
|
addKey,
|
|
17
17
|
asDependency
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NWHKSRO3.js";
|
|
19
19
|
import {
|
|
20
20
|
joinDepIDTuple,
|
|
21
21
|
splitDepID
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SV4WK3KX.js";
|
|
23
23
|
import {
|
|
24
24
|
Spec
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GZ5MYMBT.js";
|
|
26
26
|
|
|
27
27
|
// ../../src/cli-sdk/src/parse-add-remove-args.ts
|
|
28
28
|
import { isAbsolute, relative, resolve } from "node:path";
|