@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.
Files changed (85) hide show
  1. package/{access-FTHPFPUJ.js → access-HIVJOWXZ.js} +10 -10
  2. package/{bugs-QS6HQUO2.js → bugs-2KFUYMPS.js} +19 -19
  3. package/{build-H27SXMAS.js → build-CX6YZ4LS.js} +11 -11
  4. package/{cache-IB4HMFDT.js → cache-I6L5ZRGD.js} +15 -15
  5. package/cache-unzip-src-unzip.js +31 -12
  6. package/{chunk-QA6RE2GS.js → chunk-263MHLR3.js} +57 -22
  7. package/{chunk-YFNQ6HZ3.js → chunk-2HXJ4ZSF.js} +3 -3
  8. package/{chunk-YTT3UHUB.js → chunk-33HBY5CF.js} +1 -1
  9. package/{chunk-LD4BQJBG.js → chunk-C6LK7C3L.js} +4 -4
  10. package/{chunk-GUATFMMU.js → chunk-CU752KW7.js} +1 -1
  11. package/{chunk-O44Z6MAV.js → chunk-D2LEK7VS.js} +1 -1
  12. package/{chunk-6A3XS52F.js → chunk-ENSGPOLR.js} +13 -0
  13. package/{chunk-7KFMQ3BR.js → chunk-EP7AVBIO.js} +5 -5
  14. package/{chunk-OE6VHHN4.js → chunk-FHMIECHI.js} +27 -27
  15. package/chunk-GDV5LSQ2.js +75 -0
  16. package/{chunk-3CUFJPBK.js → chunk-HCZOVC3Y.js} +1 -1
  17. package/{chunk-55DYW2MP.js → chunk-I6QGYSB4.js} +1 -1
  18. package/{chunk-LEGPLJWK.js → chunk-ILRJWH6A.js} +5 -5
  19. package/{chunk-B2FK2HHL.js → chunk-J2WL3A3C.js} +62 -17
  20. package/{chunk-SYGF27W7.js → chunk-J3R4XWB3.js} +2 -2
  21. package/{chunk-FOJCK57G.js → chunk-JFHEXCG5.js} +3 -3
  22. package/{chunk-UNWQVOLY.js → chunk-MJWUULO6.js} +6 -6
  23. package/{chunk-VHHLO5L6.js → chunk-N4RCKCHY.js} +1 -1
  24. package/{chunk-6G7MTZGS.js → chunk-P4LLYWCG.js} +110 -21
  25. package/{chunk-BHJT53TP.js → chunk-PDWPFR5T.js} +1 -1
  26. package/{chunk-LKQ5R4VX.js → chunk-QETVMIIT.js} +4 -4
  27. package/{chunk-5PP77V44.js → chunk-QWJDHBV7.js} +4 -3
  28. package/{chunk-G5BSQ6DP.js → chunk-RH2Y7MPW.js} +22 -0
  29. package/{chunk-5YB6UIC3.js → chunk-SVMH3NDM.js} +40 -23
  30. package/{chunk-NJZSCUD4.js → chunk-TYLYZKVA.js} +14 -11
  31. package/{chunk-G5NJ7CYI.js → chunk-V7EQZOO5.js} +1 -1
  32. package/{chunk-JTUZP2OD.js → chunk-VBADA6QU.js} +1 -1
  33. package/{chunk-FSZF2RSQ.js → chunk-W6UMN2YJ.js} +4 -4
  34. package/{chunk-VE6CCH33.js → chunk-Y5PA7DVK.js} +1 -0
  35. package/{chunk-5BD4QGW2.js → chunk-YZWFWSY7.js} +6 -6
  36. package/{chunk-UQUIO7LW.js → chunk-ZNUXDX6R.js} +4 -3
  37. package/{ci-XJBYXFFJ.js → ci-BX54SEU3.js} +12 -12
  38. package/cli-package.json +2 -2
  39. package/{config-4Y46SH5K.js → config-HFF6XDCV.js} +9 -9
  40. package/{config-H2Q4ABSS.js → config-WBVJX42R.js} +11 -11
  41. package/{create-LUYL2QI4.js → create-W67HRHWZ.js} +20 -20
  42. package/{deprecate-5ANCI2L6.js → deprecate-5T6JTGJ3.js} +13 -13
  43. package/{devtools-UEMPW5GG.js → devtools-UMJUK42W.js} +2 -2
  44. package/{dist-tag-SD2CRWIL.js → dist-tag-YIZTS7GF.js} +10 -10
  45. package/{docs-B6LVNWTP.js → docs-G7CKMPCL.js} +19 -19
  46. package/{exec-CJ5KQA72.js → exec-YYCAZZ6Z.js} +20 -20
  47. package/{exec-cache-EE7DAOW2.js → exec-cache-6ENHAGC6.js} +18 -18
  48. package/{exec-local-HT3VBN6S.js → exec-local-OXG3PSLF.js} +17 -17
  49. package/{help-GZ44WYDS.js → help-RMOIAILM.js} +4 -4
  50. package/{init-HVXRXFVY.js → init-UPEQXC4D.js} +12 -12
  51. package/{install-E2C7EE6P.js → install-U7LLEQU6.js} +18 -18
  52. package/{list-V4V6SHJP.js → list-N6CKPXTK.js} +20 -20
  53. package/{login-VRFV7MCE.js → login-MCO4ZLVF.js} +14 -14
  54. package/{logout-SU75R7BN.js → logout-BJ4QRZYG.js} +10 -10
  55. package/{pack-IVGKUXTL.js → pack-U6PYRFZ6.js} +13 -13
  56. package/package.json +1 -1
  57. package/{ping-WB222SDT.js → ping-VFB6SCMH.js} +10 -10
  58. package/{pkg-LAAFNONA.js → pkg-ZNK5SCF4.js} +13 -13
  59. package/{profile-P3AVHRDI.js → profile-TW32HLYA.js} +10 -10
  60. package/{publish-IUNB3KH5.js → publish-AHOITWZQ.js} +36 -21
  61. package/{query-XCN55INS.js → query-KKP5PNSQ.js} +20 -20
  62. package/{registry-QQLWJHJI.js → registry-VHB65BWD.js} +5 -5
  63. package/registry-client-src-revalidate.js +25 -26
  64. package/{repo-BQDWUCX5.js → repo-BHTVK5KE.js} +19 -19
  65. package/{reporter-5BVUNWQ6.js → reporter-VQU7HYKM.js} +75 -75
  66. package/{run-QT7DX243.js → run-UD32OTUJ.js} +17 -17
  67. package/{run-exec-XYUI7GLN.js → run-exec-NOCIUNGL.js} +17 -17
  68. package/security-archive-src-update-expired.js +1 -1
  69. package/{setup-CXDJXRAG.js → setup-PBCWOSTV.js} +17 -17
  70. package/{src-UBAERP25.js → src-LRKPUV4J.js} +16 -16
  71. package/{src-OKMGXMAD.js → src-T5FBZFMV.js} +24 -14
  72. package/{src-2BUT4WYP.js → src-Z44JKVWS.js} +6 -6
  73. package/{token-CBOK6DMT.js → token-PCPB6NOL.js} +10 -10
  74. package/{uninstall-27VP46KJ.js → uninstall-LOGSQXFS.js} +14 -14
  75. package/{unpublish-F4637OQX.js → unpublish-O3UFCTEJ.js} +10 -10
  76. package/{update-NGWLJJ22.js → update-WBCLWGLN.js} +17 -17
  77. package/{version-WPD2KNVC.js → version-S3LCB2TQ.js} +12 -12
  78. package/{view-YKFTRRPD.js → view-LMPENVAJ.js} +11 -11
  79. package/vlr.js +1 -1
  80. package/vlrx.js +1 -1
  81. package/vlt.js +1 -1
  82. package/vlx.js +1 -1
  83. package/vlxl.js +1 -1
  84. package/{whoami-I5Q6RTAP.js → whoami-LYMG7R3P.js} +10 -10
  85. package/chunk-SPRVRSEL.js +0 -75
@@ -2319,14 +2319,14 @@ var require_request = __commonJS({
2319
2319
  onResponseStarted() {
2320
2320
  return this[kHandler].onResponseStarted?.();
2321
2321
  }
2322
- onHeaders(statusCode, headers, resume, statusText) {
2322
+ onHeaders(statusCode, headers, resume, statusText2) {
2323
2323
  assert(!this.aborted);
2324
2324
  assert(!this.completed);
2325
2325
  if (channels.headers.hasSubscribers) {
2326
- channels.headers.publish({ request: this, response: { statusCode, headers, statusText } });
2326
+ channels.headers.publish({ request: this, response: { statusCode, headers, statusText: statusText2 } });
2327
2327
  }
2328
2328
  try {
2329
- return this[kHandler].onHeaders(statusCode, headers, resume, statusText);
2329
+ return this[kHandler].onHeaders(statusCode, headers, resume, statusText2);
2330
2330
  } catch (err) {
2331
2331
  this.abort(err);
2332
2332
  }
@@ -5079,9 +5079,9 @@ var require_util2 = __commonJS({
5079
5079
  function isErrorLike(object) {
5080
5080
  return object instanceof Error || (object?.constructor?.name === "Error" || object?.constructor?.name === "DOMException");
5081
5081
  }
5082
- function isValidReasonPhrase(statusText) {
5083
- for (let i2 = 0; i2 < statusText.length; ++i2) {
5084
- const c = statusText.charCodeAt(i2);
5082
+ function isValidReasonPhrase(statusText2) {
5083
+ for (let i2 = 0; i2 < statusText2.length; ++i2) {
5084
+ const c = statusText2.charCodeAt(i2);
5085
5085
  if (!(c === 9 || // HTAB
5086
5086
  c >= 32 && c <= 126 || // SP / VCHAR
5087
5087
  c >= 128 && c <= 255)) {
@@ -7036,7 +7036,7 @@ var require_client_h1 = __commonJS({
7036
7036
  * @returns {number}
7037
7037
  */
7038
7038
  onHeadersComplete(statusCode, upgrade, shouldKeepAlive) {
7039
- const { client, socket, headers, statusText } = this;
7039
+ const { client, socket, headers, statusText: statusText2 } = this;
7040
7040
  if (socket.destroyed) {
7041
7041
  return -1;
7042
7042
  }
@@ -7101,7 +7101,7 @@ var require_client_h1 = __commonJS({
7101
7101
  } else {
7102
7102
  socket[kReset] = true;
7103
7103
  }
7104
- const pause = request2.onHeaders(statusCode, headers, this.resume, statusText) === false;
7104
+ const pause = request2.onHeaders(statusCode, headers, this.resume, statusText2) === false;
7105
7105
  if (request2.aborted) {
7106
7106
  return -1;
7107
7107
  }
@@ -12599,7 +12599,7 @@ var require_mock_utils = __commonJS({
12599
12599
  kTotalDispatchCount
12600
12600
  } = require_mock_symbols();
12601
12601
  var { serializePathWithQuery } = require_util();
12602
- var { STATUS_CODES: STATUS_CODES3 } = __require("node:http");
12602
+ var { STATUS_CODES } = __require("node:http");
12603
12603
  var {
12604
12604
  types: {
12605
12605
  isPromise
@@ -12807,7 +12807,7 @@ var require_mock_utils = __commonJS({
12807
12807
  return result;
12808
12808
  }
12809
12809
  function getStatusText(statusCode) {
12810
- return STATUS_CODES3[statusCode] || "unknown";
12810
+ return STATUS_CODES[statusCode] || "unknown";
12811
12811
  }
12812
12812
  async function getResponse(body) {
12813
12813
  const buffers = [];
@@ -20413,7 +20413,7 @@ var require_fetch = __commonJS({
20413
20413
  var { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require_data_url();
20414
20414
  var { getGlobalDispatcher } = require_global2();
20415
20415
  var { webidl } = require_webidl();
20416
- var { STATUS_CODES: STATUS_CODES3 } = __require("node:http");
20416
+ var { STATUS_CODES } = __require("node:http");
20417
20417
  var { bytesMatch } = require_subresource_integrity();
20418
20418
  var { createDeferredPromise } = require_promise();
20419
20419
  var { isomorphicEncode } = require_infra();
@@ -21206,13 +21206,13 @@ var require_fetch = __commonJS({
21206
21206
  })();
21207
21207
  }
21208
21208
  try {
21209
- const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody });
21209
+ const { body, status, statusText: statusText2, headersList, socket } = await dispatch({ body: requestBody });
21210
21210
  if (socket) {
21211
- response = makeResponse({ status, statusText, headersList, socket });
21211
+ response = makeResponse({ status, statusText: statusText2, headersList, socket });
21212
21212
  } else {
21213
21213
  const iterator = body[Symbol.asyncIterator]();
21214
21214
  fetchParams.controller.next = () => iterator.next();
21215
- response = makeResponse({ status, statusText, headersList });
21215
+ response = makeResponse({ status, statusText: statusText2, headersList });
21216
21216
  }
21217
21217
  } catch (err) {
21218
21218
  if (err.name === "AbortError") {
@@ -21334,7 +21334,7 @@ var require_fetch = __commonJS({
21334
21334
  onResponseStarted() {
21335
21335
  timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability);
21336
21336
  },
21337
- onHeaders(status, rawHeaders, resume, statusText) {
21337
+ onHeaders(status, rawHeaders, resume, statusText2) {
21338
21338
  if (status < 200) {
21339
21339
  return false;
21340
21340
  }
@@ -21397,7 +21397,7 @@ var require_fetch = __commonJS({
21397
21397
  const onError = this.onError.bind(this);
21398
21398
  resolve11({
21399
21399
  status,
21400
- statusText,
21400
+ statusText: statusText2,
21401
21401
  headersList,
21402
21402
  body: decoders.length ? pipeline(this.body, ...decoders, (err) => {
21403
21403
  if (err) {
@@ -21450,7 +21450,7 @@ var require_fetch = __commonJS({
21450
21450
  }
21451
21451
  resolve11({
21452
21452
  status,
21453
- statusText: STATUS_CODES3[status],
21453
+ statusText: STATUS_CODES[status],
21454
21454
  headersList,
21455
21455
  socket
21456
21456
  });
@@ -21474,7 +21474,7 @@ var require_fetch = __commonJS({
21474
21474
  }
21475
21475
  resolve11({
21476
21476
  status,
21477
- statusText: STATUS_CODES3[status],
21477
+ statusText: STATUS_CODES[status],
21478
21478
  headersList,
21479
21479
  socket
21480
21480
  });
@@ -32458,7 +32458,6 @@ var XDG = class {
32458
32458
  var import_undici3 = __toESM(require_undici(), 1);
32459
32459
  import { randomUUID } from "node:crypto";
32460
32460
  import { readFileSync as readFileSync2 } from "node:fs";
32461
- import { STATUS_CODES as STATUS_CODES2 } from "node:http";
32462
32461
  import { availableParallelism } from "node:os";
32463
32462
  import { dirname as dirname3, resolve as resolve10 } from "node:path";
32464
32463
  import { setTimeout as setTimeout3 } from "node:timers/promises";
@@ -32467,7 +32466,7 @@ import { setTimeout as setTimeout3 } from "node:timers/promises";
32467
32466
  var package_default = {
32468
32467
  name: "@vltpkg/user-agent",
32469
32468
  description: "The User-Agent string that vlt sends with every outbound request",
32470
- version: "1.2.0",
32469
+ version: "1.3.0",
32471
32470
  repository: {
32472
32471
  type: "git",
32473
32472
  url: "git+https://github.com/vltpkg/vltpkg.git",
@@ -33477,7 +33476,7 @@ var handleCacheHitResponse = (resp, entry) => {
33477
33476
  };
33478
33477
 
33479
33478
  // ../../src/registry-client/src/registry-error.ts
33480
- import { STATUS_CODES } from "node:http";
33479
+ var statusText = (code) => process.getBuiltinModule("node:http").STATUS_CODES[code];
33481
33480
  var MAX_DETAIL_LENGTH = 512;
33482
33481
  var truncate = (s) => s.length <= MAX_DETAIL_LENGTH ? s : `${s.slice(0, MAX_DETAIL_LENGTH - 1)}\u2026`;
33483
33482
  var isHTML = (s) => /^\s*(<!doctype\s+html|<html\b)/i.test(s);
@@ -33501,7 +33500,7 @@ var detailFromJSON = (text) => {
33501
33500
  return void 0;
33502
33501
  };
33503
33502
  var registryErrorMessage = (response) => {
33504
- const statusMessage = STATUS_CODES[response.statusCode];
33503
+ const statusMessage = statusText(response.statusCode);
33505
33504
  const status = `${response.statusCode}${statusMessage ? ` ${statusMessage}` : ""}`;
33506
33505
  let text;
33507
33506
  try {
@@ -33894,7 +33893,7 @@ var RegistryClient = class {
33894
33893
  }
33895
33894
  } catch {
33896
33895
  }
33897
- const status = STATUS_CODES2[statusCode];
33896
+ const status = statusText(statusCode);
33898
33897
  throw error(
33899
33898
  `Failed to fetch paginated results: ${statusCode}${status ? ` ${status}` : ""}${typeof detail === "string" && detail ? `: ${detail}` : ""}`,
33900
33899
  { code: "EREQUEST", status: statusCode, url: String(url) }
@@ -34011,7 +34010,7 @@ var RegistryClient = class {
34011
34010
  }
34012
34011
  }
34013
34012
  const { statusCode } = response;
34014
- const status = STATUS_CODES2[statusCode];
34013
+ const status = statusText(statusCode);
34015
34014
  throw error(
34016
34015
  `Failed to perform web login: ${statusCode}${status ? ` ${status}` : ""}`,
34017
34016
  {
@@ -34118,7 +34117,7 @@ var RegistryClient = class {
34118
34117
  if (i2) paths.add(i2);
34119
34118
  } catch {
34120
34119
  }
34121
- paths.add(this.cache.path(key));
34120
+ if (!integrity) paths.add(this.cache.path(key));
34122
34121
  for (const path2 of paths) {
34123
34122
  let buf;
34124
34123
  try {
@@ -34261,7 +34260,7 @@ var RegistryClient = class {
34261
34260
  );
34262
34261
  if (!trustIntegrity && !result.fromCache) {
34263
34262
  result.deleteHeader("integrity");
34264
- if (result.isGzip) result.checkIntegrity({ url });
34263
+ if (result.statusCode === 200) result.checkIntegrity({ url });
34265
34264
  }
34266
34265
  if (verifyDigest && !integrity && !result.fromCache && result.statusCode === 200) {
34267
34266
  result.checkDigest(verifyDigest === "required", { url });
@@ -14,46 +14,46 @@ import {
14
14
  } from "./chunk-CLVRCGOZ.js";
15
15
  import {
16
16
  openUrl
17
- } from "./chunk-3CUFJPBK.js";
17
+ } from "./chunk-HCZOVC3Y.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-YFNQ6HZ3.js";
21
- import "./chunk-UNWQVOLY.js";
22
- import "./chunk-GUATFMMU.js";
20
+ } from "./chunk-2HXJ4ZSF.js";
21
+ import "./chunk-MJWUULO6.js";
22
+ import "./chunk-CU752KW7.js";
23
23
  import "./chunk-G2YT2GWF.js";
24
- import "./chunk-YTT3UHUB.js";
24
+ import "./chunk-33HBY5CF.js";
25
25
  import {
26
26
  PackageInfoClient
27
- } from "./chunk-5YB6UIC3.js";
27
+ } from "./chunk-SVMH3NDM.js";
28
28
  import "./chunk-ZWKI5OSF.js";
29
29
  import "./chunk-WGDTG44V.js";
30
- import "./chunk-O44Z6MAV.js";
30
+ import "./chunk-D2LEK7VS.js";
31
31
  import {
32
32
  Query,
33
33
  actual
34
- } from "./chunk-B2FK2HHL.js";
34
+ } from "./chunk-J2WL3A3C.js";
35
35
  import {
36
36
  SecurityArchive
37
- } from "./chunk-FOJCK57G.js";
37
+ } from "./chunk-JFHEXCG5.js";
38
38
  import {
39
39
  commandUsage
40
- } from "./chunk-55DYW2MP.js";
41
- import "./chunk-6G7MTZGS.js";
40
+ } from "./chunk-I6QGYSB4.js";
41
+ import "./chunk-P4LLYWCG.js";
42
42
  import "./chunk-4KCU2KZL.js";
43
- import "./chunk-SYGF27W7.js";
43
+ import "./chunk-J3R4XWB3.js";
44
44
  import {
45
45
  Spec
46
- } from "./chunk-G5NJ7CYI.js";
47
- import "./chunk-6A3XS52F.js";
46
+ } from "./chunk-V7EQZOO5.js";
47
+ import "./chunk-ENSGPOLR.js";
48
48
  import "./chunk-HTOTG4TS.js";
49
49
  import "./chunk-APMYKJI2.js";
50
- import "./chunk-UQUIO7LW.js";
51
- import "./chunk-JTUZP2OD.js";
50
+ import "./chunk-ZNUXDX6R.js";
51
+ import "./chunk-VBADA6QU.js";
52
52
  import "./chunk-U7TEQCBN.js";
53
53
  import "./chunk-XNLSTHDK.js";
54
- import "./chunk-BHJT53TP.js";
55
- import "./chunk-VE6CCH33.js";
56
- import "./chunk-G5BSQ6DP.js";
54
+ import "./chunk-PDWPFR5T.js";
55
+ import "./chunk-Y5PA7DVK.js";
56
+ import "./chunk-RH2Y7MPW.js";
57
57
  import {
58
58
  error
59
59
  } from "./chunk-WZWDS3W4.js";