@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.
Files changed (80) hide show
  1. package/{access-4RPC3X5N.js → access-YYMAAPHV.js} +42 -11
  2. package/{bugs-K6QLQLL4.js → bugs-RK5JBPSC.js} +19 -19
  3. package/{build-VD4L5IED.js → build-DVJSYCNF.js} +8 -9
  4. package/{cache-Q6FUUEQF.js → cache-JKQNGZ7L.js} +21 -15
  5. package/{chunk-5JFRXIK2.js → chunk-2PWSMJD7.js} +20 -1
  6. package/{chunk-5HBKYSTX.js → chunk-34TE4HZS.js} +36 -4
  7. package/{chunk-WAYVHANF.js → chunk-3LUM7NX5.js} +30 -5
  8. package/{chunk-NA732FNL.js → chunk-6FT6K5YN.js} +98 -6
  9. package/{chunk-HAYXR3MW.js → chunk-APMYKJI2.js} +1 -1
  10. package/{chunk-ZNCVQQDT.js → chunk-BWEH7DHQ.js} +2 -2
  11. package/{chunk-5HPGL5WS.js → chunk-CBASIDQH.js} +1 -1
  12. package/{chunk-MNK55XSE.js → chunk-CEHPRPGQ.js} +21 -0
  13. package/{chunk-2YJ5MESP.js → chunk-DF5K4CYR.js} +6 -10
  14. package/{chunk-DAS7TVRN.js → chunk-DR4Z63B6.js} +5 -5
  15. package/{chunk-NWLS3VOQ.js → chunk-DS7YMIHP.js} +239 -131
  16. package/{chunk-XUP35M5Q.js → chunk-GDT6KI4I.js} +4 -4
  17. package/{chunk-FUCQ7ARR.js → chunk-JZJWASXL.js} +36 -25
  18. package/{chunk-B5IILBX7.js → chunk-KDF7PEBY.js} +4 -4
  19. package/{chunk-P5S2TFCF.js → chunk-LN2A74PF.js} +14 -10
  20. package/{chunk-VL7RJVNN.js → chunk-LR42WTKN.js} +20 -11
  21. package/chunk-MZA6N2TA.js +190 -0
  22. package/{chunk-3564IL5W.js → chunk-QQYTPGIL.js} +1 -1
  23. package/chunk-SNOBGFNM.js +129 -0
  24. package/{chunk-LPIBYUMT.js → chunk-U7TEQCBN.js} +27 -1
  25. package/{chunk-TYRKIWGF.js → chunk-V4YCZZHY.js} +3 -3
  26. package/chunk-WD74RJXW.js +75 -0
  27. package/{chunk-XFI4THXZ.js → chunk-WE2TQN32.js} +1 -1
  28. package/{chunk-USTJECVS.js → chunk-X2AWQGYG.js} +1 -1
  29. package/{chunk-BSPUKIWY.js → chunk-XIF734VO.js} +12 -2
  30. package/chunk-YBVTY6ZW.js +91 -0
  31. package/{ci-G4PJWJQE.js → ci-WVYVR4XK.js} +10 -11
  32. package/cli-package.json +1 -1
  33. package/{config-WTIWWXRD.js → config-2MFZVP2N.js} +11 -11
  34. package/{config-66ARNESN.js → config-VYOTYBGS.js} +8 -6
  35. package/{create-DF6RQTHC.js → create-OJPLHBRR.js} +18 -18
  36. package/{deprecate-2KTC2HKH.js → deprecate-V4PKGFF7.js} +22 -19
  37. package/{dist-tag-QKJQIOGN.js → dist-tag-DNLV4VDE.js} +24 -26
  38. package/{docs-YSWJTGYX.js → docs-LXHDCGL5.js} +19 -19
  39. package/{exec-5XIMPSBI.js → exec-P32YSP44.js} +18 -18
  40. package/{exec-cache-OGX7WR5P.js → exec-cache-JZ5PDTOY.js} +16 -16
  41. package/{exec-local-SB7EPYED.js → exec-local-HHA464H4.js} +14 -15
  42. package/{help-GMCQHGVN.js → help-GVTTOYUL.js} +4 -5
  43. package/{init-KXIIWHBA.js → init-RENGG74N.js} +8 -9
  44. package/{install-ODTEMAMS.js → install-V6VXOBH2.js} +38 -15
  45. package/{list-QS4FLJSU.js → list-7N7Y5OXB.js} +42 -30
  46. package/{login-6TGYRY43.js → login-D2QSAUJC.js} +12 -12
  47. package/{logout-GOAB7KHJ.js → logout-QPOYBQNF.js} +8 -8
  48. package/{pack-PJDH6PKP.js → pack-4YYGXP3A.js} +12 -13
  49. package/package.json +1 -1
  50. package/{ping-ANBW2IRW.js → ping-QYRIZONU.js} +8 -8
  51. package/{pkg-GZWUXU65.js → pkg-WQTNABKT.js} +11 -12
  52. package/{profile-BLY74CMB.js → profile-PRI7WXK7.js} +21 -8
  53. package/{publish-W2KOTNMB.js → publish-PSBYJQS7.js} +33 -75
  54. package/{query-3PUMU5ON.js → query-UFYLQW4N.js} +36 -24
  55. package/{registry-ONSDWNPV.js → registry-YTJZ3AQD.js} +3 -3
  56. package/registry-client-src-revalidate.js +426 -217
  57. package/{repo-LZ6STH4C.js → repo-4S6ETFXX.js} +19 -19
  58. package/{reporter-SDMDYYMJ.js → reporter-GLWYHI2Y.js} +23 -1
  59. package/{run-JMIBADHE.js → run-OU7NUB7A.js} +14 -15
  60. package/{run-exec-JEKM2O53.js → run-exec-QPBY7ULE.js} +14 -15
  61. package/security-archive-src-update-expired.js +97 -63
  62. package/{setup-BTBU3NAI.js → setup-23QXG473.js} +43 -24
  63. package/{src-J4BAYOBO.js → src-3GN7TDNH.js} +14 -6
  64. package/{src-23VBKASP.js → src-575IYJOL.js} +17 -18
  65. package/{token-PUJ7QN6D.js → token-FCIA3RGD.js} +9 -9
  66. package/{uninstall-OTISP2T7.js → uninstall-BQVZVKB5.js} +12 -12
  67. package/{unpublish-X75EEQAN.js → unpublish-YGJ5HEYF.js} +43 -40
  68. package/{update-CKXX5POE.js → update-WCGV66JK.js} +35 -13
  69. package/{version-24B2X7M7.js → version-7EA3UQG7.js} +10 -11
  70. package/{view-Q7MAQ6R3.js → view-5FWIENVE.js} +10 -10
  71. package/vlr.js +1 -1
  72. package/vlrx.js +1 -1
  73. package/vlt.js +1 -1
  74. package/vlx.js +1 -1
  75. package/vlxl.js +1 -1
  76. package/{whoami-S6CQZFE3.js → whoami-O4ZTBIC4.js} +29 -13
  77. package/chunk-E74WGW5C.js +0 -49
  78. package/chunk-UBLFPJHV.js +0 -40
  79. package/chunk-Y3QEV76Q.js +0 -75
  80. 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
- loadPackageJson
19
- } from "./chunk-E74WGW5C.js";
18
+ userAgent
19
+ } from "./chunk-YBVTY6ZW.js";
20
20
  import {
21
21
  I
22
- } from "./chunk-LPIBYUMT.js";
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, version2) {
342
+ #retrieveNodeByNameVersion(name, version) {
347
343
  for (const node of this.#nodesByName.get(name) ?? []) {
348
- if (node.version === version2) {
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": `@vltpkg/security-archive/${version}`
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-FUCQ7ARR.js";
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-USTJECVS.js";
21
- import {
22
- commandUsage
23
- } from "./chunk-5HPGL5WS.js";
23
+ } from "./chunk-X2AWQGYG.js";
24
24
  import {
25
25
  load,
26
26
  save