@vltpkg/cli-js 1.0.10 → 1.1.1
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-4RPC3X5N.js → access-YYMAAPHV.js} +42 -11
- package/{bugs-K6QLQLL4.js → bugs-RK5JBPSC.js} +19 -19
- package/{build-VD4L5IED.js → build-DVJSYCNF.js} +8 -9
- package/{cache-Q6FUUEQF.js → cache-JKQNGZ7L.js} +21 -15
- package/{chunk-5JFRXIK2.js → chunk-2PWSMJD7.js} +20 -1
- package/{chunk-5HBKYSTX.js → chunk-34TE4HZS.js} +36 -4
- package/{chunk-WAYVHANF.js → chunk-3LUM7NX5.js} +30 -5
- package/{chunk-NA732FNL.js → chunk-6FT6K5YN.js} +98 -6
- package/{chunk-HAYXR3MW.js → chunk-APMYKJI2.js} +1 -1
- package/{chunk-ZNCVQQDT.js → chunk-BWEH7DHQ.js} +2 -2
- package/{chunk-5HPGL5WS.js → chunk-CBASIDQH.js} +1 -1
- package/{chunk-MNK55XSE.js → chunk-CEHPRPGQ.js} +21 -0
- package/{chunk-2YJ5MESP.js → chunk-DF5K4CYR.js} +6 -10
- package/{chunk-DAS7TVRN.js → chunk-DR4Z63B6.js} +5 -5
- package/{chunk-NWLS3VOQ.js → chunk-DS7YMIHP.js} +239 -131
- package/{chunk-XUP35M5Q.js → chunk-GDT6KI4I.js} +4 -4
- package/{chunk-FUCQ7ARR.js → chunk-JZJWASXL.js} +36 -25
- package/{chunk-B5IILBX7.js → chunk-KDF7PEBY.js} +4 -4
- package/{chunk-P5S2TFCF.js → chunk-LN2A74PF.js} +14 -10
- package/{chunk-VL7RJVNN.js → chunk-LR42WTKN.js} +20 -11
- package/chunk-MZA6N2TA.js +190 -0
- package/{chunk-3564IL5W.js → chunk-QQYTPGIL.js} +1 -1
- package/chunk-SNOBGFNM.js +129 -0
- package/{chunk-LPIBYUMT.js → chunk-U7TEQCBN.js} +27 -1
- package/{chunk-TYRKIWGF.js → chunk-V4YCZZHY.js} +3 -3
- package/chunk-WD74RJXW.js +75 -0
- package/{chunk-XFI4THXZ.js → chunk-WE2TQN32.js} +1 -1
- package/{chunk-USTJECVS.js → chunk-X2AWQGYG.js} +1 -1
- package/{chunk-BSPUKIWY.js → chunk-XIF734VO.js} +12 -2
- package/chunk-YBVTY6ZW.js +91 -0
- package/{ci-G4PJWJQE.js → ci-WVYVR4XK.js} +10 -11
- package/cli-package.json +1 -1
- package/{config-WTIWWXRD.js → config-2MFZVP2N.js} +11 -11
- package/{config-66ARNESN.js → config-VYOTYBGS.js} +8 -6
- package/{create-DF6RQTHC.js → create-OJPLHBRR.js} +18 -18
- package/{deprecate-2KTC2HKH.js → deprecate-V4PKGFF7.js} +22 -19
- package/{dist-tag-QKJQIOGN.js → dist-tag-DNLV4VDE.js} +24 -26
- package/{docs-YSWJTGYX.js → docs-LXHDCGL5.js} +19 -19
- package/{exec-5XIMPSBI.js → exec-P32YSP44.js} +18 -18
- package/{exec-cache-OGX7WR5P.js → exec-cache-JZ5PDTOY.js} +16 -16
- package/{exec-local-SB7EPYED.js → exec-local-HHA464H4.js} +14 -15
- package/{help-GMCQHGVN.js → help-GVTTOYUL.js} +4 -5
- package/{init-KXIIWHBA.js → init-RENGG74N.js} +8 -9
- package/{install-ODTEMAMS.js → install-V6VXOBH2.js} +38 -15
- package/{list-QS4FLJSU.js → list-7N7Y5OXB.js} +42 -30
- package/{login-6TGYRY43.js → login-D2QSAUJC.js} +12 -12
- package/{logout-GOAB7KHJ.js → logout-QPOYBQNF.js} +8 -8
- package/{pack-PJDH6PKP.js → pack-4YYGXP3A.js} +12 -13
- package/package.json +1 -1
- package/{ping-ANBW2IRW.js → ping-QYRIZONU.js} +8 -8
- package/{pkg-GZWUXU65.js → pkg-WQTNABKT.js} +11 -12
- package/{profile-BLY74CMB.js → profile-PRI7WXK7.js} +21 -8
- package/{publish-W2KOTNMB.js → publish-PSBYJQS7.js} +33 -75
- package/{query-3PUMU5ON.js → query-UFYLQW4N.js} +36 -24
- package/{registry-ONSDWNPV.js → registry-YTJZ3AQD.js} +3 -3
- package/registry-client-src-revalidate.js +426 -217
- package/{repo-LZ6STH4C.js → repo-4S6ETFXX.js} +19 -19
- package/{reporter-SDMDYYMJ.js → reporter-GLWYHI2Y.js} +23 -1
- package/{run-JMIBADHE.js → run-OU7NUB7A.js} +14 -15
- package/{run-exec-JEKM2O53.js → run-exec-QPBY7ULE.js} +14 -15
- package/security-archive-src-update-expired.js +97 -63
- package/{setup-BTBU3NAI.js → setup-23QXG473.js} +43 -24
- package/{src-J4BAYOBO.js → src-3GN7TDNH.js} +14 -6
- package/{src-23VBKASP.js → src-575IYJOL.js} +17 -18
- package/{token-PUJ7QN6D.js → token-FCIA3RGD.js} +9 -9
- package/{uninstall-OTISP2T7.js → uninstall-BQVZVKB5.js} +12 -12
- package/{unpublish-X75EEQAN.js → unpublish-YGJ5HEYF.js} +43 -40
- package/{update-CKXX5POE.js → update-WCGV66JK.js} +35 -13
- package/{version-24B2X7M7.js → version-7EA3UQG7.js} +10 -11
- package/{view-Q7MAQ6R3.js → view-5FWIENVE.js} +10 -10
- 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-S6CQZFE3.js → whoami-O4ZTBIC4.js} +29 -13
- package/chunk-E74WGW5C.js +0 -49
- package/chunk-UBLFPJHV.js +0 -40
- package/chunk-Y3QEV76Q.js +0 -75
- package/registry-client-package.json +0 -75
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
asError,
|
|
14
|
+
isObject
|
|
15
|
+
} from "./chunk-VFBCWAOC.js";
|
|
16
|
+
import {
|
|
17
|
+
error
|
|
18
|
+
} from "./chunk-WZWDS3W4.js";
|
|
19
|
+
|
|
20
|
+
// ../../src/registry-client/src/registry-error.ts
|
|
21
|
+
import { STATUS_CODES } from "node:http";
|
|
22
|
+
var MAX_DETAIL_LENGTH = 512;
|
|
23
|
+
var truncate = (s) => s.length <= MAX_DETAIL_LENGTH ? s : `${s.slice(0, MAX_DETAIL_LENGTH - 1)}\u2026`;
|
|
24
|
+
var isHTML = (s) => /^\s*(<!doctype\s+html|<html\b)/i.test(s);
|
|
25
|
+
var stripTags = (s) => s.replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1>/gi, " ").replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
|
|
26
|
+
var detailFromJSON = (text) => {
|
|
27
|
+
let body;
|
|
28
|
+
try {
|
|
29
|
+
body = JSON.parse(text);
|
|
30
|
+
} catch {
|
|
31
|
+
return void 0;
|
|
32
|
+
}
|
|
33
|
+
if (!body || typeof body !== "object") return void 0;
|
|
34
|
+
const rec = body;
|
|
35
|
+
const nested = rec.error;
|
|
36
|
+
for (const v of [rec.error, rec.message, nested?.message]) {
|
|
37
|
+
if (typeof v === "string" && v.trim()) return v.trim();
|
|
38
|
+
}
|
|
39
|
+
return void 0;
|
|
40
|
+
};
|
|
41
|
+
var registryErrorMessage = (response) => {
|
|
42
|
+
const statusMessage = STATUS_CODES[response.statusCode];
|
|
43
|
+
const status = `${response.statusCode}${statusMessage ? ` ${statusMessage}` : ""}`;
|
|
44
|
+
let text;
|
|
45
|
+
try {
|
|
46
|
+
text = response.text?.().trim() ?? "";
|
|
47
|
+
} catch {
|
|
48
|
+
return status;
|
|
49
|
+
}
|
|
50
|
+
if (!text) return status;
|
|
51
|
+
const detail = detailFromJSON(text) ?? (isHTML(text) ? stripTags(text) : text);
|
|
52
|
+
return detail ? `${status} \u2014 ${truncate(detail)}` : status;
|
|
53
|
+
};
|
|
54
|
+
var registryError = (response, { message, url, method = "GET", advice }, from, cause) => {
|
|
55
|
+
const { statusCode } = response;
|
|
56
|
+
const denied = statusCode === 401 || statusCode === 403;
|
|
57
|
+
const extra = advice?.(statusCode);
|
|
58
|
+
const tips = (Array.isArray(extra) ? extra : [extra]).filter(
|
|
59
|
+
(t) => !!t
|
|
60
|
+
);
|
|
61
|
+
const warn = tips.map((t) => `
|
|
62
|
+
\u26A0\uFE0F ${t}`).join("");
|
|
63
|
+
return error(
|
|
64
|
+
`${message}: ${registryErrorMessage(response)}${warn}`,
|
|
65
|
+
{
|
|
66
|
+
code: denied ? "ENEEDAUTH" : "EREQUEST",
|
|
67
|
+
url,
|
|
68
|
+
method,
|
|
69
|
+
status: statusCode,
|
|
70
|
+
response,
|
|
71
|
+
...cause === void 0 ? {} : { cause: asError(cause) }
|
|
72
|
+
},
|
|
73
|
+
from
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
var assertOk = (response, options) => {
|
|
77
|
+
const { statusCode } = response;
|
|
78
|
+
if (!(statusCode < 200 || statusCode >= 300)) return;
|
|
79
|
+
throw registryError(response, options, assertOk);
|
|
80
|
+
};
|
|
81
|
+
var isTextFn = (v) => typeof v === "function";
|
|
82
|
+
var requestError = (err, { message, url, method = "GET", advice }) => {
|
|
83
|
+
const e = asError(err);
|
|
84
|
+
const reason = e.message;
|
|
85
|
+
const bag = isObject(e.cause) ? e.cause : void 0;
|
|
86
|
+
const res = isObject(bag?.response) ? bag.response : void 0;
|
|
87
|
+
const statusCode = typeof bag?.status === "number" ? bag.status : typeof res?.statusCode === "number" ? res.statusCode : void 0;
|
|
88
|
+
if (statusCode !== void 0) {
|
|
89
|
+
let body = "";
|
|
90
|
+
try {
|
|
91
|
+
const text = res?.text;
|
|
92
|
+
if (isTextFn(text)) body = String(text()).trim();
|
|
93
|
+
} catch {
|
|
94
|
+
}
|
|
95
|
+
return registryError(
|
|
96
|
+
{ ...res, statusCode, text: () => body || reason },
|
|
97
|
+
{
|
|
98
|
+
message,
|
|
99
|
+
url,
|
|
100
|
+
method,
|
|
101
|
+
advice: (sc) => [
|
|
102
|
+
// the reason only moves here when the body took its place
|
|
103
|
+
...body ? [reason] : [],
|
|
104
|
+
...[advice?.(sc)].flat()
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
requestError,
|
|
108
|
+
e
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
const inner = bag?.cause === void 0 ? void 0 : asError(bag.cause);
|
|
112
|
+
const detail = inner?.message && inner.message !== reason ? `${reason}: ${inner.message}` : reason;
|
|
113
|
+
return error(
|
|
114
|
+
`${message}: ${detail}`,
|
|
115
|
+
{
|
|
116
|
+
code: "EREQUEST",
|
|
117
|
+
url,
|
|
118
|
+
method,
|
|
119
|
+
cause: inner ?? e
|
|
120
|
+
},
|
|
121
|
+
requestError
|
|
122
|
+
);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export {
|
|
126
|
+
registryErrorMessage,
|
|
127
|
+
assertOk,
|
|
128
|
+
requestError
|
|
129
|
+
};
|
|
@@ -13,6 +13,29 @@ import {
|
|
|
13
13
|
error
|
|
14
14
|
} from "./chunk-WZWDS3W4.js";
|
|
15
15
|
|
|
16
|
+
// ../../src/output/src/index.ts
|
|
17
|
+
import EventEmitter from "node:events";
|
|
18
|
+
var OutputEmitter = class {
|
|
19
|
+
emitter = new EventEmitter();
|
|
20
|
+
emit(eventName, payload) {
|
|
21
|
+
this.emitter.emit(eventName, payload);
|
|
22
|
+
}
|
|
23
|
+
on(eventName, handler) {
|
|
24
|
+
this.emitter.on(eventName, handler);
|
|
25
|
+
}
|
|
26
|
+
off(eventName, handler) {
|
|
27
|
+
this.emitter.off(eventName, handler);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var emitter = new OutputEmitter();
|
|
31
|
+
var logRequest = (url, state, details = {}) => {
|
|
32
|
+
emitter.emit("request", { url, state, ...details });
|
|
33
|
+
};
|
|
34
|
+
var graphStep = (step) => {
|
|
35
|
+
emitter.emit("graphStep", { step, state: "start" });
|
|
36
|
+
return () => emitter.emit("graphStep", { step, state: "stop" });
|
|
37
|
+
};
|
|
38
|
+
|
|
16
39
|
// ../../node_modules/.vlt/~npm~lru-cache@11.5.2/node_modules/lru-cache/dist/esm/node/index.min.js
|
|
17
40
|
import { tracingChannel as G, channel as P } from "node:diagnostics_channel";
|
|
18
41
|
var S = P("lru-cache:metrics");
|
|
@@ -850,5 +873,8 @@ export {
|
|
|
850
873
|
I,
|
|
851
874
|
promiseSpawn,
|
|
852
875
|
which,
|
|
853
|
-
whichSync
|
|
876
|
+
whichSync,
|
|
877
|
+
emitter,
|
|
878
|
+
logRequest,
|
|
879
|
+
graphStep
|
|
854
880
|
};
|
|
@@ -11,14 +11,14 @@ 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-LN2A74PF.js";
|
|
15
15
|
import {
|
|
16
16
|
findCmdShimIfExists,
|
|
17
17
|
install
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JZJWASXL.js";
|
|
19
19
|
import {
|
|
20
20
|
PathScurry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X2AWQGYG.js";
|
|
22
22
|
import {
|
|
23
23
|
Spec
|
|
24
24
|
} from "./chunk-XKVU23NC.js";
|
|
@@ -0,0 +1,75 @@
|
|
|
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-YYMAAPHV.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-RK5JBPSC.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-DVJSYCNF.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-JKQNGZ7L.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-WVYVR4XK.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-2MFZVP2N.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-OJPLHBRR.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-V4PKGFF7.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-DNLV4VDE.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-LXHDCGL5.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-JZ5PDTOY.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-HHA464H4.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-P32YSP44.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-GVTTOYUL.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-RENGG74N.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-V6VXOBH2.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-GLWYHI2Y.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-7N7Y5OXB.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-D2QSAUJC.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-QPOYBQNF.js"),
|
|
41
|
+
"./commands/pack.ts": () => import("./pack-4YYGXP3A.js"),
|
|
42
|
+
"./commands/ping.ts": () => import("./ping-QYRIZONU.js"),
|
|
43
|
+
"./commands/pkg.ts": () => import("./pkg-WQTNABKT.js"),
|
|
44
|
+
"./commands/profile.ts": () => import("./profile-PRI7WXK7.js"),
|
|
45
|
+
"./commands/publish.ts": () => import("./publish-PSBYJQS7.js"),
|
|
46
|
+
"./commands/query.ts": () => import("./query-UFYLQW4N.js"),
|
|
47
|
+
"./commands/registry.ts": () => import("./registry-YTJZ3AQD.js"),
|
|
48
|
+
"./commands/repo.ts": () => import("./repo-4S6ETFXX.js"),
|
|
49
|
+
"./commands/run-exec.ts": () => import("./run-exec-QPBY7ULE.js"),
|
|
50
|
+
"./commands/run.ts": () => import("./run-OU7NUB7A.js"),
|
|
51
|
+
"./commands/setup.ts": () => import("./setup-23QXG473.js"),
|
|
52
|
+
"./commands/token.ts": () => import("./token-FCIA3RGD.js"),
|
|
53
|
+
"./commands/uninstall.ts": () => import("./uninstall-BQVZVKB5.js"),
|
|
54
|
+
"./commands/unpublish.ts": () => import("./unpublish-YGJ5HEYF.js"),
|
|
55
|
+
"./commands/update.ts": () => import("./update-WCGV66JK.js"),
|
|
56
|
+
"./commands/version.ts": () => import("./version-7EA3UQG7.js"),
|
|
57
|
+
"./commands/view.ts": () => import("./view-5FWIENVE.js"),
|
|
58
|
+
"./commands/whoami.ts": () => import("./whoami-O4ZTBIC4.js")
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// ../../src/cli-sdk/src/load-command.ts
|
|
62
|
+
var loadCommand = async (command) => {
|
|
63
|
+
try {
|
|
64
|
+
return await globImport_commands_ts(`./commands/${command}.ts`);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw error("Could not load command", {
|
|
67
|
+
found: command,
|
|
68
|
+
cause: e
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
loadCommand
|
|
75
|
+
};
|
|
@@ -9,10 +9,13 @@ 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
|
+
asUnknownSpecPrefix
|
|
14
|
+
} from "./chunk-2PWSMJD7.js";
|
|
12
15
|
import {
|
|
13
16
|
addKey,
|
|
14
17
|
asDependency
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JZJWASXL.js";
|
|
16
19
|
import {
|
|
17
20
|
joinDepIDTuple,
|
|
18
21
|
splitDepID
|
|
@@ -65,6 +68,13 @@ var rebaseFileSpec = (spec, importerPath, scurryCwd, specOptions, monorepo) => {
|
|
|
65
68
|
if (rebasedPath === spec.file) return spec;
|
|
66
69
|
return Spec.parseArgs(rebasedPath, specOptions);
|
|
67
70
|
};
|
|
71
|
+
var parseArg = (item, options) => {
|
|
72
|
+
try {
|
|
73
|
+
return Spec.parseArgs(item, options);
|
|
74
|
+
} catch (er) {
|
|
75
|
+
throw asUnknownSpecPrefix(er);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
68
78
|
var parseAddArgs = (config, scurry, monorepo) => {
|
|
69
79
|
const add = new AddImportersDependenciesMapImpl();
|
|
70
80
|
const items = config.positionals;
|
|
@@ -74,7 +84,7 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
74
84
|
const parsedItems = [];
|
|
75
85
|
let hasFileSpecs = false;
|
|
76
86
|
for (const item of items) {
|
|
77
|
-
const spec =
|
|
87
|
+
const spec = parseArg(item, specOptions);
|
|
78
88
|
parsedItems.push({ spec, type });
|
|
79
89
|
if (spec.type === "file") hasFileSpecs = true;
|
|
80
90
|
add.modifiedDependencies = true;
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
|
|
13
|
+
// ../../src/user-agent/package.json
|
|
14
|
+
var package_default = {
|
|
15
|
+
name: "@vltpkg/user-agent",
|
|
16
|
+
description: "The User-Agent string that vlt sends with every outbound request",
|
|
17
|
+
version: "1.1.1",
|
|
18
|
+
repository: {
|
|
19
|
+
type: "git",
|
|
20
|
+
url: "git+https://github.com/vltpkg/vltpkg.git",
|
|
21
|
+
directory: "src/user-agent"
|
|
22
|
+
},
|
|
23
|
+
author: "vlt technology inc. <support@vlt.sh> (http://vlt.sh)",
|
|
24
|
+
devDependencies: {
|
|
25
|
+
"@eslint/js": "catalog:",
|
|
26
|
+
"@types/node": "catalog:",
|
|
27
|
+
eslint: "catalog:",
|
|
28
|
+
prettier: "catalog:",
|
|
29
|
+
tap: "catalog:",
|
|
30
|
+
typedoc: "catalog:",
|
|
31
|
+
typescript: "catalog:",
|
|
32
|
+
"typescript-eslint": "catalog:"
|
|
33
|
+
},
|
|
34
|
+
license: "BSD-2-Clause-Patent",
|
|
35
|
+
engines: {
|
|
36
|
+
node: ">=22.22.0"
|
|
37
|
+
},
|
|
38
|
+
scripts: {
|
|
39
|
+
format: "prettier --write . --log-level warn --ignore-path ../../.prettierignore --cache",
|
|
40
|
+
"format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
|
|
41
|
+
lint: "eslint . --fix",
|
|
42
|
+
"lint:check": "eslint .",
|
|
43
|
+
prepack: "tsc -p tsconfig.publish.json && ../../scripts/update-dist-exports.ts",
|
|
44
|
+
snap: "tap",
|
|
45
|
+
test: "tap",
|
|
46
|
+
posttest: "tsc --noEmit",
|
|
47
|
+
typecheck: "tsc --noEmit"
|
|
48
|
+
},
|
|
49
|
+
tap: {
|
|
50
|
+
extends: "../../tap-config.yaml"
|
|
51
|
+
},
|
|
52
|
+
prettier: "../../.prettierrc.js",
|
|
53
|
+
module: "./src/index.ts",
|
|
54
|
+
type: "module",
|
|
55
|
+
exports: {
|
|
56
|
+
"./package.json": "./package.json",
|
|
57
|
+
".": {
|
|
58
|
+
import: {
|
|
59
|
+
default: "./src/index.ts"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
files: [
|
|
64
|
+
"dist"
|
|
65
|
+
],
|
|
66
|
+
bugs: {
|
|
67
|
+
url: "https://github.com/vltpkg/vltpkg/issues"
|
|
68
|
+
},
|
|
69
|
+
homepage: "https://github.com/vltpkg/vltpkg/tree/main/src/user-agent#readme"
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// ../../src/user-agent/src/index.ts
|
|
73
|
+
var { navigator: nav, process: proc } = globalThis;
|
|
74
|
+
var versions = proc?.versions ?? {};
|
|
75
|
+
var isObj = (v) => typeof v === "object" && !!v;
|
|
76
|
+
var { Deno, Bun } = globalThis;
|
|
77
|
+
var isDeno = isObj(Deno);
|
|
78
|
+
var isBun = !isDeno && isObj(Bun);
|
|
79
|
+
var isNode = !isDeno && !isBun && "node" in versions;
|
|
80
|
+
var bun = isBun ? versions.bun : void 0;
|
|
81
|
+
var deno = isDeno ? versions.deno : void 0;
|
|
82
|
+
var node = isNode ? versions.node : void 0;
|
|
83
|
+
var isBrowser = !isDeno && !isBun && !isNode;
|
|
84
|
+
var runtime = nav?.userAgent ?? (bun ? `Bun/${bun}` : deno ? `Deno/${deno}` : node ? `Node.js/${node}` : "(unknown platform)");
|
|
85
|
+
var userAgent = `vlt/${package_default.version} ${runtime}`;
|
|
86
|
+
var userAgentHeaders = isBrowser ? {} : { "User-Agent": userAgent };
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
userAgent,
|
|
90
|
+
userAgentHeaders
|
|
91
|
+
};
|
|
@@ -11,22 +11,21 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
install
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-USTJECVS.js";
|
|
17
|
-
import "./chunk-YOE3VZFX.js";
|
|
14
|
+
} from "./chunk-JZJWASXL.js";
|
|
15
|
+
import "./chunk-DF5K4CYR.js";
|
|
18
16
|
import {
|
|
19
17
|
commandUsage
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-MNK55XSE.js";
|
|
18
|
+
} from "./chunk-CBASIDQH.js";
|
|
19
|
+
import "./chunk-X2AWQGYG.js";
|
|
23
20
|
import {
|
|
24
21
|
lazyView
|
|
25
22
|
} from "./chunk-4KCU2KZL.js";
|
|
23
|
+
import "./chunk-YOE3VZFX.js";
|
|
24
|
+
import "./chunk-XKVU23NC.js";
|
|
25
|
+
import "./chunk-CEHPRPGQ.js";
|
|
26
26
|
import "./chunk-HTOTG4TS.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-UBLFPJHV.js";
|
|
27
|
+
import "./chunk-YBVTY6ZW.js";
|
|
28
|
+
import "./chunk-U7TEQCBN.js";
|
|
30
29
|
import "./chunk-VFBCWAOC.js";
|
|
31
30
|
import "./chunk-XNLSTHDK.js";
|
|
32
31
|
import "./chunk-BHJT53TP.js";
|
|
@@ -60,7 +59,7 @@ var usage = () => commandUsage({
|
|
|
60
59
|
var views = {
|
|
61
60
|
json: (i) => i.graph.toJSON(),
|
|
62
61
|
human: lazyView(
|
|
63
|
-
async () => (await import("./reporter-
|
|
62
|
+
async () => (await import("./reporter-GLWYHI2Y.js")).InstallReporter
|
|
64
63
|
)
|
|
65
64
|
};
|
|
66
65
|
var command = async (conf) => {
|
package/cli-package.json
CHANGED
|
@@ -13,31 +13,31 @@ import {
|
|
|
13
13
|
get,
|
|
14
14
|
set
|
|
15
15
|
} from "./chunk-DBANBIL2.js";
|
|
16
|
+
import {
|
|
17
|
+
asRootError
|
|
18
|
+
} from "./chunk-GDJ7JT2R.js";
|
|
16
19
|
import {
|
|
17
20
|
pairsToRecords,
|
|
18
21
|
recordsToPairs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-6FT6K5YN.js";
|
|
23
|
+
import "./chunk-LN2A74PF.js";
|
|
21
24
|
import "./chunk-ZWKI5OSF.js";
|
|
22
|
-
import {
|
|
23
|
-
asRootError
|
|
24
|
-
} from "./chunk-GDJ7JT2R.js";
|
|
25
|
-
import "./chunk-USTJECVS.js";
|
|
26
|
-
import "./chunk-YOE3VZFX.js";
|
|
27
25
|
import {
|
|
28
26
|
commandUsage
|
|
29
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CBASIDQH.js";
|
|
28
|
+
import "./chunk-X2AWQGYG.js";
|
|
29
|
+
import "./chunk-YOE3VZFX.js";
|
|
30
30
|
import "./chunk-XKVU23NC.js";
|
|
31
31
|
import {
|
|
32
32
|
getSortedKeys,
|
|
33
33
|
isRecordField
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CEHPRPGQ.js";
|
|
35
35
|
import {
|
|
36
36
|
find,
|
|
37
37
|
load
|
|
38
38
|
} from "./chunk-HTOTG4TS.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-SNOBGFNM.js";
|
|
40
|
+
import "./chunk-U7TEQCBN.js";
|
|
41
41
|
import {
|
|
42
42
|
isObject
|
|
43
43
|
} from "./chunk-VFBCWAOC.js";
|
|
@@ -11,14 +11,15 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
Config,
|
|
14
|
+
assertRegistryKeys,
|
|
14
15
|
configWriteTarget,
|
|
15
16
|
kCustomInspect,
|
|
16
17
|
pairsToRecords,
|
|
17
18
|
recordsToPairs
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-6FT6K5YN.js";
|
|
20
|
+
import "./chunk-LN2A74PF.js";
|
|
20
21
|
import "./chunk-ZWKI5OSF.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-X2AWQGYG.js";
|
|
22
23
|
import "./chunk-YOE3VZFX.js";
|
|
23
24
|
import "./chunk-XKVU23NC.js";
|
|
24
25
|
import {
|
|
@@ -26,10 +27,10 @@ import {
|
|
|
26
27
|
definition,
|
|
27
28
|
isRecordField,
|
|
28
29
|
recordFields
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CEHPRPGQ.js";
|
|
30
31
|
import "./chunk-HTOTG4TS.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-SNOBGFNM.js";
|
|
33
|
+
import "./chunk-U7TEQCBN.js";
|
|
33
34
|
import "./chunk-VFBCWAOC.js";
|
|
34
35
|
import "./chunk-XNLSTHDK.js";
|
|
35
36
|
import "./chunk-VE6CCH33.js";
|
|
@@ -37,6 +38,7 @@ import "./chunk-WZWDS3W4.js";
|
|
|
37
38
|
import "./chunk-PZLD7RTK.js";
|
|
38
39
|
export {
|
|
39
40
|
Config,
|
|
41
|
+
assertRegistryKeys,
|
|
40
42
|
commands,
|
|
41
43
|
configWriteTarget,
|
|
42
44
|
definition,
|
|
@@ -11,41 +11,41 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
vlxResolve
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V4YCZZHY.js";
|
|
15
15
|
import {
|
|
16
16
|
ExecCommand,
|
|
17
17
|
views
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KDF7PEBY.js";
|
|
19
19
|
import "./chunk-RIYFGX27.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-P5S2TFCF.js";
|
|
22
|
-
import "./chunk-ZWKI5OSF.js";
|
|
20
|
+
import "./chunk-3LUM7NX5.js";
|
|
23
21
|
import {
|
|
24
22
|
styleTextStdout
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-LR42WTKN.js";
|
|
24
|
+
import "./chunk-34TE4HZS.js";
|
|
27
25
|
import "./chunk-G2YT2GWF.js";
|
|
28
26
|
import "./chunk-GDJ7JT2R.js";
|
|
29
|
-
import "./chunk-5JFRXIK2.js";
|
|
30
27
|
import "./chunk-VTEFO2FT.js";
|
|
28
|
+
import "./chunk-LN2A74PF.js";
|
|
29
|
+
import "./chunk-ZWKI5OSF.js";
|
|
31
30
|
import "./chunk-WGDTG44V.js";
|
|
31
|
+
import "./chunk-2PWSMJD7.js";
|
|
32
32
|
import {
|
|
33
33
|
exec,
|
|
34
34
|
execFG
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-USTJECVS.js";
|
|
38
|
-
import "./chunk-YOE3VZFX.js";
|
|
35
|
+
} from "./chunk-JZJWASXL.js";
|
|
36
|
+
import "./chunk-DF5K4CYR.js";
|
|
39
37
|
import {
|
|
40
38
|
commandUsage
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-MNK55XSE.js";
|
|
39
|
+
} from "./chunk-CBASIDQH.js";
|
|
40
|
+
import "./chunk-X2AWQGYG.js";
|
|
44
41
|
import "./chunk-4KCU2KZL.js";
|
|
42
|
+
import "./chunk-YOE3VZFX.js";
|
|
43
|
+
import "./chunk-XKVU23NC.js";
|
|
44
|
+
import "./chunk-CEHPRPGQ.js";
|
|
45
45
|
import "./chunk-HTOTG4TS.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-SNOBGFNM.js";
|
|
47
|
+
import "./chunk-YBVTY6ZW.js";
|
|
48
|
+
import "./chunk-U7TEQCBN.js";
|
|
49
49
|
import "./chunk-VFBCWAOC.js";
|
|
50
50
|
import "./chunk-XNLSTHDK.js";
|
|
51
51
|
import "./chunk-BHJT53TP.js";
|