@vltpkg/cli-js 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{access-FTHPFPUJ.js → access-HIVJOWXZ.js} +10 -10
- package/{bugs-QS6HQUO2.js → bugs-2KFUYMPS.js} +19 -19
- package/{build-H27SXMAS.js → build-CX6YZ4LS.js} +11 -11
- package/{cache-IB4HMFDT.js → cache-I6L5ZRGD.js} +15 -15
- package/cache-unzip-src-unzip.js +31 -12
- package/{chunk-QA6RE2GS.js → chunk-263MHLR3.js} +57 -22
- package/{chunk-YFNQ6HZ3.js → chunk-2HXJ4ZSF.js} +3 -3
- package/{chunk-YTT3UHUB.js → chunk-33HBY5CF.js} +1 -1
- package/{chunk-LD4BQJBG.js → chunk-C6LK7C3L.js} +4 -4
- package/{chunk-GUATFMMU.js → chunk-CU752KW7.js} +1 -1
- package/{chunk-O44Z6MAV.js → chunk-D2LEK7VS.js} +1 -1
- package/{chunk-6A3XS52F.js → chunk-ENSGPOLR.js} +13 -0
- package/{chunk-7KFMQ3BR.js → chunk-EP7AVBIO.js} +5 -5
- package/{chunk-OE6VHHN4.js → chunk-FHMIECHI.js} +27 -27
- package/chunk-GDV5LSQ2.js +75 -0
- package/{chunk-3CUFJPBK.js → chunk-HCZOVC3Y.js} +1 -1
- package/{chunk-55DYW2MP.js → chunk-I6QGYSB4.js} +1 -1
- package/{chunk-LEGPLJWK.js → chunk-ILRJWH6A.js} +5 -5
- package/{chunk-B2FK2HHL.js → chunk-J2WL3A3C.js} +62 -17
- package/{chunk-SYGF27W7.js → chunk-J3R4XWB3.js} +2 -2
- package/{chunk-FOJCK57G.js → chunk-JFHEXCG5.js} +3 -3
- package/{chunk-UNWQVOLY.js → chunk-MJWUULO6.js} +6 -6
- package/{chunk-VHHLO5L6.js → chunk-N4RCKCHY.js} +1 -1
- package/{chunk-6G7MTZGS.js → chunk-P4LLYWCG.js} +110 -21
- package/{chunk-BHJT53TP.js → chunk-PDWPFR5T.js} +1 -1
- package/{chunk-LKQ5R4VX.js → chunk-QETVMIIT.js} +4 -4
- package/{chunk-5PP77V44.js → chunk-QWJDHBV7.js} +4 -3
- package/{chunk-G5BSQ6DP.js → chunk-RH2Y7MPW.js} +22 -0
- package/{chunk-5YB6UIC3.js → chunk-SVMH3NDM.js} +40 -23
- package/{chunk-NJZSCUD4.js → chunk-TYLYZKVA.js} +14 -11
- package/{chunk-G5NJ7CYI.js → chunk-V7EQZOO5.js} +1 -1
- package/{chunk-JTUZP2OD.js → chunk-VBADA6QU.js} +1 -1
- package/{chunk-FSZF2RSQ.js → chunk-W6UMN2YJ.js} +4 -4
- package/{chunk-VE6CCH33.js → chunk-Y5PA7DVK.js} +1 -0
- package/{chunk-5BD4QGW2.js → chunk-YZWFWSY7.js} +6 -6
- package/{chunk-UQUIO7LW.js → chunk-ZNUXDX6R.js} +4 -3
- package/{ci-XJBYXFFJ.js → ci-BX54SEU3.js} +12 -12
- package/cli-package.json +2 -2
- package/{config-4Y46SH5K.js → config-HFF6XDCV.js} +9 -9
- package/{config-H2Q4ABSS.js → config-WBVJX42R.js} +11 -11
- package/{create-LUYL2QI4.js → create-W67HRHWZ.js} +20 -20
- package/{deprecate-5ANCI2L6.js → deprecate-5T6JTGJ3.js} +13 -13
- package/{devtools-UEMPW5GG.js → devtools-UMJUK42W.js} +2 -2
- package/{dist-tag-SD2CRWIL.js → dist-tag-YIZTS7GF.js} +10 -10
- package/{docs-B6LVNWTP.js → docs-G7CKMPCL.js} +19 -19
- package/{exec-CJ5KQA72.js → exec-YYCAZZ6Z.js} +20 -20
- package/{exec-cache-EE7DAOW2.js → exec-cache-6ENHAGC6.js} +18 -18
- package/{exec-local-HT3VBN6S.js → exec-local-OXG3PSLF.js} +17 -17
- package/{help-GZ44WYDS.js → help-RMOIAILM.js} +4 -4
- package/{init-HVXRXFVY.js → init-UPEQXC4D.js} +12 -12
- package/{install-E2C7EE6P.js → install-U7LLEQU6.js} +18 -18
- package/{list-V4V6SHJP.js → list-N6CKPXTK.js} +20 -20
- package/{login-VRFV7MCE.js → login-MCO4ZLVF.js} +14 -14
- package/{logout-SU75R7BN.js → logout-BJ4QRZYG.js} +10 -10
- package/{pack-IVGKUXTL.js → pack-U6PYRFZ6.js} +13 -13
- package/package.json +1 -1
- package/{ping-WB222SDT.js → ping-VFB6SCMH.js} +10 -10
- package/{pkg-LAAFNONA.js → pkg-ZNK5SCF4.js} +13 -13
- package/{profile-P3AVHRDI.js → profile-TW32HLYA.js} +10 -10
- package/{publish-IUNB3KH5.js → publish-AHOITWZQ.js} +36 -21
- package/{query-XCN55INS.js → query-KKP5PNSQ.js} +20 -20
- package/{registry-QQLWJHJI.js → registry-VHB65BWD.js} +5 -5
- package/registry-client-src-revalidate.js +25 -26
- package/{repo-BQDWUCX5.js → repo-BHTVK5KE.js} +19 -19
- package/{reporter-5BVUNWQ6.js → reporter-VQU7HYKM.js} +75 -75
- package/{run-QT7DX243.js → run-UD32OTUJ.js} +17 -17
- package/{run-exec-XYUI7GLN.js → run-exec-NOCIUNGL.js} +17 -17
- package/security-archive-src-update-expired.js +1 -1
- package/{setup-CXDJXRAG.js → setup-PBCWOSTV.js} +17 -17
- package/{src-UBAERP25.js → src-LRKPUV4J.js} +16 -16
- package/{src-OKMGXMAD.js → src-T5FBZFMV.js} +24 -14
- package/{src-2BUT4WYP.js → src-Z44JKVWS.js} +6 -6
- package/{token-CBOK6DMT.js → token-PCPB6NOL.js} +10 -10
- package/{uninstall-27VP46KJ.js → uninstall-LOGSQXFS.js} +14 -14
- package/{unpublish-F4637OQX.js → unpublish-O3UFCTEJ.js} +10 -10
- package/{update-NGWLJJ22.js → update-WBCLWGLN.js} +17 -17
- package/{version-WPD2KNVC.js → version-S3LCB2TQ.js} +12 -12
- package/{view-YKFTRRPD.js → view-LMPENVAJ.js} +11 -11
- package/vlr.js +1 -1
- package/vlrx.js +1 -1
- package/vlt.js +1 -1
- package/vlx.js +1 -1
- package/vlxl.js +1 -1
- package/{whoami-I5Q6RTAP.js → whoami-LYMG7R3P.js} +10 -10
- package/chunk-SPRVRSEL.js +0 -75
|
@@ -15,12 +15,13 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
assertOk,
|
|
17
17
|
registryErrorMessage,
|
|
18
|
+
statusText,
|
|
18
19
|
storeRoot,
|
|
19
20
|
tokenRefusal
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZNUXDX6R.js";
|
|
21
22
|
import {
|
|
22
23
|
userAgent
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VBADA6QU.js";
|
|
24
25
|
import {
|
|
25
26
|
I,
|
|
26
27
|
logRequest
|
|
@@ -30,12 +31,12 @@ import {
|
|
|
30
31
|
} from "./chunk-XNLSTHDK.js";
|
|
31
32
|
import {
|
|
32
33
|
rimraf
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PDWPFR5T.js";
|
|
34
35
|
import {
|
|
35
36
|
asError,
|
|
36
37
|
integrityHex,
|
|
37
38
|
integrityRE
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
39
40
|
import {
|
|
40
41
|
error
|
|
41
42
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -2323,14 +2324,14 @@ var require_request = __commonJS({
|
|
|
2323
2324
|
onResponseStarted() {
|
|
2324
2325
|
return this[kHandler].onResponseStarted?.();
|
|
2325
2326
|
}
|
|
2326
|
-
onHeaders(statusCode, headers, resume,
|
|
2327
|
+
onHeaders(statusCode, headers, resume, statusText2) {
|
|
2327
2328
|
assert(!this.aborted);
|
|
2328
2329
|
assert(!this.completed);
|
|
2329
2330
|
if (channels.headers.hasSubscribers) {
|
|
2330
|
-
channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
|
|
2331
|
+
channels.headers.publish({ request: this, response: { statusCode, headers, statusText: statusText2 } });
|
|
2331
2332
|
}
|
|
2332
2333
|
try {
|
|
2333
|
-
return this[kHandler].onHeaders(statusCode, headers, resume,
|
|
2334
|
+
return this[kHandler].onHeaders(statusCode, headers, resume, statusText2);
|
|
2334
2335
|
} catch (err) {
|
|
2335
2336
|
this.abort(err);
|
|
2336
2337
|
}
|
|
@@ -5083,9 +5084,9 @@ var require_util2 = __commonJS({
|
|
|
5083
5084
|
function isErrorLike(object) {
|
|
5084
5085
|
return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException");
|
|
5085
5086
|
}
|
|
5086
|
-
function isValidReasonPhrase(
|
|
5087
|
-
for (let i = 0; i <
|
|
5088
|
-
const c =
|
|
5087
|
+
function isValidReasonPhrase(statusText2) {
|
|
5088
|
+
for (let i = 0; i < statusText2.length; ++i) {
|
|
5089
|
+
const c = statusText2.charCodeAt(i);
|
|
5089
5090
|
if (!(c === 9 || // HTAB
|
|
5090
5091
|
c >= 32 && c <= 126 || // SP / VCHAR
|
|
5091
5092
|
c >= 128 && c <= 255)) {
|
|
@@ -7040,7 +7041,7 @@ var require_client_h1 = __commonJS({
|
|
|
7040
7041
|
* @returns {number}
|
|
7041
7042
|
*/
|
|
7042
7043
|
onHeadersComplete(statusCode, upgrade, shouldKeepAlive) {
|
|
7043
|
-
const { client, socket, headers, statusText } = this;
|
|
7044
|
+
const { client, socket, headers, statusText: statusText2 } = this;
|
|
7044
7045
|
if (socket.destroyed) {
|
|
7045
7046
|
return -1;
|
|
7046
7047
|
}
|
|
@@ -7105,7 +7106,7 @@ var require_client_h1 = __commonJS({
|
|
|
7105
7106
|
} else {
|
|
7106
7107
|
socket[kReset] = true;
|
|
7107
7108
|
}
|
|
7108
|
-
const pause = request2.onHeaders(statusCode, headers, this.resume,
|
|
7109
|
+
const pause = request2.onHeaders(statusCode, headers, this.resume, statusText2) === false;
|
|
7109
7110
|
if (request2.aborted) {
|
|
7110
7111
|
return -1;
|
|
7111
7112
|
}
|
|
@@ -12603,7 +12604,7 @@ var require_mock_utils = __commonJS({
|
|
|
12603
12604
|
kTotalDispatchCount
|
|
12604
12605
|
} = require_mock_symbols();
|
|
12605
12606
|
var { serializePathWithQuery } = require_util();
|
|
12606
|
-
var { STATUS_CODES
|
|
12607
|
+
var { STATUS_CODES } = __require("node:http");
|
|
12607
12608
|
var {
|
|
12608
12609
|
types: {
|
|
12609
12610
|
isPromise
|
|
@@ -12811,7 +12812,7 @@ var require_mock_utils = __commonJS({
|
|
|
12811
12812
|
return result;
|
|
12812
12813
|
}
|
|
12813
12814
|
function getStatusText(statusCode) {
|
|
12814
|
-
return
|
|
12815
|
+
return STATUS_CODES[statusCode] || "unknown";
|
|
12815
12816
|
}
|
|
12816
12817
|
async function getResponse(body) {
|
|
12817
12818
|
const buffers = [];
|
|
@@ -20417,7 +20418,7 @@ var require_fetch = __commonJS({
|
|
|
20417
20418
|
var { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require_data_url();
|
|
20418
20419
|
var { getGlobalDispatcher } = require_global2();
|
|
20419
20420
|
var { webidl } = require_webidl();
|
|
20420
|
-
var { STATUS_CODES
|
|
20421
|
+
var { STATUS_CODES } = __require("node:http");
|
|
20421
20422
|
var { bytesMatch } = require_subresource_integrity();
|
|
20422
20423
|
var { createDeferredPromise } = require_promise();
|
|
20423
20424
|
var { isomorphicEncode } = require_infra();
|
|
@@ -21210,13 +21211,13 @@ var require_fetch = __commonJS({
|
|
|
21210
21211
|
})();
|
|
21211
21212
|
}
|
|
21212
21213
|
try {
|
|
21213
|
-
const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody });
|
|
21214
|
+
const { body, status, statusText: statusText2, headersList, socket } = await dispatch({ body: requestBody });
|
|
21214
21215
|
if (socket) {
|
|
21215
|
-
response = makeResponse({ status, statusText, headersList, socket });
|
|
21216
|
+
response = makeResponse({ status, statusText: statusText2, headersList, socket });
|
|
21216
21217
|
} else {
|
|
21217
21218
|
const iterator = body[Symbol.asyncIterator]();
|
|
21218
21219
|
fetchParams.controller.next = () => iterator.next();
|
|
21219
|
-
response = makeResponse({ status, statusText, headersList });
|
|
21220
|
+
response = makeResponse({ status, statusText: statusText2, headersList });
|
|
21220
21221
|
}
|
|
21221
21222
|
} catch (err) {
|
|
21222
21223
|
if (err.name === "AbortError") {
|
|
@@ -21338,7 +21339,7 @@ var require_fetch = __commonJS({
|
|
|
21338
21339
|
onResponseStarted() {
|
|
21339
21340
|
timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
|
|
21340
21341
|
},
|
|
21341
|
-
onHeaders(status, rawHeaders, resume,
|
|
21342
|
+
onHeaders(status, rawHeaders, resume, statusText2) {
|
|
21342
21343
|
if (status < 200) {
|
|
21343
21344
|
return false;
|
|
21344
21345
|
}
|
|
@@ -21401,7 +21402,7 @@ var require_fetch = __commonJS({
|
|
|
21401
21402
|
const onError = this.onError.bind(this);
|
|
21402
21403
|
resolve5({
|
|
21403
21404
|
status,
|
|
21404
|
-
statusText,
|
|
21405
|
+
statusText: statusText2,
|
|
21405
21406
|
headersList,
|
|
21406
21407
|
body: decoders.length ? pipeline(this.body, ...decoders, (err) => {
|
|
21407
21408
|
if (err) {
|
|
@@ -21454,7 +21455,7 @@ var require_fetch = __commonJS({
|
|
|
21454
21455
|
}
|
|
21455
21456
|
resolve5({
|
|
21456
21457
|
status,
|
|
21457
|
-
statusText:
|
|
21458
|
+
statusText: STATUS_CODES[status],
|
|
21458
21459
|
headersList,
|
|
21459
21460
|
socket
|
|
21460
21461
|
});
|
|
@@ -21478,7 +21479,7 @@ var require_fetch = __commonJS({
|
|
|
21478
21479
|
}
|
|
21479
21480
|
resolve5({
|
|
21480
21481
|
status,
|
|
21481
|
-
statusText:
|
|
21482
|
+
statusText: STATUS_CODES[status],
|
|
21482
21483
|
headersList,
|
|
21483
21484
|
socket
|
|
21484
21485
|
});
|
|
@@ -26150,7 +26151,6 @@ var handleBeforeExit = () => {
|
|
|
26150
26151
|
var import_undici3 = __toESM(require_undici(), 1);
|
|
26151
26152
|
import { randomUUID } from "node:crypto";
|
|
26152
26153
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
26153
|
-
import { STATUS_CODES } from "node:http";
|
|
26154
26154
|
import { availableParallelism } from "node:os";
|
|
26155
26155
|
import { dirname as dirname3, resolve as resolve4 } from "node:path";
|
|
26156
26156
|
import { setTimeout as setTimeout2 } from "node:timers/promises";
|
|
@@ -27571,7 +27571,7 @@ var RegistryClient = class {
|
|
|
27571
27571
|
}
|
|
27572
27572
|
} catch {
|
|
27573
27573
|
}
|
|
27574
|
-
const status =
|
|
27574
|
+
const status = statusText(statusCode);
|
|
27575
27575
|
throw error(
|
|
27576
27576
|
`Failed to fetch paginated results: ${statusCode}${status ? ` ${status}` : ""}${typeof detail === "string" && detail ? `: ${detail}` : ""}`,
|
|
27577
27577
|
{ code: "EREQUEST", status: statusCode, url: String(url) }
|
|
@@ -27688,7 +27688,7 @@ var RegistryClient = class {
|
|
|
27688
27688
|
}
|
|
27689
27689
|
}
|
|
27690
27690
|
const { statusCode } = response;
|
|
27691
|
-
const status =
|
|
27691
|
+
const status = statusText(statusCode);
|
|
27692
27692
|
throw error(
|
|
27693
27693
|
`Failed to perform web login: ${statusCode}${status ? ` ${status}` : ""}`,
|
|
27694
27694
|
{
|
|
@@ -27795,7 +27795,7 @@ var RegistryClient = class {
|
|
|
27795
27795
|
if (i) paths.add(i);
|
|
27796
27796
|
} catch {
|
|
27797
27797
|
}
|
|
27798
|
-
paths.add(this.cache.path(key));
|
|
27798
|
+
if (!integrity) paths.add(this.cache.path(key));
|
|
27799
27799
|
for (const path of paths) {
|
|
27800
27800
|
let buf;
|
|
27801
27801
|
try {
|
|
@@ -27938,7 +27938,7 @@ var RegistryClient = class {
|
|
|
27938
27938
|
);
|
|
27939
27939
|
if (!trustIntegrity && !result.fromCache) {
|
|
27940
27940
|
result.deleteHeader("integrity");
|
|
27941
|
-
if (result.
|
|
27941
|
+
if (result.statusCode === 200) result.checkIntegrity({ url });
|
|
27942
27942
|
}
|
|
27943
27943
|
if (verifyDigest && !integrity && !result.fromCache && result.statusCode === 200) {
|
|
27944
27944
|
result.checkDigest(verifyDigest === "required", { url });
|
|
@@ -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-HIVJOWXZ.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-2KFUYMPS.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-CX6YZ4LS.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-I6L5ZRGD.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-BX54SEU3.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-WBVJX42R.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-W67HRHWZ.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-5T6JTGJ3.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-YIZTS7GF.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-G7CKMPCL.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-6ENHAGC6.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-OXG3PSLF.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-YYCAZZ6Z.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-RMOIAILM.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-UPEQXC4D.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-U7LLEQU6.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-VQU7HYKM.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-N6CKPXTK.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-MCO4ZLVF.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-BJ4QRZYG.js"),
|
|
41
|
+
"./commands/pack.ts": () => import("./pack-U6PYRFZ6.js"),
|
|
42
|
+
"./commands/ping.ts": () => import("./ping-VFB6SCMH.js"),
|
|
43
|
+
"./commands/pkg.ts": () => import("./pkg-ZNK5SCF4.js"),
|
|
44
|
+
"./commands/profile.ts": () => import("./profile-TW32HLYA.js"),
|
|
45
|
+
"./commands/publish.ts": () => import("./publish-AHOITWZQ.js"),
|
|
46
|
+
"./commands/query.ts": () => import("./query-KKP5PNSQ.js"),
|
|
47
|
+
"./commands/registry.ts": () => import("./registry-VHB65BWD.js"),
|
|
48
|
+
"./commands/repo.ts": () => import("./repo-BHTVK5KE.js"),
|
|
49
|
+
"./commands/run-exec.ts": () => import("./run-exec-NOCIUNGL.js"),
|
|
50
|
+
"./commands/run.ts": () => import("./run-UD32OTUJ.js"),
|
|
51
|
+
"./commands/setup.ts": () => import("./setup-PBCWOSTV.js"),
|
|
52
|
+
"./commands/token.ts": () => import("./token-PCPB6NOL.js"),
|
|
53
|
+
"./commands/uninstall.ts": () => import("./uninstall-LOGSQXFS.js"),
|
|
54
|
+
"./commands/unpublish.ts": () => import("./unpublish-O3UFCTEJ.js"),
|
|
55
|
+
"./commands/update.ts": () => import("./update-WBCLWGLN.js"),
|
|
56
|
+
"./commands/version.ts": () => import("./version-S3LCB2TQ.js"),
|
|
57
|
+
"./commands/view.ts": () => import("./view-LMPENVAJ.js"),
|
|
58
|
+
"./commands/whoami.ts": () => import("./whoami-LYMG7R3P.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
|
+
};
|
|
@@ -11,7 +11,7 @@ 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-MJWUULO6.js";
|
|
15
15
|
import {
|
|
16
16
|
urlOpen
|
|
17
17
|
} from "./chunk-APMYKJI2.js";
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
} from "./chunk-RIYFGX27.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2HXJ4ZSF.js";
|
|
18
18
|
import {
|
|
19
19
|
stderr,
|
|
20
20
|
stdout,
|
|
21
21
|
styleTextStdout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MJWUULO6.js";
|
|
23
23
|
import {
|
|
24
24
|
require_emoji_regex
|
|
25
25
|
} from "./chunk-VTEFO2FT.js";
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
Query,
|
|
28
28
|
actual,
|
|
29
29
|
isRunResult
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-J2WL3A3C.js";
|
|
31
31
|
import {
|
|
32
32
|
Monorepo
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-P4LLYWCG.js";
|
|
34
34
|
import {
|
|
35
35
|
isErrorWithCause
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
37
37
|
import {
|
|
38
38
|
error
|
|
39
39
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
AbortError,
|
|
14
14
|
SecurityArchive,
|
|
15
15
|
pRetry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JFHEXCG5.js";
|
|
17
17
|
import {
|
|
18
18
|
Monorepo,
|
|
19
19
|
PackageJson,
|
|
20
20
|
getUser,
|
|
21
21
|
minimatch,
|
|
22
22
|
platformCheck
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P4LLYWCG.js";
|
|
24
24
|
import {
|
|
25
25
|
asDepID,
|
|
26
26
|
baseDepID,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
joinExtra,
|
|
36
36
|
splitDepID,
|
|
37
37
|
splitExtra
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-J3R4XWB3.js";
|
|
39
39
|
import {
|
|
40
40
|
Spec as Spec2
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-V7EQZOO5.js";
|
|
42
42
|
import {
|
|
43
43
|
load,
|
|
44
44
|
walkUp
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
userAgent,
|
|
48
48
|
userAgentHeaders
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VBADA6QU.js";
|
|
50
50
|
import {
|
|
51
51
|
graphStep,
|
|
52
52
|
promiseSpawn
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
} from "./chunk-XNLSTHDK.js";
|
|
57
57
|
import {
|
|
58
58
|
rimraf
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-PDWPFR5T.js";
|
|
60
60
|
import {
|
|
61
61
|
Spec,
|
|
62
62
|
Version,
|
|
@@ -65,6 +65,8 @@ import {
|
|
|
65
65
|
asNormalizedManifest,
|
|
66
66
|
assertPathSafeName,
|
|
67
67
|
assertRecordStringString,
|
|
68
|
+
brotliTarballName,
|
|
69
|
+
brotliTarballUrl,
|
|
68
70
|
compare,
|
|
69
71
|
defaultGitHostArchives,
|
|
70
72
|
defaultGitHosts,
|
|
@@ -95,8 +97,9 @@ import {
|
|
|
95
97
|
patch,
|
|
96
98
|
satisfies,
|
|
97
99
|
shortDependencyTypes,
|
|
98
|
-
subset
|
|
99
|
-
|
|
100
|
+
subset,
|
|
101
|
+
tarballFormat
|
|
102
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
100
103
|
import {
|
|
101
104
|
error,
|
|
102
105
|
typeError
|
|
@@ -4471,6 +4474,7 @@ var stringifyNode = (node) => {
|
|
|
4471
4474
|
};
|
|
4472
4475
|
|
|
4473
4476
|
// ../../src/graph/src/node.ts
|
|
4477
|
+
var brotliAlternate = (dist2) => brotliTarballUrl(dist2?.tarball, dist2?.alternates);
|
|
4474
4478
|
var Node = class _Node {
|
|
4475
4479
|
get [Symbol.toStringTag]() {
|
|
4476
4480
|
return "@vltpkg/graph.Node";
|
|
@@ -4574,6 +4578,29 @@ var Node = class _Node {
|
|
|
4574
4578
|
* The manifest this node represents in the graph.
|
|
4575
4579
|
*/
|
|
4576
4580
|
manifest;
|
|
4581
|
+
/**
|
|
4582
|
+
* Whether this node's artifact is the `.tar.br`: from the manifest's
|
|
4583
|
+
* `dist.alternates` at construction, or overwritten by the lockfile's
|
|
4584
|
+
* flag bit when the node came from one (so an existing lockfile keeps
|
|
4585
|
+
* whichever artifact it pinned). Only consulted while `resolved` is
|
|
4586
|
+
* still unset -- once there is a URL, it is the answer (see the
|
|
4587
|
+
* getter).
|
|
4588
|
+
*/
|
|
4589
|
+
#brotli = false;
|
|
4590
|
+
/**
|
|
4591
|
+
* True when this node's artifact is the registry's Brotli (`.tar.br`)
|
|
4592
|
+
* tarball rather than the gzip `.tgz`, which makes `integrity` that
|
|
4593
|
+
* artifact's hash. `resolved` is authoritative whenever it is set, so
|
|
4594
|
+
* the two can never drift; the stored bit only carries the lockfile's
|
|
4595
|
+
* answer across to `setResolved()`, which has to know the extension
|
|
4596
|
+
* before it can build the URL.
|
|
4597
|
+
*/
|
|
4598
|
+
get brotli() {
|
|
4599
|
+
return this.resolved ? tarballFormat(this.resolved) === "brotli" : this.#brotli;
|
|
4600
|
+
}
|
|
4601
|
+
set brotli(brotli) {
|
|
4602
|
+
this.#brotli = brotli;
|
|
4603
|
+
}
|
|
4577
4604
|
/**
|
|
4578
4605
|
* Project where this node resides
|
|
4579
4606
|
*/
|
|
@@ -4706,6 +4733,7 @@ var Node = class _Node {
|
|
|
4706
4733
|
}
|
|
4707
4734
|
this.graph = options.graph;
|
|
4708
4735
|
this.manifest = manifest;
|
|
4736
|
+
this.#brotli = options["brotli-tarballs"] !== false && !!brotliAlternate(manifest?.dist);
|
|
4709
4737
|
this.#name = name || this.manifest?.name;
|
|
4710
4738
|
this.version = version || this.manifest?.version;
|
|
4711
4739
|
}
|
|
@@ -4723,8 +4751,22 @@ var Node = class _Node {
|
|
|
4723
4751
|
}
|
|
4724
4752
|
#registryNodeResolved(tuple) {
|
|
4725
4753
|
const spec2 = hydrateTuple(tuple, this.#name, this.#options);
|
|
4726
|
-
|
|
4727
|
-
|
|
4754
|
+
const dist2 = this.manifest?.dist;
|
|
4755
|
+
const tarball = dist2?.tarball || spec2.conventionalRegistryTarball;
|
|
4756
|
+
const brotli = this.#brotli ? (
|
|
4757
|
+
// the manifest's own reference when there is one, and otherwise
|
|
4758
|
+
// the registry's naming for it: same stem as the `.tgz`, a
|
|
4759
|
+
// different extension. That convention is what lets a lockfile
|
|
4760
|
+
// node -- which has no manifest -- spend one flag bit rather
|
|
4761
|
+
// than a second URL.
|
|
4762
|
+
brotliAlternate(dist2) ?? (tarball && brotliTarballName(tarball))
|
|
4763
|
+
) : void 0;
|
|
4764
|
+
if (brotli) {
|
|
4765
|
+
this.resolved = brotli;
|
|
4766
|
+
return;
|
|
4767
|
+
}
|
|
4768
|
+
this.resolved = tarball;
|
|
4769
|
+
this.integrity ??= dist2?.integrity;
|
|
4728
4770
|
}
|
|
4729
4771
|
get options() {
|
|
4730
4772
|
return this.#options;
|
|
@@ -9088,15 +9130,15 @@ import { dirname as dirname2, resolve as resolve3 } from "node:path";
|
|
|
9088
9130
|
|
|
9089
9131
|
// ../../src/graph/src/lockfile/types.ts
|
|
9090
9132
|
var LOCKFILE_VERSION = 1;
|
|
9091
|
-
var getFlagNumFromNode = (node) => node.optional
|
|
9133
|
+
var getFlagNumFromNode = (node) => (node.optional ? LockfileNodeFlagOptional : 0) | (node.dev ? LockfileNodeFlagDev : 0) | (node.brotli ? LockfileNodeFlagBrotli : 0);
|
|
9092
9134
|
var getBooleanFlagsFromNum = (flags) => ({
|
|
9093
9135
|
dev: !!(flags & LockfileNodeFlagDev),
|
|
9094
|
-
optional: !!(flags & LockfileNodeFlagOptional)
|
|
9136
|
+
optional: !!(flags & LockfileNodeFlagOptional),
|
|
9137
|
+
brotli: !!(flags & LockfileNodeFlagBrotli)
|
|
9095
9138
|
});
|
|
9096
|
-
var LockfileNodeFlagNone = 0;
|
|
9097
9139
|
var LockfileNodeFlagOptional = 1;
|
|
9098
9140
|
var LockfileNodeFlagDev = 2;
|
|
9099
|
-
var
|
|
9141
|
+
var LockfileNodeFlagBrotli = 4;
|
|
9100
9142
|
var BuildStateNone = void 0;
|
|
9101
9143
|
var BuildStateNeeded = 1;
|
|
9102
9144
|
var BuildStateBuilt = 2;
|
|
@@ -9690,7 +9732,9 @@ var Graph = class {
|
|
|
9690
9732
|
toFoundNode.manifest = manifest;
|
|
9691
9733
|
this.manifests.set(toFoundNode.id, manifest);
|
|
9692
9734
|
}
|
|
9693
|
-
toFoundNode.
|
|
9735
|
+
if (!toFoundNode.brotli) {
|
|
9736
|
+
toFoundNode.integrity ??= manifest.dist?.integrity;
|
|
9737
|
+
}
|
|
9694
9738
|
}
|
|
9695
9739
|
return toFoundNode;
|
|
9696
9740
|
}
|
|
@@ -9710,7 +9754,7 @@ var Graph = class {
|
|
|
9710
9754
|
toNode.dev = flags.dev;
|
|
9711
9755
|
toNode.optional = flags.optional;
|
|
9712
9756
|
if (samePackage) copyPackageMetadata(toNode, samePackage);
|
|
9713
|
-
toNode.integrity ??= manifest?.dist?.integrity;
|
|
9757
|
+
if (!toNode.brotli) toNode.integrity ??= manifest?.dist?.integrity;
|
|
9714
9758
|
if (extra) {
|
|
9715
9759
|
const { modifier, peerSetHash } = splitExtra(extra);
|
|
9716
9760
|
toNode.modifier = modifier;
|
|
@@ -10012,10 +10056,11 @@ var loadNodes = (graph, nodes, options, actual2, throwOnMissingManifest) => {
|
|
|
10012
10056
|
node.peerSetHash = peerSetHash;
|
|
10013
10057
|
}
|
|
10014
10058
|
}
|
|
10015
|
-
const { dev: dev2, optional: optional2 } = getBooleanFlagsFromNum(flags);
|
|
10059
|
+
const { dev: dev2, optional: optional2, brotli } = getBooleanFlagsFromNum(flags);
|
|
10016
10060
|
node.options = options;
|
|
10017
10061
|
node.dev = dev2;
|
|
10018
10062
|
node.optional = optional2;
|
|
10063
|
+
node.brotli = brotli;
|
|
10019
10064
|
node.integrity = integrity ?? referenceNode?.integrity;
|
|
10020
10065
|
node.resolved = type2 === "remote" ? filepath : resolved ?? referenceNode?.resolved;
|
|
10021
10066
|
node.resolvedFromLockfile = !!(node.integrity && node.resolved);
|
|
@@ -11,12 +11,12 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
Spec as Spec2
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V7EQZOO5.js";
|
|
15
15
|
import {
|
|
16
16
|
Spec,
|
|
17
17
|
currentDefaultRegistryName,
|
|
18
18
|
defaultRegistryName
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
asDepID,
|
|
14
14
|
baseDepID,
|
|
15
15
|
splitDepID
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J3R4XWB3.js";
|
|
17
17
|
import {
|
|
18
18
|
userAgent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VBADA6QU.js";
|
|
20
20
|
import {
|
|
21
21
|
I
|
|
22
22
|
} from "./chunk-U7TEQCBN.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-XNLSTHDK.js";
|
|
26
26
|
import {
|
|
27
27
|
defaultRegistryName
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
29
29
|
import {
|
|
30
30
|
error
|
|
31
31
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -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-CU752KW7.js";
|
|
16
16
|
import {
|
|
17
17
|
flush,
|
|
18
18
|
trackCommand,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
} from "./chunk-G2YT2GWF.js";
|
|
21
21
|
import {
|
|
22
22
|
parseError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-33HBY5CF.js";
|
|
24
24
|
import {
|
|
25
25
|
hasConfiguredRegistry,
|
|
26
26
|
hasNpmRegistry,
|
|
27
27
|
missingNpmRegistryError,
|
|
28
28
|
missingRegistryError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-D2LEK7VS.js";
|
|
30
30
|
import {
|
|
31
31
|
isLazyView,
|
|
32
32
|
isViewClass,
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
isGraphRunError,
|
|
37
37
|
splitDepID
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-J3R4XWB3.js";
|
|
39
39
|
import {
|
|
40
40
|
defaultView
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ENSGPOLR.js";
|
|
42
42
|
import {
|
|
43
43
|
emitter
|
|
44
44
|
} from "./chunk-U7TEQCBN.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
isErrorWithCause,
|
|
50
50
|
isObject
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RH2Y7MPW.js";
|
|
52
52
|
|
|
53
53
|
// ../../src/cli-sdk/src/print-err.ts
|
|
54
54
|
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|