@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
|
@@ -1203,6 +1203,10 @@ var definition = j2.heading("Configuration").description(
|
|
|
1203
1203
|
|
|
1204
1204
|
Command-specific fields may be set in a nested \`command\` object that
|
|
1205
1205
|
overrides any options defined at the top level.
|
|
1206
|
+
|
|
1207
|
+
Object type values given in the environment or on the command line
|
|
1208
|
+
are merged key by key over the config files (command line wins over
|
|
1209
|
+
environment); other values replace them.
|
|
1206
1210
|
`
|
|
1207
1211
|
).flag({
|
|
1208
1212
|
color: {
|
|
@@ -1266,6 +1270,12 @@ var definition = j2.heading("Configuration").description(
|
|
|
1266
1270
|
alias must be configured (e.g. via \`vlt setup\`) before it
|
|
1267
1271
|
can be used. The \`gh\` and \`jsr\` aliases have built-in
|
|
1268
1272
|
defaults that can be overridden here.
|
|
1273
|
+
|
|
1274
|
+
Aliases given on the command line or in
|
|
1275
|
+
\`VLT_REGISTRIES\` (newline-delimited) merge with the
|
|
1276
|
+
configured ones, later sources winning per key. Pass
|
|
1277
|
+
\`--save-config\` to \`install\`, \`add\` or
|
|
1278
|
+
\`update\` to save them to \`vlt.json\`.
|
|
1269
1279
|
`
|
|
1270
1280
|
},
|
|
1271
1281
|
"scoped-registries": {
|
|
@@ -1689,6 +1699,17 @@ var definition = j2.heading("Configuration").description(
|
|
|
1689
1699
|
This is useful if a package already exists in
|
|
1690
1700
|
devDependencies or optionalDependencies, but you want to
|
|
1691
1701
|
move it to be a non-optional production dependency.`
|
|
1702
|
+
},
|
|
1703
|
+
"save-config": {
|
|
1704
|
+
description: `Save the registry and git host options given on the
|
|
1705
|
+
command line or via \`VLT_*\` env (\`--registry\`,
|
|
1706
|
+
\`--registries\`, \`--default-registry-alias\`,
|
|
1707
|
+
\`--scoped-registries\`, \`--jsr-registries\`,
|
|
1708
|
+
\`--git-hosts\`, \`--git-host-archives\`) to the
|
|
1709
|
+
project \`vlt.json\` (or the user one with
|
|
1710
|
+
\`--config=user\`) after a successful \`install\`,
|
|
1711
|
+
\`add\` or \`update\`. Values a config file already
|
|
1712
|
+
has are left alone.`
|
|
1692
1713
|
}
|
|
1693
1714
|
}).opt({
|
|
1694
1715
|
"save-prefix": {
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
splitDepID
|
|
16
16
|
} from "./chunk-YOE3VZFX.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
userAgent
|
|
19
|
+
} from "./chunk-YBVTY6ZW.js";
|
|
20
20
|
import {
|
|
21
21
|
I
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-U7TEQCBN.js";
|
|
23
23
|
import {
|
|
24
24
|
defaultRegistryName
|
|
25
25
|
} from "./chunk-VFBCWAOC.js";
|
|
@@ -270,10 +270,6 @@ var usesNpmRegistry = (node) => {
|
|
|
270
270
|
// ../../src/security-archive/src/index.ts
|
|
271
271
|
var SOCKET_API_V0_URL = "https://api.socket.dev/v0/purl?alerts=true";
|
|
272
272
|
var SOCKET_PUBLIC_API_TOKEN = "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
273
|
-
var { version } = loadPackageJson(
|
|
274
|
-
import.meta.filename,
|
|
275
|
-
"cli-package.json"
|
|
276
|
-
);
|
|
277
273
|
var SecurityArchive = class _SecurityArchive extends I {
|
|
278
274
|
#expired = /* @__PURE__ */ new Set();
|
|
279
275
|
#path;
|
|
@@ -343,9 +339,9 @@ var SecurityArchive = class _SecurityArchive extends I {
|
|
|
343
339
|
/**
|
|
344
340
|
* Retrieves a node using its name and version.
|
|
345
341
|
*/
|
|
346
|
-
#retrieveNodeByNameVersion(name,
|
|
342
|
+
#retrieveNodeByNameVersion(name, version) {
|
|
347
343
|
for (const node of this.#nodesByName.get(name) ?? []) {
|
|
348
|
-
if (node.version ===
|
|
344
|
+
if (node.version === version) {
|
|
349
345
|
return node;
|
|
350
346
|
}
|
|
351
347
|
}
|
|
@@ -462,7 +458,7 @@ var SecurityArchive = class _SecurityArchive extends I {
|
|
|
462
458
|
method: "POST",
|
|
463
459
|
headers: {
|
|
464
460
|
Authorization: `Basic ${Buffer.from(`${SOCKET_PUBLIC_API_TOKEN}:`).toString("base64url")}`,
|
|
465
|
-
"User-Agent":
|
|
461
|
+
"User-Agent": userAgent
|
|
466
462
|
},
|
|
467
463
|
body: JSON.stringify({
|
|
468
464
|
components: Array.from(queue)
|
|
@@ -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-JZJWASXL.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-5HPGL5WS.js";
|
|
23
|
+
} from "./chunk-X2AWQGYG.js";
|
|
24
24
|
import {
|
|
25
25
|
load,
|
|
26
26
|
save
|