@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
|
@@ -11,40 +11,39 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
loadCommand
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
Config
|
|
17
|
-
} from "./chunk-NA732FNL.js";
|
|
18
|
-
import "./chunk-P5S2TFCF.js";
|
|
19
|
-
import "./chunk-ZWKI5OSF.js";
|
|
14
|
+
} from "./chunk-WD74RJXW.js";
|
|
20
15
|
import {
|
|
21
16
|
flushAndExit,
|
|
22
17
|
indent,
|
|
23
18
|
outputCommand,
|
|
24
19
|
stderr,
|
|
25
20
|
stdout
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import
|
|
21
|
+
} from "./chunk-LR42WTKN.js";
|
|
22
|
+
import {
|
|
23
|
+
loadPackageJson
|
|
24
|
+
} from "./chunk-34TE4HZS.js";
|
|
28
25
|
import "./chunk-G2YT2GWF.js";
|
|
29
26
|
import {
|
|
30
27
|
asRootError
|
|
31
28
|
} from "./chunk-GDJ7JT2R.js";
|
|
32
|
-
import
|
|
29
|
+
import {
|
|
30
|
+
Config
|
|
31
|
+
} from "./chunk-6FT6K5YN.js";
|
|
32
|
+
import "./chunk-LN2A74PF.js";
|
|
33
|
+
import "./chunk-ZWKI5OSF.js";
|
|
33
34
|
import "./chunk-WGDTG44V.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-2PWSMJD7.js";
|
|
36
|
+
import "./chunk-X2AWQGYG.js";
|
|
37
|
+
import "./chunk-4KCU2KZL.js";
|
|
35
38
|
import "./chunk-YOE3VZFX.js";
|
|
36
39
|
import "./chunk-XKVU23NC.js";
|
|
37
40
|
import {
|
|
38
41
|
getSortedCliOptions,
|
|
39
42
|
getSortedKeys
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-4KCU2KZL.js";
|
|
43
|
+
} from "./chunk-CEHPRPGQ.js";
|
|
42
44
|
import "./chunk-HTOTG4TS.js";
|
|
43
|
-
import
|
|
44
|
-
|
|
45
|
-
} from "./chunk-E74WGW5C.js";
|
|
46
|
-
import "./chunk-LPIBYUMT.js";
|
|
47
|
-
import "./chunk-UBLFPJHV.js";
|
|
45
|
+
import "./chunk-SNOBGFNM.js";
|
|
46
|
+
import "./chunk-U7TEQCBN.js";
|
|
48
47
|
import "./chunk-VFBCWAOC.js";
|
|
49
48
|
import "./chunk-XNLSTHDK.js";
|
|
50
49
|
import "./chunk-VE6CCH33.js";
|
|
@@ -121,7 +120,7 @@ var run = async () => {
|
|
|
121
120
|
return flushAndExit(process.exitCode || 1);
|
|
122
121
|
}
|
|
123
122
|
if (vlt.command === "registry") {
|
|
124
|
-
const { dispatchRegistry } = await import("./registry-
|
|
123
|
+
const { dispatchRegistry } = await import("./registry-YTJZ3AQD.js");
|
|
125
124
|
await dispatchRegistry(vlt);
|
|
126
125
|
}
|
|
127
126
|
const command = await loadCommand(vlt.command);
|
|
@@ -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
|
requireRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2PWSMJD7.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CBASIDQH.js";
|
|
18
18
|
import "./chunk-XKVU23NC.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-CEHPRPGQ.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient,
|
|
22
22
|
deleteToken,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
normalizeRegistryKey,
|
|
26
26
|
registryBase,
|
|
27
27
|
setToken
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-DS7YMIHP.js";
|
|
29
|
+
import "./chunk-APMYKJI2.js";
|
|
30
|
+
import "./chunk-SNOBGFNM.js";
|
|
31
|
+
import "./chunk-YBVTY6ZW.js";
|
|
32
|
+
import "./chunk-U7TEQCBN.js";
|
|
33
33
|
import "./chunk-VFBCWAOC.js";
|
|
34
34
|
import "./chunk-XNLSTHDK.js";
|
|
35
35
|
import "./chunk-BHJT53TP.js";
|
|
@@ -142,7 +142,7 @@ var formatRegistryTokens = (r) => {
|
|
|
142
142
|
if (!r.localToken) {
|
|
143
143
|
lines.push(" (skipped remote query \u2014 no auth token)");
|
|
144
144
|
} else if (r.error) {
|
|
145
|
-
lines.push(` error: ${r.error}`);
|
|
145
|
+
lines.push(` error: ${r.error.replaceAll("\n", "\n ")}`);
|
|
146
146
|
} else if (r.tokens.length === 0) {
|
|
147
147
|
lines.push(" (no remote tokens found)");
|
|
148
148
|
} else {
|
|
@@ -11,25 +11,25 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
parseRemoveArgs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XIF734VO.js";
|
|
15
|
+
import "./chunk-2PWSMJD7.js";
|
|
15
16
|
import {
|
|
16
17
|
uninstall
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-USTJECVS.js";
|
|
20
|
-
import "./chunk-YOE3VZFX.js";
|
|
18
|
+
} from "./chunk-JZJWASXL.js";
|
|
19
|
+
import "./chunk-DF5K4CYR.js";
|
|
21
20
|
import {
|
|
22
21
|
commandUsage
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-MNK55XSE.js";
|
|
22
|
+
} from "./chunk-CBASIDQH.js";
|
|
23
|
+
import "./chunk-X2AWQGYG.js";
|
|
26
24
|
import {
|
|
27
25
|
lazyView
|
|
28
26
|
} from "./chunk-4KCU2KZL.js";
|
|
27
|
+
import "./chunk-YOE3VZFX.js";
|
|
28
|
+
import "./chunk-XKVU23NC.js";
|
|
29
|
+
import "./chunk-CEHPRPGQ.js";
|
|
29
30
|
import "./chunk-HTOTG4TS.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-UBLFPJHV.js";
|
|
31
|
+
import "./chunk-YBVTY6ZW.js";
|
|
32
|
+
import "./chunk-U7TEQCBN.js";
|
|
33
33
|
import "./chunk-VFBCWAOC.js";
|
|
34
34
|
import "./chunk-XNLSTHDK.js";
|
|
35
35
|
import "./chunk-BHJT53TP.js";
|
|
@@ -66,7 +66,7 @@ var usage = () => commandUsage({
|
|
|
66
66
|
var views = {
|
|
67
67
|
json: (i) => i.graph.toJSON(),
|
|
68
68
|
human: lazyView(
|
|
69
|
-
async () => (await import("./reporter-
|
|
69
|
+
async () => (await import("./reporter-GLWYHI2Y.js")).InstallReporter
|
|
70
70
|
)
|
|
71
71
|
};
|
|
72
72
|
var command = async (conf) => {
|
|
@@ -11,24 +11,25 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
resolveRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2PWSMJD7.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CBASIDQH.js";
|
|
18
18
|
import {
|
|
19
19
|
Spec
|
|
20
20
|
} from "./chunk-XKVU23NC.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-CEHPRPGQ.js";
|
|
22
22
|
import {
|
|
23
23
|
RegistryClient
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-E74WGW5C.js";
|
|
27
|
-
import "./chunk-LPIBYUMT.js";
|
|
28
|
-
import "./chunk-UBLFPJHV.js";
|
|
24
|
+
} from "./chunk-DS7YMIHP.js";
|
|
25
|
+
import "./chunk-APMYKJI2.js";
|
|
29
26
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
assertOk,
|
|
28
|
+
requestError
|
|
29
|
+
} from "./chunk-SNOBGFNM.js";
|
|
30
|
+
import "./chunk-YBVTY6ZW.js";
|
|
31
|
+
import "./chunk-U7TEQCBN.js";
|
|
32
|
+
import "./chunk-VFBCWAOC.js";
|
|
32
33
|
import "./chunk-XNLSTHDK.js";
|
|
33
34
|
import "./chunk-BHJT53TP.js";
|
|
34
35
|
import "./chunk-VE6CCH33.js";
|
|
@@ -116,16 +117,16 @@ var command = async (conf) => {
|
|
|
116
117
|
useCache: false
|
|
117
118
|
});
|
|
118
119
|
} catch (err) {
|
|
119
|
-
throw
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
if (packumentResponse.statusCode !== 200) {
|
|
124
|
-
throw error("Package not found on the registry", {
|
|
125
|
-
url: packumentUrl,
|
|
126
|
-
response: packumentResponse
|
|
120
|
+
throw requestError(err, {
|
|
121
|
+
message: "Failed to fetch package metadata",
|
|
122
|
+
url: packumentUrl
|
|
127
123
|
});
|
|
128
124
|
}
|
|
125
|
+
assertOk(packumentResponse, {
|
|
126
|
+
message: "Failed to fetch package metadata",
|
|
127
|
+
url: packumentUrl,
|
|
128
|
+
advice: (statusCode) => statusCode === 404 ? `${name} was not found on this registry.` : void 0
|
|
129
|
+
});
|
|
129
130
|
const packument = packumentResponse.json();
|
|
130
131
|
const versions = packument.versions;
|
|
131
132
|
const distTags = packument["dist-tags"];
|
|
@@ -164,16 +165,17 @@ var command = async (conf) => {
|
|
|
164
165
|
otp
|
|
165
166
|
});
|
|
166
167
|
} catch (err) {
|
|
167
|
-
throw
|
|
168
|
-
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
172
|
-
throw error("Failed to unpublish package version", {
|
|
168
|
+
throw requestError(err, {
|
|
169
|
+
message: "Failed to unpublish package version",
|
|
173
170
|
url: putUrl,
|
|
174
|
-
|
|
171
|
+
method: "PUT"
|
|
175
172
|
});
|
|
176
173
|
}
|
|
174
|
+
assertOk(response, {
|
|
175
|
+
message: "Failed to unpublish package version",
|
|
176
|
+
url: putUrl,
|
|
177
|
+
method: "PUT"
|
|
178
|
+
});
|
|
177
179
|
} else {
|
|
178
180
|
const packumentUrl = new URL(encodedName, registryUrl);
|
|
179
181
|
let packumentResponse;
|
|
@@ -182,16 +184,16 @@ var command = async (conf) => {
|
|
|
182
184
|
useCache: false
|
|
183
185
|
});
|
|
184
186
|
} catch (err) {
|
|
185
|
-
throw
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
if (packumentResponse.statusCode !== 200) {
|
|
190
|
-
throw error("Package not found on the registry", {
|
|
191
|
-
url: packumentUrl,
|
|
192
|
-
response: packumentResponse
|
|
187
|
+
throw requestError(err, {
|
|
188
|
+
message: "Failed to fetch package metadata",
|
|
189
|
+
url: packumentUrl
|
|
193
190
|
});
|
|
194
191
|
}
|
|
192
|
+
assertOk(packumentResponse, {
|
|
193
|
+
message: "Failed to fetch package metadata",
|
|
194
|
+
url: packumentUrl,
|
|
195
|
+
advice: (statusCode) => statusCode === 404 ? `${name} was not found on this registry.` : void 0
|
|
196
|
+
});
|
|
195
197
|
const packument = packumentResponse.json();
|
|
196
198
|
const deleteUrl = new URL(
|
|
197
199
|
`${encodedName}/-rev/${packument._rev}`,
|
|
@@ -209,16 +211,17 @@ var command = async (conf) => {
|
|
|
209
211
|
otp
|
|
210
212
|
});
|
|
211
213
|
} catch (err) {
|
|
212
|
-
throw
|
|
213
|
-
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
if (response.statusCode < 200 || response.statusCode >= 300) {
|
|
217
|
-
throw error("Failed to unpublish package", {
|
|
214
|
+
throw requestError(err, {
|
|
215
|
+
message: "Failed to unpublish package",
|
|
218
216
|
url: deleteUrl,
|
|
219
|
-
|
|
217
|
+
method: "DELETE"
|
|
220
218
|
});
|
|
221
219
|
}
|
|
220
|
+
assertOk(response, {
|
|
221
|
+
message: "Failed to unpublish package",
|
|
222
|
+
url: deleteUrl,
|
|
223
|
+
method: "DELETE"
|
|
224
|
+
});
|
|
222
225
|
}
|
|
223
226
|
return {
|
|
224
227
|
name,
|
|
@@ -9,24 +9,33 @@ 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
|
+
planSpecConfigPersist
|
|
14
|
+
} from "./chunk-MZA6N2TA.js";
|
|
15
|
+
import "./chunk-6FT6K5YN.js";
|
|
16
|
+
import "./chunk-LN2A74PF.js";
|
|
17
|
+
import "./chunk-ZWKI5OSF.js";
|
|
18
|
+
import {
|
|
19
|
+
asUnknownSpecPrefix
|
|
20
|
+
} from "./chunk-2PWSMJD7.js";
|
|
12
21
|
import {
|
|
13
22
|
update
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-USTJECVS.js";
|
|
17
|
-
import "./chunk-YOE3VZFX.js";
|
|
23
|
+
} from "./chunk-JZJWASXL.js";
|
|
24
|
+
import "./chunk-DF5K4CYR.js";
|
|
18
25
|
import {
|
|
19
26
|
commandUsage
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-MNK55XSE.js";
|
|
27
|
+
} from "./chunk-CBASIDQH.js";
|
|
28
|
+
import "./chunk-X2AWQGYG.js";
|
|
23
29
|
import {
|
|
24
30
|
lazyView
|
|
25
31
|
} from "./chunk-4KCU2KZL.js";
|
|
32
|
+
import "./chunk-YOE3VZFX.js";
|
|
33
|
+
import "./chunk-XKVU23NC.js";
|
|
34
|
+
import "./chunk-CEHPRPGQ.js";
|
|
26
35
|
import "./chunk-HTOTG4TS.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-SNOBGFNM.js";
|
|
37
|
+
import "./chunk-YBVTY6ZW.js";
|
|
38
|
+
import "./chunk-U7TEQCBN.js";
|
|
30
39
|
import "./chunk-VFBCWAOC.js";
|
|
31
40
|
import "./chunk-XNLSTHDK.js";
|
|
32
41
|
import "./chunk-BHJT53TP.js";
|
|
@@ -45,6 +54,9 @@ var usage = () => commandUsage({
|
|
|
45
54
|
description: `Update dependencies to their latest in-range versions.
|
|
46
55
|
Discards the lockfile and resolves dependencies from scratch.`,
|
|
47
56
|
options: {
|
|
57
|
+
"save-config": {
|
|
58
|
+
description: "Save registry and git host options given on the command line or via env (e.g. `--registries name=url`) to the project vlt.json, or the user vlt.json with --config=user."
|
|
59
|
+
},
|
|
48
60
|
"allow-scripts": {
|
|
49
61
|
value: "<query>",
|
|
50
62
|
description: "Filter which packages are allowed to run lifecycle scripts using DSS query syntax."
|
|
@@ -57,10 +69,11 @@ var views = {
|
|
|
57
69
|
buildQueue: i.buildQueue,
|
|
58
70
|
message: `${i.buildQueue.length} packages that will need to be built, run "vlt build" to complete the update.`
|
|
59
71
|
} : null,
|
|
60
|
-
graph: i.graph.toJSON()
|
|
72
|
+
graph: i.graph.toJSON(),
|
|
73
|
+
...i.persistedConfig ? { persistedConfig: i.persistedConfig } : null
|
|
61
74
|
}),
|
|
62
75
|
human: lazyView(
|
|
63
|
-
async () => (await import("./reporter-
|
|
76
|
+
async () => (await import("./reporter-GLWYHI2Y.js")).InstallReporter
|
|
64
77
|
)
|
|
65
78
|
};
|
|
66
79
|
var command = async (conf) => {
|
|
@@ -69,12 +82,21 @@ var command = async (conf) => {
|
|
|
69
82
|
code: "EUSAGE"
|
|
70
83
|
});
|
|
71
84
|
}
|
|
85
|
+
const persist = planSpecConfigPersist(conf);
|
|
72
86
|
const allowScripts = conf.get("allow-scripts") ? String(conf.get("allow-scripts")) : ":not(*)";
|
|
73
87
|
const { buildQueue, graph } = await update({
|
|
74
88
|
...conf.options,
|
|
75
89
|
allowScripts
|
|
90
|
+
}).catch((er) => {
|
|
91
|
+
throw asUnknownSpecPrefix(er);
|
|
76
92
|
});
|
|
77
|
-
|
|
93
|
+
if (persist)
|
|
94
|
+
await conf.addConfigToFile(persist.which, persist.values);
|
|
95
|
+
return {
|
|
96
|
+
buildQueue,
|
|
97
|
+
graph,
|
|
98
|
+
...persist ? { persistedConfig: persist } : null
|
|
99
|
+
};
|
|
78
100
|
};
|
|
79
101
|
export {
|
|
80
102
|
command,
|
|
@@ -11,28 +11,27 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
createHostContextsMap
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3LUM7NX5.js";
|
|
15
15
|
import {
|
|
16
16
|
Query,
|
|
17
17
|
actual
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-JZJWASXL.js";
|
|
19
|
+
import "./chunk-DF5K4CYR.js";
|
|
20
|
+
import {
|
|
21
|
+
commandUsage
|
|
22
|
+
} from "./chunk-CBASIDQH.js";
|
|
20
23
|
import {
|
|
21
24
|
is,
|
|
22
25
|
isClean,
|
|
23
26
|
minimatch,
|
|
24
27
|
spawn
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-X2AWQGYG.js";
|
|
26
29
|
import "./chunk-YOE3VZFX.js";
|
|
27
|
-
import {
|
|
28
|
-
commandUsage
|
|
29
|
-
} from "./chunk-5HPGL5WS.js";
|
|
30
30
|
import "./chunk-XKVU23NC.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-CEHPRPGQ.js";
|
|
32
32
|
import "./chunk-HTOTG4TS.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-UBLFPJHV.js";
|
|
33
|
+
import "./chunk-YBVTY6ZW.js";
|
|
34
|
+
import "./chunk-U7TEQCBN.js";
|
|
36
35
|
import {
|
|
37
36
|
asError,
|
|
38
37
|
inc,
|
|
@@ -14,26 +14,26 @@ import {
|
|
|
14
14
|
} from "./chunk-DBANBIL2.js";
|
|
15
15
|
import {
|
|
16
16
|
PackageInfoClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LN2A74PF.js";
|
|
18
18
|
import "./chunk-ZWKI5OSF.js";
|
|
19
19
|
import {
|
|
20
20
|
SecurityArchive
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import
|
|
21
|
+
} from "./chunk-DF5K4CYR.js";
|
|
22
|
+
import {
|
|
23
|
+
commandUsage
|
|
24
|
+
} from "./chunk-CBASIDQH.js";
|
|
25
|
+
import "./chunk-X2AWQGYG.js";
|
|
23
26
|
import {
|
|
24
27
|
getId
|
|
25
28
|
} from "./chunk-YOE3VZFX.js";
|
|
26
|
-
import {
|
|
27
|
-
commandUsage
|
|
28
|
-
} from "./chunk-5HPGL5WS.js";
|
|
29
29
|
import {
|
|
30
30
|
Spec
|
|
31
31
|
} from "./chunk-XKVU23NC.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-CEHPRPGQ.js";
|
|
33
33
|
import "./chunk-HTOTG4TS.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-SNOBGFNM.js";
|
|
35
|
+
import "./chunk-YBVTY6ZW.js";
|
|
36
|
+
import "./chunk-U7TEQCBN.js";
|
|
37
37
|
import "./chunk-VFBCWAOC.js";
|
|
38
38
|
import "./chunk-XNLSTHDK.js";
|
|
39
39
|
import "./chunk-VE6CCH33.js";
|
package/vlr.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QQYTPGIL.js";
|
|
16
16
|
import "./chunk-PZLD7RTK.js";
|
|
17
17
|
|
|
18
18
|
// ../build/src/bins/vlr.ts
|
package/vlrx.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QQYTPGIL.js";
|
|
16
16
|
import "./chunk-PZLD7RTK.js";
|
|
17
17
|
|
|
18
18
|
// ../build/src/bins/vlrx.ts
|
package/vlt.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QQYTPGIL.js";
|
|
16
16
|
import "./chunk-PZLD7RTK.js";
|
|
17
17
|
|
|
18
18
|
// ../build/src/bins/vlt.ts
|
package/vlx.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QQYTPGIL.js";
|
|
16
16
|
import "./chunk-PZLD7RTK.js";
|
|
17
17
|
|
|
18
18
|
// ../build/src/bins/vlx.ts
|
package/vlxl.js
CHANGED
|
@@ -12,7 +12,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
12
12
|
var require = _vlt_createRequire(import.meta.filename);
|
|
13
13
|
import {
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QQYTPGIL.js";
|
|
16
16
|
import "./chunk-PZLD7RTK.js";
|
|
17
17
|
|
|
18
18
|
// ../build/src/bins/vlxl.ts
|
|
@@ -11,24 +11,28 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
resolveRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2PWSMJD7.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CBASIDQH.js";
|
|
18
18
|
import "./chunk-XKVU23NC.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-CEHPRPGQ.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
} from "./chunk-DS7YMIHP.js";
|
|
23
|
+
import "./chunk-APMYKJI2.js";
|
|
24
|
+
import {
|
|
25
|
+
assertOk
|
|
26
|
+
} from "./chunk-SNOBGFNM.js";
|
|
27
|
+
import "./chunk-YBVTY6ZW.js";
|
|
28
|
+
import "./chunk-U7TEQCBN.js";
|
|
27
29
|
import "./chunk-VFBCWAOC.js";
|
|
28
30
|
import "./chunk-XNLSTHDK.js";
|
|
29
31
|
import "./chunk-BHJT53TP.js";
|
|
30
32
|
import "./chunk-VE6CCH33.js";
|
|
31
|
-
import
|
|
33
|
+
import {
|
|
34
|
+
error
|
|
35
|
+
} from "./chunk-WZWDS3W4.js";
|
|
32
36
|
import "./chunk-PZLD7RTK.js";
|
|
33
37
|
|
|
34
38
|
// ../../src/cli-sdk/src/commands/whoami.ts
|
|
@@ -58,11 +62,23 @@ var views = {
|
|
|
58
62
|
};
|
|
59
63
|
var command = async (conf) => {
|
|
60
64
|
const rc = new RegistryClient(conf.options);
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
const url = new URL("-/whoami", await resolveRegistry(conf));
|
|
66
|
+
const response = await rc.request(url, { useCache: false });
|
|
67
|
+
assertOk(response, {
|
|
68
|
+
message: "Failed to look up the current user",
|
|
69
|
+
url,
|
|
70
|
+
advice: (statusCode) => statusCode === 401 || statusCode === 403 ? `Not logged in to ${url.origin}. Run \`vlt login\` and try again.` : void 0
|
|
71
|
+
});
|
|
65
72
|
const { username } = response.json();
|
|
73
|
+
if (typeof username !== "string" || !username) {
|
|
74
|
+
throw error("Registry did not report a username", {
|
|
75
|
+
code: "EREQUEST",
|
|
76
|
+
url,
|
|
77
|
+
wanted: "a `username` string",
|
|
78
|
+
found: username,
|
|
79
|
+
response
|
|
80
|
+
});
|
|
81
|
+
}
|
|
66
82
|
return { username };
|
|
67
83
|
};
|
|
68
84
|
export {
|
package/chunk-E74WGW5C.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
// ../../node_modules/.vlt/~npm~package-json-from-dist@1.0.1/node_modules/package-json-from-dist/dist/esm/index.js
|
|
14
|
-
import { readFileSync } from "node:fs";
|
|
15
|
-
import { dirname, resolve, sep } from "node:path";
|
|
16
|
-
import { fileURLToPath } from "node:url";
|
|
17
|
-
var NM = `${sep}node_modules${sep}`;
|
|
18
|
-
var STORE = `.store${sep}`;
|
|
19
|
-
var PKG = `${sep}package${sep}`;
|
|
20
|
-
var DIST = `${sep}dist${sep}`;
|
|
21
|
-
var findPackageJson = (from, pathFromSrc = "../package.json") => {
|
|
22
|
-
const f = typeof from === "object" || from.startsWith("file://") ? fileURLToPath(from) : from;
|
|
23
|
-
const __dirname = dirname(f);
|
|
24
|
-
const nms = __dirname.lastIndexOf(NM);
|
|
25
|
-
if (nms !== -1) {
|
|
26
|
-
const nm = __dirname.substring(0, nms + NM.length);
|
|
27
|
-
const pkgDir = __dirname.substring(nms + NM.length);
|
|
28
|
-
if (pkgDir.startsWith(STORE)) {
|
|
29
|
-
const pkg = pkgDir.indexOf(PKG, STORE.length);
|
|
30
|
-
if (pkg) {
|
|
31
|
-
return resolve(nm, pkgDir.substring(0, pkg + PKG.length), "package.json");
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const pkgName = pkgDir.startsWith("@") ? pkgDir.split(sep, 2).join(sep) : String(pkgDir.split(sep)[0]);
|
|
35
|
-
return resolve(nm, pkgName, "package.json");
|
|
36
|
-
} else {
|
|
37
|
-
const d = __dirname.lastIndexOf(DIST);
|
|
38
|
-
if (d !== -1) {
|
|
39
|
-
return resolve(__dirname.substring(0, d), "package.json");
|
|
40
|
-
} else {
|
|
41
|
-
return resolve(__dirname, pathFromSrc);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var loadPackageJson = (from, pathFromSrc = "../package.json") => JSON.parse(readFileSync(findPackageJson(from, pathFromSrc), "utf8"));
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
loadPackageJson
|
|
49
|
-
};
|
package/chunk-UBLFPJHV.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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/output/src/index.ts
|
|
14
|
-
import EventEmitter from "node:events";
|
|
15
|
-
var OutputEmitter = class {
|
|
16
|
-
emitter = new EventEmitter();
|
|
17
|
-
emit(eventName, payload) {
|
|
18
|
-
this.emitter.emit(eventName, payload);
|
|
19
|
-
}
|
|
20
|
-
on(eventName, handler) {
|
|
21
|
-
this.emitter.on(eventName, handler);
|
|
22
|
-
}
|
|
23
|
-
off(eventName, handler) {
|
|
24
|
-
this.emitter.off(eventName, handler);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var emitter = new OutputEmitter();
|
|
28
|
-
var logRequest = (url, state, details = {}) => {
|
|
29
|
-
emitter.emit("request", { url, state, ...details });
|
|
30
|
-
};
|
|
31
|
-
var graphStep = (step) => {
|
|
32
|
-
emitter.emit("graphStep", { step, state: "start" });
|
|
33
|
-
return () => emitter.emit("graphStep", { step, state: "stop" });
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
emitter,
|
|
38
|
-
logRequest,
|
|
39
|
-
graphStep
|
|
40
|
-
};
|