@vltpkg/cli-js 1.0.2 → 1.0.4
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-DB347PPG.js → access-RYNHM3DJ.js} +9 -7
- package/{bugs-QBKI62J6.js → bugs-ZHOC4U52.js} +19 -18
- package/{build-EFJ3FFGU.js → build-HTM6Z7OQ.js} +12 -10
- package/{cache-BQJCMDJN.js → cache-74GIE5TO.js} +23 -21
- package/cache-unzip-src-unzip.js +23 -1
- package/{chunk-3HUTU5SO.js → chunk-2CLRMD5A.js} +2483 -1847
- package/{chunk-RXNA2XCX.js → chunk-4KCU2KZL.js} +8 -1
- package/{chunk-5PFGKHIS.js → chunk-A2EWSQPE.js} +10 -10
- package/{chunk-TM4LHSZV.js → chunk-AIQ7Z62O.js} +3 -3
- package/chunk-AK3RSABL.js +903 -0
- package/{chunk-YRMICBI4.js → chunk-AMDP7LYB.js} +5 -5
- package/chunk-BJBFEQRR.js +667 -0
- package/{chunk-ULCDRVY2.js → chunk-E737X73P.js} +38 -24
- package/{chunk-5OGQND6H.js → chunk-GXWZ5T4W.js} +3 -1
- package/{chunk-CNSTFT7U.js → chunk-HAYXR3MW.js} +1 -1
- package/{chunk-Q46JRSZU.js → chunk-IITIX4ID.js} +22 -3
- package/{chunk-L34LR5DV.js → chunk-JOEHZSS7.js} +4 -4
- package/chunk-LPIBYUMT.js +854 -0
- package/{chunk-YDUHQU7N.js → chunk-MZIM7X37.js} +3 -3
- package/{chunk-FM5DQZVN.js → chunk-OCJDISSI.js} +2 -2
- package/{chunk-47IR6Z6C.js → chunk-OR5LSCSK.js} +160 -105
- package/{chunk-F2GLBPGQ.js → chunk-PDLEQEZ3.js} +132 -81
- package/{chunk-42UTZKAU.js → chunk-R55OHZ2R.js} +8 -8
- package/{chunk-DEMBZY23.js → chunk-RB6SUM6U.js} +11 -11
- package/chunk-SKQHW56B.js +75 -0
- package/{chunk-ONVLPT73.js → chunk-T4GYDWUJ.js} +1 -1
- package/{chunk-BSB4XGBB.js → chunk-VB3IWNHX.js} +1 -1
- package/chunk-VE6CCH33.js +3000 -0
- package/{chunk-3MBSXZ62.js → chunk-WNDUKE42.js} +24 -17
- package/{chunk-NS4VFXHX.js → chunk-XU5SMHXP.js} +1 -1
- package/{chunk-CTDFRLS4.js → chunk-YRKCPGWZ.js} +5 -5
- package/{chunk-FWKQ7YDF.js → chunk-ZWKI5OSF.js} +118 -117
- package/{ci-A22A6TCQ.js → ci-XT7IAX2Y.js} +17 -16
- package/cli-package.json +1 -1
- package/{config-VOLRKFYD.js → config-B2LF4SJ7.js} +16 -19
- package/{config-JL4TW2AV.js → config-SRLA2XPZ.js} +10 -13
- package/{create-SL7HEXCS.js → create-VKNML6FC.js} +23 -23
- package/{deprecate-ZK525LQW.js → deprecate-IM4HEDIP.js} +17 -15
- package/{devtools-HGLF4KAO.js → devtools-66MVSNF5.js} +30 -30
- package/{dist-tag-FY3FB5VH.js → dist-tag-EKVJAQ66.js} +11 -9
- package/{docs-6BPWZJFW.js → docs-4DHMAMOU.js} +19 -18
- package/{exec-JZ5J7DI7.js → exec-7C74Z3WB.js} +23 -23
- package/{exec-cache-VGSXKZVF.js → exec-cache-QTUCQWSA.js} +22 -22
- package/{exec-local-GPZUSOSM.js → exec-local-ZCNI2JHK.js} +20 -18
- package/{help-XI7TNIRU.js → help-IKRPBT2R.js} +3 -3
- package/{init-6KWM7CDI.js → init-PCQ4YK7R.js} +12 -10
- package/{install-4VLOKCWH.js → install-OAQ4K3XX.js} +18 -17
- package/{list-3VLGWGKU.js → list-WYBKBCZU.js} +20 -18
- package/{login-3DGPSWCG.js → login-TTRCQ43Z.js} +9 -7
- package/{logout-DBFMZC6J.js → logout-3J77F4OO.js} +9 -7
- package/{pack-LHNYEZ5W.js → pack-ZLFGYGVZ.js} +16 -14
- package/package.json +1 -1
- package/{ping-VLLX5LIH.js → ping-IRLV5C4D.js} +9 -7
- package/{pkg-FYPUMX7U.js → pkg-EKOQ4XKM.js} +13 -11
- package/{profile-FOQ74TB7.js → profile-7UBKGJBP.js} +9 -7
- package/{publish-DFURU7DW.js → publish-2ODYT4R2.js} +21 -19
- package/{query-NC3EABMW.js → query-ADSAKEK4.js} +20 -18
- package/{registry-5DUFCPD6.js → registry-CZPFR3OF.js} +3 -3
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +1263 -610
- package/{repo-IZXACKQ2.js → repo-3THXRT64.js} +19 -18
- package/{chunk-UVZJFBYE.js → reporter-6BFJCFVZ.js} +87 -87
- package/{run-RDFVO7FY.js → run-2QLSVP6M.js} +20 -18
- package/{run-exec-OGMXEVN5.js → run-exec-VYD2Q4BD.js} +20 -18
- package/security-archive-src-update-expired.js +11 -2
- package/{setup-KTJQPDJB.js → setup-TDX5NXUN.js} +15 -13
- package/{src-BJU7XZNK.js → src-AVMBIRBC.js} +22 -23
- package/{reporter-UU654STB.js → src-SWL4UPPI.js} +42 -7
- package/src-X66SVM5T.js +933 -0
- package/{token-SKICECA4.js → token-3RDRZ4AO.js} +9 -7
- package/{uninstall-MTZJ33TO.js → uninstall-CNAFZTLA.js} +18 -17
- package/{unpublish-3QBJZFHQ.js → unpublish-7YHQQYZG.js} +12 -10
- package/{update-TH477PKA.js → update-3W27EZWN.js} +17 -16
- package/{version-YIBQZLQS.js → version-K37LT6GZ.js} +13 -11
- package/{view-FG74OAOV.js → view-ZVAYKUL2.js} +18 -20
- 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-LHJ4PRJQ.js → whoami-IOUW56D6.js} +9 -7
- package/chunk-7NHXV6AH.js +0 -4488
- package/chunk-WAFERMRI.js +0 -1663
- package/chunk-ZLZ4XF46.js +0 -75
- package/{chunk-Y7CQIZ7Y.js → chunk-FEIPJIEN.js} +3 -3
|
@@ -9,42 +9,44 @@ globalThis.setInterval = _vlt_setInterval;
|
|
|
9
9
|
globalThis.clearInterval = _vlt_clearInterval;
|
|
10
10
|
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
|
+
import {
|
|
13
|
+
generateDefaultHelp,
|
|
14
|
+
generateFullHelp
|
|
15
|
+
} from "./chunk-FEIPJIEN.js";
|
|
12
16
|
import {
|
|
13
17
|
flush,
|
|
14
18
|
trackCommand,
|
|
15
19
|
trackError
|
|
16
20
|
} from "./chunk-G2YT2GWF.js";
|
|
17
|
-
import {
|
|
18
|
-
generateDefaultHelp,
|
|
19
|
-
generateFullHelp
|
|
20
|
-
} from "./chunk-Y7CQIZ7Y.js";
|
|
21
|
-
import {
|
|
22
|
-
isViewClass
|
|
23
|
-
} from "./chunk-RXNA2XCX.js";
|
|
24
21
|
import {
|
|
25
22
|
parseError
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
isGraphRunError,
|
|
29
|
-
splitDepID
|
|
30
|
-
} from "./chunk-FM5DQZVN.js";
|
|
23
|
+
} from "./chunk-VB3IWNHX.js";
|
|
31
24
|
import {
|
|
32
25
|
hasConfiguredRegistry,
|
|
33
26
|
missingRegistryError
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-T4GYDWUJ.js";
|
|
28
|
+
import {
|
|
29
|
+
isGraphRunError,
|
|
30
|
+
splitDepID
|
|
31
|
+
} from "./chunk-OCJDISSI.js";
|
|
35
32
|
import {
|
|
36
33
|
defaultView
|
|
37
34
|
} from "./chunk-WP6CYBPM.js";
|
|
35
|
+
import {
|
|
36
|
+
isLazyView,
|
|
37
|
+
isViewClass,
|
|
38
|
+
loadLazyView
|
|
39
|
+
} from "./chunk-4KCU2KZL.js";
|
|
38
40
|
import {
|
|
39
41
|
emitter
|
|
40
42
|
} from "./chunk-UBLFPJHV.js";
|
|
41
|
-
import {
|
|
42
|
-
isErrorWithCause,
|
|
43
|
-
isObject
|
|
44
|
-
} from "./chunk-Q46JRSZU.js";
|
|
45
43
|
import {
|
|
46
44
|
XDG
|
|
47
45
|
} from "./chunk-XNLSTHDK.js";
|
|
46
|
+
import {
|
|
47
|
+
isErrorWithCause,
|
|
48
|
+
isObject
|
|
49
|
+
} from "./chunk-IITIX4ID.js";
|
|
48
50
|
|
|
49
51
|
// ../../src/cli-sdk/src/print-err.ts
|
|
50
52
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -445,18 +447,30 @@ var styleText = (f, s) => utilStyleText(f, s, { validateStream: false });
|
|
|
445
447
|
var styleTextStdout = (_, s) => s;
|
|
446
448
|
var styleTextStderr = (_, s) => s;
|
|
447
449
|
var identity = (x) => x;
|
|
448
|
-
var
|
|
449
|
-
|
|
450
|
-
|
|
450
|
+
var selectView = (viewName, views) => {
|
|
451
|
+
if (viewName === "inspect") return identity;
|
|
452
|
+
if (viewName === "silent") return () => void 0;
|
|
453
|
+
if (isLazyView(views) || typeof views === "function") {
|
|
454
|
+
return views;
|
|
455
|
+
}
|
|
456
|
+
if (views) return views[viewName];
|
|
457
|
+
return identity;
|
|
458
|
+
};
|
|
459
|
+
var getView = async (conf, views) => {
|
|
460
|
+
const viewFn = selectView(conf.values.view, views);
|
|
451
461
|
if (!viewFn && conf.values.view !== defaultView && conf.values.view !== "json" && conf.values.view !== "silent") {
|
|
452
462
|
conf.values.view = defaultView;
|
|
453
463
|
process.env.VLT_VIEW = defaultView;
|
|
454
464
|
return getView(conf, views);
|
|
455
465
|
}
|
|
456
|
-
|
|
466
|
+
const resolved = viewFn ?? identity;
|
|
467
|
+
if (isLazyView(resolved)) {
|
|
468
|
+
return loadLazyView(resolved);
|
|
469
|
+
}
|
|
470
|
+
return resolved;
|
|
457
471
|
};
|
|
458
|
-
var startView = (conf, opts, views, { start } = { start: Date.now() }) => {
|
|
459
|
-
const View = getView(conf, views);
|
|
472
|
+
var startView = async (conf, opts, views, { start } = { start: Date.now() }) => {
|
|
473
|
+
const View = await getView(conf, views);
|
|
460
474
|
if (isViewClass(View)) {
|
|
461
475
|
const view = new View(opts, conf);
|
|
462
476
|
view.start();
|
|
@@ -498,7 +512,7 @@ var outputCommand = async (cliCommand, conf, { start, vltVersion } = {
|
|
|
498
512
|
(line) => stderr(line),
|
|
499
513
|
styleTextStderr
|
|
500
514
|
);
|
|
501
|
-
const { onDone, onError } = startView(
|
|
515
|
+
const { onDone, onError } = await startView(
|
|
502
516
|
conf,
|
|
503
517
|
// assume views will always output to stdout so use color support from there
|
|
504
518
|
{ colors: stdoutColor },
|
|
@@ -11,13 +11,15 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
|
|
13
13
|
// ../build/src/bins.ts
|
|
14
|
+
import module from "node:module";
|
|
14
15
|
import { resolve } from "node:path";
|
|
16
|
+
module.enableCompileCache();
|
|
15
17
|
var BINS_DIR = resolve(import.meta.dirname, "bins");
|
|
16
18
|
var run = async (command) => {
|
|
17
19
|
if (command) {
|
|
18
20
|
process.argv.splice(2, 0, command);
|
|
19
21
|
}
|
|
20
|
-
const vlt = await import("./src-
|
|
22
|
+
const vlt = await import("./src-AVMBIRBC.js");
|
|
21
23
|
await vlt.default();
|
|
22
24
|
};
|
|
23
25
|
|
|
@@ -2193,16 +2193,25 @@ var parse = (version) => {
|
|
|
2193
2193
|
return void 0;
|
|
2194
2194
|
}
|
|
2195
2195
|
};
|
|
2196
|
+
var rangeCache = /* @__PURE__ */ new Map();
|
|
2197
|
+
var MAX_RANGE_CACHE = 4096;
|
|
2196
2198
|
var parseRange = (range, includePrerelease = false) => {
|
|
2197
2199
|
if (typeof range === "object") {
|
|
2198
2200
|
if (range.includePrerelease === includePrerelease) return range;
|
|
2199
2201
|
range = range.raw;
|
|
2200
2202
|
}
|
|
2203
|
+
const key = `${+includePrerelease}\0${range}`;
|
|
2204
|
+
const cached = rangeCache.get(key);
|
|
2205
|
+
if (cached !== void 0 || rangeCache.has(key)) return cached;
|
|
2206
|
+
let parsed;
|
|
2201
2207
|
try {
|
|
2202
|
-
|
|
2208
|
+
parsed = new Range(range, includePrerelease);
|
|
2203
2209
|
} catch {
|
|
2204
|
-
|
|
2210
|
+
parsed = void 0;
|
|
2205
2211
|
}
|
|
2212
|
+
if (rangeCache.size >= MAX_RANGE_CACHE) rangeCache.clear();
|
|
2213
|
+
rangeCache.set(key, parsed);
|
|
2214
|
+
return parsed;
|
|
2206
2215
|
};
|
|
2207
2216
|
var satisfies = (version, range, includePrerelease = false) => {
|
|
2208
2217
|
if (typeof version === "string") {
|
|
@@ -2238,14 +2247,24 @@ var eq = (versionA, versionB) => compare(versionA, versionB) === 0;
|
|
|
2238
2247
|
var major = (version) => parse(version)?.major;
|
|
2239
2248
|
var minor = (version) => parse(version)?.minor;
|
|
2240
2249
|
var patch = (version) => parse(version)?.patch;
|
|
2250
|
+
var intersectsCache = /* @__PURE__ */ new WeakMap();
|
|
2241
2251
|
var intersects = (r1, r2, includePrerelease) => {
|
|
2242
2252
|
const range1 = typeof r1 === "string" ? parseRange(r1, includePrerelease) : r1;
|
|
2243
2253
|
const range2 = typeof r2 === "string" ? parseRange(r2, includePrerelease) : r2;
|
|
2244
2254
|
if (!range1 || !range2) return false;
|
|
2245
2255
|
if (range1.isAny || range2.isAny) return true;
|
|
2246
|
-
|
|
2256
|
+
let inner = intersectsCache.get(range1);
|
|
2257
|
+
const cached = inner?.get(range2);
|
|
2258
|
+
if (cached !== void 0) return cached;
|
|
2259
|
+
const result = range1.set.some(
|
|
2247
2260
|
(set1) => range2.set.some((set2) => intersectComparators(set1, set2))
|
|
2248
2261
|
);
|
|
2262
|
+
if (!inner) {
|
|
2263
|
+
inner = /* @__PURE__ */ new WeakMap();
|
|
2264
|
+
intersectsCache.set(range1, inner);
|
|
2265
|
+
}
|
|
2266
|
+
inner.set(range2, result);
|
|
2267
|
+
return result;
|
|
2249
2268
|
};
|
|
2250
2269
|
var subset = (r1, r2, includePrerelease) => {
|
|
2251
2270
|
const range1 = typeof r1 === "string" ? parseRange(r1, includePrerelease) : r1;
|
|
@@ -11,16 +11,16 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
stderr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E737X73P.js";
|
|
15
15
|
import {
|
|
16
16
|
mermaidOutput
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OR5LSCSK.js";
|
|
18
18
|
import {
|
|
19
19
|
ViewClass
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4KCU2KZL.js";
|
|
21
21
|
import {
|
|
22
22
|
urlOpen
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HAYXR3MW.js";
|
|
24
24
|
|
|
25
25
|
// ../../src/cli-sdk/src/mermaid-image-view.ts
|
|
26
26
|
var MermaidImageView = class extends ViewClass {
|