@vltpkg/cli-js 1.0.9 → 1.1.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-5DJJIIGD.js → access-GLWBGQLN.js} +41 -10
- package/{bugs-NRHU4ENC.js → bugs-OCQYFWFE.js} +18 -18
- package/{build-5VZJTEBD.js → build-CPWGNTCM.js} +7 -8
- package/{cache-QZ5XII4U.js → cache-SL7DQMY2.js} +20 -14
- package/chunk-2IMBYPYC.js +190 -0
- package/{chunk-5JFRXIK2.js → chunk-2PWSMJD7.js} +20 -1
- package/{chunk-LHMEJF6J.js → chunk-47M7IZ5P.js} +94 -39
- package/{chunk-6NQBG3ZR.js → chunk-6LEMBT22.js} +30 -5
- package/chunk-A75UYRJC.js +75 -0
- package/{chunk-HAYXR3MW.js → chunk-APMYKJI2.js} +1 -1
- package/{chunk-A6TBJ4AB.js → chunk-BUXPKRYB.js} +4 -4
- package/{chunk-PTR5IGFQ.js → chunk-CBASIDQH.js} +1 -1
- package/{chunk-XISRK3R5.js → chunk-CEHPRPGQ.js} +38 -0
- package/{chunk-KCXN2GTX.js → chunk-CF5EGH4W.js} +12 -2
- package/{chunk-HRY5MJCA.js → chunk-CTQSUNNE.js} +35 -19
- package/{chunk-ATYE2HQV.js → chunk-GJGQTRAT.js} +165 -30
- package/{chunk-YAIKXFLN.js → chunk-HYCYL4RX.js} +1 -1
- package/{chunk-EBXBZ2Y5.js → chunk-J2XWQVDK.js} +98 -6
- package/{chunk-SBEZ7RUC.js → chunk-JSQUYHU7.js} +5 -5
- package/{chunk-GKCU7R4B.js → chunk-S6Y57MUS.js} +4 -4
- package/chunk-SNOBGFNM.js +129 -0
- package/{chunk-MXCWH7WC.js → chunk-TNEMFBP5.js} +41 -10
- package/{chunk-USRMYD4F.js → chunk-TUXWDPCQ.js} +1 -1
- package/{chunk-2HDWM6AD.js → chunk-TXTK2PKN.js} +2 -2
- package/{chunk-LPIBYUMT.js → chunk-U7TEQCBN.js} +27 -1
- package/{chunk-XFI4THXZ.js → chunk-WE2TQN32.js} +1 -1
- package/{chunk-USTJECVS.js → chunk-X2AWQGYG.js} +1 -1
- package/{chunk-6WMR7BLF.js → chunk-YKCGWKUE.js} +3 -3
- package/{chunk-2YJ5MESP.js → chunk-ZDQJWRCU.js} +1 -1
- package/{ci-MBYD4AGJ.js → ci-O2RSLTBX.js} +9 -10
- package/cli-package.json +1 -1
- package/{config-DTZ7EWQF.js → config-ZBIF32GS.js} +11 -11
- package/{config-RQKPUW5B.js → config-ZPH7V77F.js} +8 -6
- package/{create-CYTNZ66Z.js → create-2JX4RV5U.js} +17 -17
- package/{deprecate-H3L4MPZS.js → deprecate-XJLP2TUW.js} +21 -18
- package/{dist-tag-CZHTW7C6.js → dist-tag-F6ZFWGQU.js} +23 -25
- package/{docs-Z76UCNLH.js → docs-IJCZZ4V6.js} +18 -18
- package/{exec-PGPFYCAM.js → exec-IWSS2LUA.js} +17 -17
- package/{exec-cache-HPILZWUY.js → exec-cache-AG77OOEE.js} +15 -15
- package/{exec-local-VKDC6XAQ.js → exec-local-QXPWC4QG.js} +13 -14
- package/{help-QPZESL4Y.js → help-TGNDNWLP.js} +4 -4
- package/{init-MMQV6UC5.js → init-WU7BRPKR.js} +7 -8
- package/{install-KZPDV66V.js → install-74XKB5N7.js} +37 -14
- package/{list-PJ2U4FE7.js → list-TOEC6Q3A.js} +41 -29
- package/{login-L3D5FQGT.js → login-WJYMAFSL.js} +11 -11
- package/{logout-SRZ574SQ.js → logout-MTRQWI3L.js} +7 -7
- package/{pack-OI5JLA3R.js → pack-FFWGLSNC.js} +11 -12
- package/package.json +1 -1
- package/{ping-VQ662NAP.js → ping-DWUVTCJB.js} +7 -7
- package/{pkg-HNPRMTWV.js → pkg-KNZW5FIA.js} +10 -11
- package/{profile-Z7IOODZ4.js → profile-6W2ABNXL.js} +20 -7
- package/{publish-KTUUX25U.js → publish-HGNUONU3.js} +35 -65
- package/{query-MV5HKRIT.js → query-FSCYPETX.js} +35 -23
- package/{registry-BMWXMQS4.js → registry-YTJZ3AQD.js} +3 -3
- package/registry-client-package.json +6 -1
- package/registry-client-src-revalidate.js +241 -43
- package/{repo-ZBCD65WE.js → repo-OVIKYYWA.js} +18 -18
- package/{reporter-SDMDYYMJ.js → reporter-ZW7OMRZT.js} +23 -1
- package/{run-QJK5LA6Q.js → run-UPV3RPQJ.js} +13 -14
- package/{run-exec-EAASMT5O.js → run-exec-YJSMWMMP.js} +13 -14
- package/{setup-Q7NTAV26.js → setup-7DPMAPUY.js} +20 -19
- package/{src-YVODDQYK.js → src-BNCFK4FH.js} +15 -15
- package/{src-MEEFRFWA.js → src-XJT4IJSV.js} +11 -4
- package/{token-NQRHTTKG.js → token-GA73ER5V.js} +8 -8
- package/{uninstall-E2SVGYI3.js → uninstall-E3VKSC3B.js} +11 -11
- package/{unpublish-IE4KYVM4.js → unpublish-Q6MQHBPQ.js} +43 -40
- package/{update-KZOWARII.js → update-4CC44TR5.js} +34 -12
- package/{version-T6PTPZPR.js → version-CRZBXNDG.js} +23 -18
- package/{view-MVYV7YZ2.js → view-ILUULGSO.js} +9 -9
- 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-A5RM2Z7Z.js → whoami-Z4TSLYTR.js} +28 -12
- package/chunk-UBLFPJHV.js +0 -40
- package/chunk-XEPCV7DP.js +0 -75
|
@@ -12,15 +12,15 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
init,
|
|
14
14
|
install
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-47M7IZ5P.js";
|
|
16
|
+
import {
|
|
17
|
+
commandUsage
|
|
18
|
+
} from "./chunk-CBASIDQH.js";
|
|
16
19
|
import {
|
|
17
20
|
asWSConfig,
|
|
18
21
|
assertWSConfig,
|
|
19
22
|
minimatch
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
commandUsage
|
|
23
|
-
} from "./chunk-PTR5IGFQ.js";
|
|
23
|
+
} from "./chunk-X2AWQGYG.js";
|
|
24
24
|
import {
|
|
25
25
|
load,
|
|
26
26
|
save
|
|
@@ -11,19 +11,19 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
openUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TXTK2PKN.js";
|
|
15
15
|
import {
|
|
16
16
|
stderr
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TNEMFBP5.js";
|
|
18
18
|
import {
|
|
19
19
|
mermaidOutput
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-47M7IZ5P.js";
|
|
21
21
|
import {
|
|
22
22
|
ViewClass
|
|
23
23
|
} from "./chunk-4KCU2KZL.js";
|
|
24
24
|
import {
|
|
25
25
|
getTokenByURL
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GJGQTRAT.js";
|
|
27
27
|
|
|
28
28
|
// ../../src/cli-sdk/src/query-auth.ts
|
|
29
29
|
var createGetAuthHeader = (conf) => async (url) => getTokenByURL(url, conf.options.identity);
|
|
@@ -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
|
+
};
|
|
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
generateDefaultHelp,
|
|
14
14
|
generateFullHelp
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HYCYL4RX.js";
|
|
16
16
|
import {
|
|
17
17
|
flush,
|
|
18
18
|
trackCommand,
|
|
@@ -26,22 +26,22 @@ import {
|
|
|
26
26
|
hasNpmRegistry,
|
|
27
27
|
missingNpmRegistryError,
|
|
28
28
|
missingRegistryError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2PWSMJD7.js";
|
|
30
|
+
import {
|
|
31
|
+
isLazyView,
|
|
32
|
+
isViewClass,
|
|
33
|
+
loadLazyView
|
|
34
|
+
} from "./chunk-4KCU2KZL.js";
|
|
30
35
|
import {
|
|
31
36
|
isGraphRunError,
|
|
32
37
|
splitDepID
|
|
33
38
|
} from "./chunk-YOE3VZFX.js";
|
|
34
39
|
import {
|
|
35
40
|
defaultView
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import {
|
|
38
|
-
isLazyView,
|
|
39
|
-
isViewClass,
|
|
40
|
-
loadLazyView
|
|
41
|
-
} from "./chunk-4KCU2KZL.js";
|
|
41
|
+
} from "./chunk-CEHPRPGQ.js";
|
|
42
42
|
import {
|
|
43
43
|
emitter
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-U7TEQCBN.js";
|
|
45
45
|
import {
|
|
46
46
|
isErrorWithCause,
|
|
47
47
|
isObject
|
|
@@ -214,8 +214,22 @@ var printCode = (err, usage, stderr2, format) => {
|
|
|
214
214
|
}
|
|
215
215
|
return { file: true };
|
|
216
216
|
}
|
|
217
|
+
case "ENEEDAUTH": {
|
|
218
|
+
const { url, method, status } = err.cause;
|
|
219
|
+
stderr2(`Authentication Error: ${err.message}`);
|
|
220
|
+
if (url) {
|
|
221
|
+
stderr2(indent(`URL: ${formatURL(url, format)}`));
|
|
222
|
+
}
|
|
223
|
+
if (method) {
|
|
224
|
+
stderr2(indent(`Method: ${format(method)}`));
|
|
225
|
+
}
|
|
226
|
+
if (status) {
|
|
227
|
+
stderr2(indent(`Status: ${format(status)}`));
|
|
228
|
+
}
|
|
229
|
+
return {};
|
|
230
|
+
}
|
|
217
231
|
case "EREQUEST": {
|
|
218
|
-
const { url, method } = err.cause;
|
|
232
|
+
const { url, method, status } = err.cause;
|
|
219
233
|
const { code, syscall } = err.cause.cause ?? {};
|
|
220
234
|
stderr2(`Request Error: ${err.message}`);
|
|
221
235
|
if (code) {
|
|
@@ -230,8 +244,25 @@ var printCode = (err, usage, stderr2, format) => {
|
|
|
230
244
|
if (method) {
|
|
231
245
|
stderr2(indent(`Method: ${format(method)}`));
|
|
232
246
|
}
|
|
247
|
+
if (status) {
|
|
248
|
+
stderr2(indent(`Status: ${format(status)}`));
|
|
249
|
+
}
|
|
233
250
|
return { file: true };
|
|
234
251
|
}
|
|
252
|
+
case "EQUERY": {
|
|
253
|
+
const { found, wanted, validOptions } = err.cause;
|
|
254
|
+
stderr2(`Query Error: ${err.message}`);
|
|
255
|
+
if (found) {
|
|
256
|
+
stderr2(indent(`Found: ${format(found)}`));
|
|
257
|
+
}
|
|
258
|
+
if (wanted) {
|
|
259
|
+
stderr2(indent(`Did you mean: ${format(wanted)}`));
|
|
260
|
+
}
|
|
261
|
+
if (validOptions) {
|
|
262
|
+
stderr2(indent(`Valid Options: ${format(validOptions)}`));
|
|
263
|
+
}
|
|
264
|
+
return {};
|
|
265
|
+
}
|
|
235
266
|
case "ECONFIG": {
|
|
236
267
|
const { found, wanted, validOptions } = err.cause;
|
|
237
268
|
stderr2(`Config Error: ${err.message}`);
|
|
@@ -11,10 +11,10 @@ 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-TNEMFBP5.js";
|
|
15
15
|
import {
|
|
16
16
|
urlOpen
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-APMYKJI2.js";
|
|
18
18
|
|
|
19
19
|
// ../../src/cli-sdk/src/open-url.ts
|
|
20
20
|
var openUrl = async (url) => {
|
|
@@ -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-CTQSUNNE.js";
|
|
15
15
|
import {
|
|
16
16
|
findCmdShimIfExists,
|
|
17
17
|
install
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-47M7IZ5P.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";
|
|
@@ -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-47M7IZ5P.js";
|
|
15
|
+
import "./chunk-ZDQJWRCU.js";
|
|
18
16
|
import {
|
|
19
17
|
commandUsage
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-XISRK3R5.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
27
|
import "./chunk-E74WGW5C.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-UBLFPJHV.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-ZW7OMRZT.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-J2XWQVDK.js";
|
|
23
|
+
import "./chunk-CTQSUNNE.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-J2XWQVDK.js";
|
|
20
|
+
import "./chunk-CTQSUNNE.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-YKCGWKUE.js";
|
|
15
15
|
import {
|
|
16
16
|
ExecCommand,
|
|
17
17
|
views
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BUXPKRYB.js";
|
|
19
19
|
import "./chunk-RIYFGX27.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-HRY5MJCA.js";
|
|
22
|
-
import "./chunk-ZWKI5OSF.js";
|
|
20
|
+
import "./chunk-6LEMBT22.js";
|
|
23
21
|
import {
|
|
24
22
|
styleTextStdout
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-TNEMFBP5.js";
|
|
24
|
+
import "./chunk-HYCYL4RX.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-CTQSUNNE.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-47M7IZ5P.js";
|
|
36
|
+
import "./chunk-ZDQJWRCU.js";
|
|
39
37
|
import {
|
|
40
38
|
commandUsage
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-XISRK3R5.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-SNOBGFNM.js";
|
|
46
47
|
import "./chunk-E74WGW5C.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-UBLFPJHV.js";
|
|
48
|
+
import "./chunk-U7TEQCBN.js";
|
|
49
49
|
import "./chunk-VFBCWAOC.js";
|
|
50
50
|
import "./chunk-XNLSTHDK.js";
|
|
51
51
|
import "./chunk-BHJT53TP.js";
|
|
@@ -11,30 +11,32 @@ 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-CTQSUNNE.js";
|
|
15
15
|
import "./chunk-ZWKI5OSF.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveRegistry
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-USTJECVS.js";
|
|
20
|
-
import "./chunk-YOE3VZFX.js";
|
|
18
|
+
} from "./chunk-2PWSMJD7.js";
|
|
21
19
|
import {
|
|
22
20
|
commandUsage
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CBASIDQH.js";
|
|
22
|
+
import "./chunk-X2AWQGYG.js";
|
|
23
|
+
import "./chunk-YOE3VZFX.js";
|
|
24
24
|
import {
|
|
25
25
|
Spec
|
|
26
26
|
} from "./chunk-XKVU23NC.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-CEHPRPGQ.js";
|
|
28
28
|
import "./chunk-HTOTG4TS.js";
|
|
29
29
|
import {
|
|
30
30
|
RegistryClient
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-GJGQTRAT.js";
|
|
32
|
+
import "./chunk-APMYKJI2.js";
|
|
33
|
+
import {
|
|
34
|
+
assertOk,
|
|
35
|
+
requestError
|
|
36
|
+
} from "./chunk-SNOBGFNM.js";
|
|
33
37
|
import "./chunk-E74WGW5C.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-UBLFPJHV.js";
|
|
38
|
+
import "./chunk-U7TEQCBN.js";
|
|
36
39
|
import {
|
|
37
|
-
asError,
|
|
38
40
|
satisfies
|
|
39
41
|
} from "./chunk-VFBCWAOC.js";
|
|
40
42
|
import "./chunk-XNLSTHDK.js";
|
|
@@ -161,16 +163,17 @@ var command = async (conf) => {
|
|
|
161
163
|
otp
|
|
162
164
|
});
|
|
163
165
|
} catch (err) {
|
|
164
|
-
throw
|
|
165
|
-
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
169
|
-
throw error("failed to update deprecation status", {
|
|
166
|
+
throw requestError(err, {
|
|
167
|
+
message: "failed to update deprecation status",
|
|
170
168
|
url: packageUrl,
|
|
171
|
-
|
|
169
|
+
method: "PUT"
|
|
172
170
|
});
|
|
173
171
|
}
|
|
172
|
+
assertOk(response, {
|
|
173
|
+
message: "failed to update deprecation status",
|
|
174
|
+
url: packageUrl,
|
|
175
|
+
method: "PUT"
|
|
176
|
+
});
|
|
174
177
|
return {
|
|
175
178
|
name,
|
|
176
179
|
version: versionRange || "*",
|