@vltpkg/cli-js 1.0.0-rc.29 → 1.0.0-rc.30

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 (64) hide show
  1. package/{access-6HRR4HXE.js → access-I7Q5S4HE.js} +1 -1
  2. package/{bugs-2CAZQ32S.js → bugs-XJDVOIWV.js} +4 -4
  3. package/{build-OAWTNBMS.js → build-KFMSG6YJ.js} +1 -1
  4. package/{cache-JTAFST6T.js → cache-RL4MUZZ4.js} +1 -1
  5. package/{chunk-K3RN3BGU.js → chunk-6SMCDBB5.js} +1 -1
  6. package/{chunk-CPM47YUH.js → chunk-AAO77QBG.js} +1 -1
  7. package/{chunk-ZINDEKAU.js → chunk-BCS77CZK.js} +72 -72
  8. package/{chunk-M7HPHM7B.js → chunk-CX6CSVSZ.js} +1 -1
  9. package/{chunk-HAGUS4HI.js → chunk-DPQWORL7.js} +1 -1
  10. package/{chunk-7RZL7BZI.js → chunk-E76YOTJF.js} +45 -9
  11. package/{chunk-VPKJNCKL.js → chunk-EGIFRSA7.js} +1 -1
  12. package/{chunk-CLDF5XLG.js → chunk-FXFN5J74.js} +2 -2
  13. package/chunk-HDWMQCAC.js +73 -0
  14. package/{chunk-WX2DCAG2.js → chunk-I626GJCR.js} +2 -2
  15. package/{chunk-VRIS5HAW.js → chunk-LUL76G2K.js} +2 -2
  16. package/chunk-QI6JZT5E.js +781 -0
  17. package/{chunk-3MWZTKGK.js → chunk-UUE6D7ZK.js} +52 -20
  18. package/{chunk-D2MVJDUA.js → chunk-YXHBZAYO.js} +1 -1
  19. package/{ci-TOJJVHI4.js → ci-25PDKMKT.js} +2 -2
  20. package/cli-package.json +5 -4
  21. package/{config-DVAPEE5D.js → config-EUN3UG63.js} +3 -3
  22. package/{config-GOV4E2KK.js → config-SGKD6FN7.js} +3 -3
  23. package/{create-NGJD7K4L.js → create-7MBL7X4J.js} +6 -6
  24. package/{deprecate-WROL4AHK.js → deprecate-RXSOKRB6.js} +2 -2
  25. package/{devtools-TPMVKPB5.js → devtools-6NFQDW4L.js} +29 -29
  26. package/{dist-tag-WZXXWXMB.js → dist-tag-TR6YTPWB.js} +1 -1
  27. package/{docs-YCOZFMZG.js → docs-SXJQN3VK.js} +4 -4
  28. package/{exec-URG5OWLH.js → exec-GZUI7N7U.js} +6 -6
  29. package/{exec-cache-KHDOEH2F.js → exec-cache-ERIWZB3O.js} +4 -4
  30. package/{exec-local-52TVUL5K.js → exec-local-5EIXJDU2.js} +3 -3
  31. package/{help-LNSDVBGJ.js → help-VZXBYP36.js} +1 -1
  32. package/{init-XNMWYATA.js → init-B3GRYNH5.js} +2 -2
  33. package/{install-SKUZERZJ.js → install-GFUAOCU3.js} +3 -3
  34. package/{list-XEDVFUD5.js → list-SWSGDOS2.js} +3 -3
  35. package/{login-52SA2DSI.js → login-2QU5SPGP.js} +1 -1
  36. package/{logout-5YYHNV5W.js → logout-DVW3KZKJ.js} +1 -1
  37. package/{pack-B7QZHMYP.js → pack-GNYL35NY.js} +3 -3
  38. package/package.json +1 -1
  39. package/{ping-PRGDYDRI.js → ping-5NKJAV3C.js} +1 -1
  40. package/{pkg-UEIQIVVD.js → pkg-XGXCIZCS.js} +3 -3
  41. package/{profile-46FKVQEL.js → profile-OZYH6GL2.js} +1 -1
  42. package/{publish-HBYHOSKH.js → publish-PUXCD3CT.js} +23 -14
  43. package/{query-5A4YLS2C.js → query-TUQMPQGD.js} +3 -3
  44. package/registry-client-package.json +1 -1
  45. package/registry-client-src-revalidate.js +46 -16
  46. package/{repo-I6X66PHD.js → repo-ALXGJFIG.js} +4 -4
  47. package/{reporter-NUXJTV4G.js → reporter-MSQWYN76.js} +1 -1
  48. package/{run-VEZMUMVH.js → run-GM2E5WHJ.js} +3 -3
  49. package/{run-exec-6ADY4BKH.js → run-exec-3AMM56A3.js} +3 -3
  50. package/{src-O32QL33R.js → src-QQVS7FWK.js} +4 -4
  51. package/{token-YK6L74PA.js → token-MW32RFPW.js} +73 -24
  52. package/{uninstall-UBUZBV7E.js → uninstall-QTAVWQNB.js} +3 -3
  53. package/{unpublish-ZHJEKT7A.js → unpublish-B5JROG62.js} +1 -1
  54. package/{update-WO4BHJF4.js → update-P274ATK3.js} +2 -2
  55. package/{version-RLESYHML.js → version-23AKGCGL.js} +2 -2
  56. package/{view-UA5HXFXG.js → view-Q35LCZGS.js} +2 -2
  57. package/vlr.js +1 -1
  58. package/vlrx.js +1 -1
  59. package/vlt.js +1 -1
  60. package/vlx.js +1 -1
  61. package/vlxl.js +1 -1
  62. package/{whoami-7H3FPR2O.js → whoami-XH64UEWS.js} +1 -1
  63. package/chunk-7WHVJ56C.js +0 -73
  64. package/chunk-BW6C3YUV.js +0 -301
@@ -12,16 +12,16 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  ExecCommand,
14
14
  views
15
- } from "./chunk-CLDF5XLG.js";
15
+ } from "./chunk-FXFN5J74.js";
16
16
  import "./chunk-RIYFGX27.js";
17
- import "./chunk-VRIS5HAW.js";
17
+ import "./chunk-LUL76G2K.js";
18
18
  import "./chunk-LPLXAVG7.js";
19
19
  import "./chunk-G2YT2GWF.js";
20
20
  import "./chunk-NLFBANVO.js";
21
21
  import {
22
22
  exec,
23
23
  execFG
24
- } from "./chunk-7RZL7BZI.js";
24
+ } from "./chunk-E76YOTJF.js";
25
25
  import "./chunk-MAIQR5GM.js";
26
26
  import "./chunk-VTEFO2FT.js";
27
27
  import "./chunk-RXNA2XCX.js";
@@ -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
  loadCommand
14
- } from "./chunk-7WHVJ56C.js";
14
+ } from "./chunk-HDWMQCAC.js";
15
15
  import {
16
16
  generateDefaultHelp,
17
17
  generateFullHelp
@@ -13,8 +13,8 @@ import {
13
13
  command,
14
14
  usage,
15
15
  views
16
- } from "./chunk-VPKJNCKL.js";
17
- import "./chunk-7RZL7BZI.js";
16
+ } from "./chunk-EGIFRSA7.js";
17
+ import "./chunk-E76YOTJF.js";
18
18
  import "./chunk-MAIQR5GM.js";
19
19
  import "./chunk-XYCCQT7N.js";
20
20
  import "./chunk-TYV4N3S3.js";
@@ -11,16 +11,16 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  parseAddArgs
14
- } from "./chunk-CPM47YUH.js";
14
+ } from "./chunk-AAO77QBG.js";
15
15
  import {
16
16
  InstallReporter
17
- } from "./chunk-ZINDEKAU.js";
17
+ } from "./chunk-BCS77CZK.js";
18
18
  import {
19
19
  trackInstall
20
20
  } from "./chunk-G2YT2GWF.js";
21
21
  import {
22
22
  install
23
- } from "./chunk-7RZL7BZI.js";
23
+ } from "./chunk-E76YOTJF.js";
24
24
  import "./chunk-MAIQR5GM.js";
25
25
  import "./chunk-VTEFO2FT.js";
26
26
  import "./chunk-RXNA2XCX.js";
@@ -11,10 +11,10 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  MermaidImageView
14
- } from "./chunk-K3RN3BGU.js";
14
+ } from "./chunk-6SMCDBB5.js";
15
15
  import {
16
16
  createHostContextsMap
17
- } from "./chunk-VRIS5HAW.js";
17
+ } from "./chunk-LUL76G2K.js";
18
18
  import "./chunk-LPLXAVG7.js";
19
19
  import "./chunk-G2YT2GWF.js";
20
20
  import "./chunk-NLFBANVO.js";
@@ -26,7 +26,7 @@ import {
26
26
  humanReadableOutput,
27
27
  jsonOutput,
28
28
  mermaidOutput
29
- } from "./chunk-7RZL7BZI.js";
29
+ } from "./chunk-E76YOTJF.js";
30
30
  import {
31
31
  SecurityArchive
32
32
  } from "./chunk-MAIQR5GM.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-FBTBHRPG.js";
15
15
  import {
16
16
  RegistryClient
17
- } from "./chunk-3MWZTKGK.js";
17
+ } from "./chunk-UUE6D7ZK.js";
18
18
  import "./chunk-YCQTLBWF.js";
19
19
  import "./chunk-R44FR7BY.js";
20
20
  import "./chunk-2V4AQPBR.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-FBTBHRPG.js";
15
15
  import {
16
16
  RegistryClient
17
- } from "./chunk-3MWZTKGK.js";
17
+ } from "./chunk-UUE6D7ZK.js";
18
18
  import "./chunk-YCQTLBWF.js";
19
19
  import "./chunk-R44FR7BY.js";
20
20
  import "./chunk-2V4AQPBR.js";
@@ -11,18 +11,18 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  packTarball
14
- } from "./chunk-BW6C3YUV.js";
14
+ } from "./chunk-QI6JZT5E.js";
15
15
  import {
16
16
  prettyBytes
17
17
  } from "./chunk-LRPTCGTW.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-VRIS5HAW.js";
20
+ } from "./chunk-LUL76G2K.js";
21
21
  import {
22
22
  Query,
23
23
  actual,
24
24
  run
25
- } from "./chunk-7RZL7BZI.js";
25
+ } from "./chunk-E76YOTJF.js";
26
26
  import "./chunk-MAIQR5GM.js";
27
27
  import "./chunk-HQ4US6G3.js";
28
28
  import {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/cli-js",
3
3
  "description": "The vlt CLI",
4
- "version": "1.0.0-rc.29",
4
+ "version": "1.0.0-rc.30",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-FBTBHRPG.js";
15
15
  import {
16
16
  RegistryClient
17
- } from "./chunk-3MWZTKGK.js";
17
+ } from "./chunk-UUE6D7ZK.js";
18
18
  import "./chunk-YCQTLBWF.js";
19
19
  import "./chunk-R44FR7BY.js";
20
20
  import "./chunk-2V4AQPBR.js";
@@ -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
  views
14
- } from "./chunk-VPKJNCKL.js";
14
+ } from "./chunk-EGIFRSA7.js";
15
15
  import {
16
16
  del,
17
17
  get,
@@ -19,14 +19,14 @@ import {
19
19
  } from "./chunk-DBANBIL2.js";
20
20
  import {
21
21
  createHostContextsMap
22
- } from "./chunk-VRIS5HAW.js";
22
+ } from "./chunk-LUL76G2K.js";
23
23
  import {
24
24
  GraphModifier,
25
25
  Query,
26
26
  VIRTUAL_ROOT_ID,
27
27
  actual,
28
28
  init
29
- } from "./chunk-7RZL7BZI.js";
29
+ } from "./chunk-E76YOTJF.js";
30
30
  import {
31
31
  SecurityArchive
32
32
  } from "./chunk-MAIQR5GM.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-FBTBHRPG.js";
15
15
  import {
16
16
  RegistryClient
17
- } from "./chunk-3MWZTKGK.js";
17
+ } from "./chunk-UUE6D7ZK.js";
18
18
  import "./chunk-YCQTLBWF.js";
19
19
  import "./chunk-R44FR7BY.js";
20
20
  import "./chunk-2V4AQPBR.js";
@@ -11,18 +11,18 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  packTarball
14
- } from "./chunk-BW6C3YUV.js";
14
+ } from "./chunk-QI6JZT5E.js";
15
15
  import {
16
16
  prettyBytes
17
17
  } from "./chunk-LRPTCGTW.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-VRIS5HAW.js";
20
+ } from "./chunk-LUL76G2K.js";
21
21
  import {
22
22
  Query,
23
23
  actual,
24
24
  run
25
- } from "./chunk-7RZL7BZI.js";
25
+ } from "./chunk-E76YOTJF.js";
26
26
  import "./chunk-MAIQR5GM.js";
27
27
  import "./chunk-HQ4US6G3.js";
28
28
  import {
@@ -36,8 +36,9 @@ import {
36
36
  } from "./chunk-FBTBHRPG.js";
37
37
  import {
38
38
  RegistryClient,
39
- oidc
40
- } from "./chunk-3MWZTKGK.js";
39
+ oidc,
40
+ registryBase
41
+ } from "./chunk-UUE6D7ZK.js";
41
42
  import "./chunk-YCQTLBWF.js";
42
43
  import "./chunk-R44FR7BY.js";
43
44
  import "./chunk-2V4AQPBR.js";
@@ -185,6 +186,13 @@ var command = async (conf) => {
185
186
  }
186
187
  return results;
187
188
  };
189
+ var getPublishConfig = (manifest) => {
190
+ const pc = manifest.publishConfig;
191
+ if (pc && typeof pc === "object") {
192
+ return pc;
193
+ }
194
+ return void 0;
195
+ };
188
196
  var commandSingle = async (location, conf) => {
189
197
  const manifestPath = conf.options.packageJson.find(location);
190
198
  assert(manifestPath, "No package.json found");
@@ -194,14 +202,12 @@ var commandSingle = async (location, conf) => {
194
202
  !manifest.private,
195
203
  error("Package has been marked as private")
196
204
  );
197
- const {
198
- tag,
199
- access,
200
- registry,
201
- "dry-run": dry = false,
202
- otp
203
- } = conf.options;
204
- const registryUrl = new URL(registry);
205
+ const { "dry-run": dry = false, otp } = conf.options;
206
+ const publishConfig = getPublishConfig(manifest);
207
+ const tag = publishConfig?.tag ?? conf.options.tag;
208
+ const access = publishConfig?.access ?? conf.options.access;
209
+ const registry = publishConfig?.registry ?? conf.options.registry;
210
+ const registryUrl = new URL(registryBase(registry));
205
211
  const runOptions = {
206
212
  cwd: manifestDir,
207
213
  projectRoot: conf.projectRoot,
@@ -307,7 +313,10 @@ var commandSingle = async (location, conf) => {
307
313
  }
308
314
  if (response.statusCode !== 200 && response.statusCode !== 201) {
309
315
  let extraMsg = "";
310
- if (response.statusCode === 404) {
316
+ if (response.statusCode === 409) {
317
+ extraMsg = `.
318
+ \u26A0\uFE0F ${name}@${version} already exists in the registry. Bump the version and try again.`;
319
+ } else if (response.statusCode === 404) {
311
320
  extraMsg = ".\n\u26A0\uFE0F Make sure you're logged in and have access to publish the package.";
312
321
  }
313
322
  throw error(`Failed to publish package${extraMsg}`, {
@@ -11,13 +11,13 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  MermaidImageView
14
- } from "./chunk-K3RN3BGU.js";
14
+ } from "./chunk-6SMCDBB5.js";
15
15
  import {
16
16
  createDiffFilesProvider
17
17
  } from "./chunk-RIYFGX27.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-VRIS5HAW.js";
20
+ } from "./chunk-LUL76G2K.js";
21
21
  import "./chunk-LPLXAVG7.js";
22
22
  import "./chunk-G2YT2GWF.js";
23
23
  import "./chunk-NLFBANVO.js";
@@ -29,7 +29,7 @@ import {
29
29
  humanReadableOutput,
30
30
  jsonOutput,
31
31
  mermaidOutput
32
- } from "./chunk-7RZL7BZI.js";
32
+ } from "./chunk-E76YOTJF.js";
33
33
  import {
34
34
  SecurityArchive
35
35
  } from "./chunk-MAIQR5GM.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/registry-client",
3
3
  "description": "Fetch package artifacts and metadata from registries",
4
- "version": "1.0.0-rc.29",
4
+ "version": "1.0.0-rc.30",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -30298,6 +30298,7 @@ var normalizeRegistryKey = (url) => {
30298
30298
  const u4 = new URL(url);
30299
30299
  return (u4.origin + u4.pathname).replace(/\/+$/, "");
30300
30300
  };
30301
+ var registryBase = (url) => url.endsWith("/") ? url : url + "/";
30301
30302
  var keychains = /* @__PURE__ */ new Map();
30302
30303
  var runtimeTokens = /* @__PURE__ */ new Map();
30303
30304
  var getKC = (identity) => {
@@ -30316,7 +30317,9 @@ var deleteToken = async (registry, identity) => {
30316
30317
  };
30317
30318
  var setToken = async (registry, token, identity) => {
30318
30319
  const kc = getKC(identity);
30319
- return kc.set(normalizeRegistryKey(registry), token);
30320
+ await kc.load();
30321
+ kc.set(normalizeRegistryKey(registry), token);
30322
+ await kc.save();
30320
30323
  };
30321
30324
  var getToken = async (registry, identity) => {
30322
30325
  const kc = getKC(identity);
@@ -30951,8 +30954,10 @@ var otplease = async (client, options, response) => {
30951
30954
  );
30952
30955
  if (challenge) {
30953
30956
  return {
30954
- ...options,
30955
- otp: (await client.webAuthOpener(challenge)).token
30957
+ retry: {
30958
+ ...options,
30959
+ otp: (await client.webAuthOpener(challenge)).token
30960
+ }
30956
30961
  };
30957
30962
  }
30958
30963
  const { "npm-notice": npmNotice } = response.headers;
@@ -30963,8 +30968,10 @@ var otplease = async (client, options, response) => {
30963
30968
  await urlOpen(match[1]);
30964
30969
  log2(notice);
30965
30970
  return {
30966
- ...options,
30967
- otp: await question("OTP: ")
30971
+ retry: {
30972
+ ...options,
30973
+ otp: await question("OTP: ")
30974
+ }
30968
30975
  };
30969
30976
  }
30970
30977
  }
@@ -30972,16 +30979,25 @@ var otplease = async (client, options, response) => {
30972
30979
  response
30973
30980
  });
30974
30981
  }
30982
+ if (wwwAuth.has("bearer")) {
30983
+ throw error(
30984
+ "Missing or invalid authentication token. Run `vlt login` or `vlt token add` to authenticate.",
30985
+ { response }
30986
+ );
30987
+ }
30975
30988
  if (wwwAuth.size) {
30976
30989
  throw error("Unknown authentication challenge", { response });
30977
30990
  }
30978
30991
  const text = await response.body.text().catch(() => "");
30979
30992
  if (text.toLowerCase().includes("one-time pass")) {
30980
30993
  return {
30981
- ...options,
30982
- otp: await question(text)
30994
+ retry: {
30995
+ ...options,
30996
+ otp: await question(text)
30997
+ }
30983
30998
  };
30984
30999
  }
31000
+ return { bodyConsumed: text };
30985
31001
  };
30986
31002
 
30987
31003
  // ../../src/registry-client/src/redirect.ts
@@ -31148,14 +31164,15 @@ var RegistryClient = class {
31148
31164
  const tok = await getToken(registry, this.identity);
31149
31165
  if (!tok) return;
31150
31166
  const s = tok.replace(/^(Bearer|Basic) /i, "");
31151
- const tokensUrl = new URL("-/npm/v1/tokens", registry);
31167
+ const base = registryBase(registry);
31168
+ const tokensUrl = new URL("-/npm/v1/tokens", base);
31152
31169
  const record = await this.seek(tokensUrl, ({ token }) => s.startsWith(token), {
31153
31170
  useCache: false
31154
31171
  }).catch(() => void 0);
31155
31172
  if (record) {
31156
31173
  const { key } = record;
31157
31174
  await this.request(
31158
- new URL(`-/npm/v1/tokens/token/${key}`, registry),
31175
+ new URL(`-/npm/v1/tokens/token/${key}`, base),
31159
31176
  { useCache: false, method: "DELETE" }
31160
31177
  );
31161
31178
  }
@@ -31168,7 +31185,7 @@ var RegistryClient = class {
31168
31185
  * and returns void if it worked. Otherwise, error is raised.
31169
31186
  */
31170
31187
  async login(registry) {
31171
- const webLoginURL = new URL("-/v1/login", registry);
31188
+ const webLoginURL = new URL("-/v1/login", registryBase(registry));
31172
31189
  const response = await this.request(webLoginURL, {
31173
31190
  method: "POST",
31174
31191
  useCache: false,
@@ -31337,9 +31354,15 @@ var RegistryClient = class {
31337
31354
  }
31338
31355
  async #handleResponse(url, options, response, entry) {
31339
31356
  if (handleCacheHitResponse(response, entry)) return entry;
31357
+ let consumedBody;
31340
31358
  if (response.statusCode === 401) {
31341
- const repeatRequest = await otplease(this, options, response);
31342
- if (repeatRequest) return await this.request(url, repeatRequest);
31359
+ const otpResult = await otplease(this, options, response);
31360
+ if (otpResult && "retry" in otpResult) {
31361
+ return await this.request(url, otpResult.retry);
31362
+ }
31363
+ if (otpResult && "bodyConsumed" in otpResult) {
31364
+ consumedBody = otpResult.bodyConsumed;
31365
+ }
31343
31366
  }
31344
31367
  const h = [];
31345
31368
  for (const [key, value] of Object.entries(response.headers)) {
@@ -31353,6 +31376,10 @@ var RegistryClient = class {
31353
31376
  }
31354
31377
  }
31355
31378
  const { integrity, trustIntegrity } = options;
31379
+ const contentLength = consumedBody !== void 0 ? consumedBody.length : response.headers["content-length"] ? Number(response.headers["content-length"]) : (
31380
+ /* c8 ignore next */
31381
+ void 0
31382
+ );
31356
31383
  const result = new CacheEntry(
31357
31384
  /* c8 ignore next - should always have a status code */
31358
31385
  response.statusCode || 200,
@@ -31361,10 +31388,7 @@ var RegistryClient = class {
31361
31388
  integrity,
31362
31389
  trustIntegrity,
31363
31390
  "stale-while-revalidate-factor": this.staleWhileRevalidateFactor,
31364
- contentLength: response.headers["content-length"] ? Number(response.headers["content-length"]) : (
31365
- /* c8 ignore next */
31366
- void 0
31367
- )
31391
+ contentLength
31368
31392
  }
31369
31393
  );
31370
31394
  if (isRedirect(result)) {
@@ -31375,6 +31399,12 @@ var RegistryClient = class {
31375
31399
  }
31376
31400
  return result;
31377
31401
  }
31402
+ if (consumedBody !== void 0) {
31403
+ if (consumedBody.length > 0) {
31404
+ result.addBody(new TextEncoder().encode(consumedBody));
31405
+ }
31406
+ return result;
31407
+ }
31378
31408
  response.body.on(
31379
31409
  "data",
31380
31410
  (chunk) => result.addBody(chunk)
@@ -14,17 +14,17 @@ import {
14
14
  } from "./chunk-FXDRM4ZO.js";
15
15
  import {
16
16
  createHostContextsMap
17
- } from "./chunk-VRIS5HAW.js";
17
+ } from "./chunk-LUL76G2K.js";
18
18
  import {
19
19
  Query,
20
20
  actual
21
- } from "./chunk-7RZL7BZI.js";
21
+ } from "./chunk-E76YOTJF.js";
22
22
  import {
23
23
  SecurityArchive
24
24
  } from "./chunk-MAIQR5GM.js";
25
25
  import {
26
26
  PackageInfoClient
27
- } from "./chunk-HAGUS4HI.js";
27
+ } from "./chunk-DPQWORL7.js";
28
28
  import "./chunk-HQ4US6G3.js";
29
29
  import "./chunk-XYCCQT7N.js";
30
30
  import "./chunk-TYV4N3S3.js";
@@ -35,7 +35,7 @@ import "./chunk-HTOTG4TS.js";
35
35
  import {
36
36
  commandUsage
37
37
  } from "./chunk-FBTBHRPG.js";
38
- import "./chunk-3MWZTKGK.js";
38
+ import "./chunk-UUE6D7ZK.js";
39
39
  import {
40
40
  urlOpen
41
41
  } from "./chunk-YCQTLBWF.js";
@@ -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
  InstallReporter
14
- } from "./chunk-ZINDEKAU.js";
14
+ } from "./chunk-BCS77CZK.js";
15
15
  import "./chunk-VTEFO2FT.js";
16
16
  import "./chunk-RXNA2XCX.js";
17
17
  import "./chunk-WGDTG44V.js";
@@ -12,16 +12,16 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  ExecCommand,
14
14
  views
15
- } from "./chunk-CLDF5XLG.js";
15
+ } from "./chunk-FXFN5J74.js";
16
16
  import "./chunk-RIYFGX27.js";
17
- import "./chunk-VRIS5HAW.js";
17
+ import "./chunk-LUL76G2K.js";
18
18
  import "./chunk-LPLXAVG7.js";
19
19
  import "./chunk-G2YT2GWF.js";
20
20
  import "./chunk-NLFBANVO.js";
21
21
  import {
22
22
  run,
23
23
  runFG
24
- } from "./chunk-7RZL7BZI.js";
24
+ } from "./chunk-E76YOTJF.js";
25
25
  import "./chunk-MAIQR5GM.js";
26
26
  import "./chunk-VTEFO2FT.js";
27
27
  import "./chunk-RXNA2XCX.js";
@@ -12,16 +12,16 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  ExecCommand,
14
14
  views
15
- } from "./chunk-CLDF5XLG.js";
15
+ } from "./chunk-FXFN5J74.js";
16
16
  import "./chunk-RIYFGX27.js";
17
- import "./chunk-VRIS5HAW.js";
17
+ import "./chunk-LUL76G2K.js";
18
18
  import "./chunk-LPLXAVG7.js";
19
19
  import "./chunk-G2YT2GWF.js";
20
20
  import "./chunk-NLFBANVO.js";
21
21
  import {
22
22
  runExec,
23
23
  runExecFG
24
- } from "./chunk-7RZL7BZI.js";
24
+ } from "./chunk-E76YOTJF.js";
25
25
  import "./chunk-MAIQR5GM.js";
26
26
  import "./chunk-VTEFO2FT.js";
27
27
  import "./chunk-RXNA2XCX.js";
@@ -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
  loadCommand
14
- } from "./chunk-7WHVJ56C.js";
14
+ } from "./chunk-HDWMQCAC.js";
15
15
  import {
16
16
  indent,
17
17
  outputCommand,
@@ -27,14 +27,14 @@ import {
27
27
  } from "./chunk-IYO5QKUW.js";
28
28
  import {
29
29
  Config
30
- } from "./chunk-M7HPHM7B.js";
31
- import "./chunk-HAGUS4HI.js";
30
+ } from "./chunk-CX6CSVSZ.js";
31
+ import "./chunk-DPQWORL7.js";
32
32
  import "./chunk-HQ4US6G3.js";
33
33
  import "./chunk-XYCCQT7N.js";
34
34
  import "./chunk-TYV4N3S3.js";
35
35
  import "./chunk-IEISSXS4.js";
36
36
  import "./chunk-HTOTG4TS.js";
37
- import "./chunk-3MWZTKGK.js";
37
+ import "./chunk-UUE6D7ZK.js";
38
38
  import "./chunk-YCQTLBWF.js";
39
39
  import "./chunk-R44FR7BY.js";
40
40
  import {