@vltpkg/cli-js 1.0.7 → 1.0.8

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 (70) hide show
  1. package/{access-OKO4MXDT.js → access-FOYRQGJC.js} +1 -1
  2. package/{bugs-J56QQ3CP.js → bugs-ORVU4I5O.js} +19 -11
  3. package/{build-CQ2E2XRO.js → build-JLVAGEEU.js} +4 -4
  4. package/{cache-PPEXAQT7.js → cache-RIOSSQD3.js} +3 -3
  5. package/{chunk-CIKUT62L.js → chunk-3L2ERW54.js} +2 -2
  6. package/{chunk-RKXQ66T4.js → chunk-5CNTLC2U.js} +1 -1
  7. package/{chunk-SVO3HI2G.js → chunk-5QAFAGO5.js} +3 -3
  8. package/{chunk-3NGV7EC6.js → chunk-7D7SNVBV.js} +1177 -214
  9. package/{chunk-34VLICEH.js → chunk-ADLHAQRA.js} +5 -5
  10. package/{chunk-JWWDJYSU.js → chunk-AGHW2E24.js} +17 -14
  11. package/chunk-AQ3XJJUP.js +75 -0
  12. package/{chunk-ED2DDTQT.js → chunk-FG633ZKS.js} +31 -4
  13. package/{chunk-OUF2P2OD.js → chunk-JXVDCQZF.js} +14 -2
  14. package/{chunk-QWTGTFHN.js → chunk-MUG5K6X2.js} +1 -1
  15. package/{chunk-CHHGSDAP.js → chunk-NC3QYZPW.js} +3 -3
  16. package/chunk-OB73T23B.js +30 -0
  17. package/{chunk-SVBEF5PK.js → chunk-OWML62W5.js} +1 -1
  18. package/{chunk-JLKFIX2H.js → chunk-UYIA44HE.js} +4 -4
  19. package/{chunk-GVZRKITF.js → chunk-WY4PAM6D.js} +3 -3
  20. package/{chunk-A4EKZ32F.js → chunk-YCVPEZRM.js} +2 -2
  21. package/{chunk-3OPNZI6G.js → chunk-YOE3VZFX.js} +8 -7
  22. package/{chunk-ADYHZTEI.js → chunk-ZXIF4PVX.js} +13 -6
  23. package/{ci-WDQ4SQN6.js → ci-2666LKEC.js} +5 -5
  24. package/cli-package.json +1 -1
  25. package/{config-XY5CDGTD.js → config-3N7PBEXH.js} +4 -4
  26. package/{config-JMARDHLW.js → config-WMYY5J37.js} +4 -4
  27. package/{create-C24ZGR6S.js → create-AEQSO6KX.js} +9 -9
  28. package/{deprecate-HYHD5WQC.js → deprecate-MW76DAZ5.js} +4 -4
  29. package/{devtools-66MVSNF5.js → devtools-UEMPW5GG.js} +29 -29
  30. package/{dist-tag-RPQ5LZWM.js → dist-tag-XGQLYA6C.js} +1 -1
  31. package/{docs-UKQNAVM3.js → docs-7CCTL3OY.js} +19 -11
  32. package/{exec-FNZEVDGU.js → exec-GWCIDNOH.js} +9 -9
  33. package/{exec-cache-GRHS57DV.js → exec-cache-AML2HUTJ.js} +7 -7
  34. package/{exec-local-AHDW7CKQ.js → exec-local-JRTO2XG4.js} +7 -7
  35. package/{help-VDBXIWF3.js → help-4KSCV7GN.js} +1 -1
  36. package/{init-2ICZBLI2.js → init-OHVBHXB7.js} +5 -5
  37. package/{install-IFSVVRU5.js → install-TFDEHY5J.js} +6 -6
  38. package/{list-RCAPA3OE.js → list-UD4SDHVE.js} +16 -10
  39. package/{login-T42R75OV.js → login-B6TIQW62.js} +5 -5
  40. package/{logout-PVR6J2AK.js → logout-H3CXGLDN.js} +1 -1
  41. package/{pack-HPLDE4RB.js → pack-YYK4LKBQ.js} +6 -6
  42. package/package.json +1 -1
  43. package/{ping-N5U4XHUU.js → ping-G765RWLM.js} +1 -1
  44. package/{pkg-VNKZX5JC.js → pkg-D4S3SPUH.js} +6 -6
  45. package/{profile-N7UOXZ2X.js → profile-YDQGMWYP.js} +1 -1
  46. package/{publish-CRSF7NZP.js → publish-ANHSZPIM.js} +8 -8
  47. package/{query-MEAXXYOE.js → query-PZ6C6AZJ.js} +16 -10
  48. package/registry-client-package.json +1 -1
  49. package/registry-client-src-revalidate.js +17 -14
  50. package/{repo-IRTGGLIC.js → repo-ZA3TMERE.js} +19 -11
  51. package/{reporter-Y7RMSVN4.js → reporter-SDMDYYMJ.js} +72 -72
  52. package/{run-I6HWURSB.js → run-N4NK35UT.js} +7 -7
  53. package/{run-exec-BV3RUWQM.js → run-exec-N5FT4QO7.js} +7 -7
  54. package/security-archive-src-update-expired.js +6 -7
  55. package/{setup-U6DWTZBA.js → setup-MWWDSKQZ.js} +6 -6
  56. package/{src-44BBCHST.js → src-6PISL6QX.js} +1 -1
  57. package/{src-SXMLUOLI.js → src-6UF5YTTL.js} +9 -8
  58. package/{token-CTUMLTQP.js → token-FFUAFL43.js} +1 -1
  59. package/{uninstall-UUFXE47B.js → uninstall-A4PUG6RI.js} +14 -7
  60. package/{unpublish-G4NALOC6.js → unpublish-OJEGZDGQ.js} +1 -1
  61. package/{update-BGMQQNYE.js → update-ENR6ICMR.js} +5 -5
  62. package/{version-QVFPFL6M.js → version-K3BUGG7X.js} +5 -5
  63. package/{view-QFYMJVBE.js → view-SWVQLQCB.js} +4 -4
  64. package/vlr.js +1 -1
  65. package/vlrx.js +1 -1
  66. package/vlt.js +1 -1
  67. package/vlx.js +1 -1
  68. package/vlxl.js +1 -1
  69. package/{whoami-5D4XUOSP.js → whoami-MA733O2T.js} +1 -1
  70. package/chunk-NEFV2B5V.js +0 -75
@@ -11,17 +11,17 @@ 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-QWTGTFHN.js";
14
+ } from "./chunk-MUG5K6X2.js";
15
15
  import {
16
16
  createHostContextsMap
17
- } from "./chunk-CHHGSDAP.js";
17
+ } from "./chunk-NC3QYZPW.js";
18
18
  import "./chunk-ZWKI5OSF.js";
19
19
  import {
20
20
  prettyBytes
21
21
  } from "./chunk-XA47WS4N.js";
22
22
  import {
23
23
  stderr
24
- } from "./chunk-OUF2P2OD.js";
24
+ } from "./chunk-JXVDCQZF.js";
25
25
  import "./chunk-YAIKXFLN.js";
26
26
  import "./chunk-G2YT2GWF.js";
27
27
  import "./chunk-GDJ7JT2R.js";
@@ -33,12 +33,12 @@ import {
33
33
  Query,
34
34
  actual,
35
35
  run
36
- } from "./chunk-3NGV7EC6.js";
37
- import "./chunk-ED2DDTQT.js";
36
+ } from "./chunk-7D7SNVBV.js";
37
+ import "./chunk-FG633ZKS.js";
38
38
  import {
39
39
  minimatch
40
- } from "./chunk-SVBEF5PK.js";
41
- import "./chunk-3OPNZI6G.js";
40
+ } from "./chunk-OWML62W5.js";
41
+ import "./chunk-YOE3VZFX.js";
42
42
  import {
43
43
  commandUsage
44
44
  } from "./chunk-PTR5IGFQ.js";
@@ -50,7 +50,7 @@ import {
50
50
  RegistryClient,
51
51
  oidc,
52
52
  registryBase
53
- } from "./chunk-JWWDJYSU.js";
53
+ } from "./chunk-AGHW2E24.js";
54
54
  import "./chunk-HAYXR3MW.js";
55
55
  import "./chunk-E74WGW5C.js";
56
56
  import "./chunk-LPIBYUMT.js";
@@ -10,17 +10,19 @@ globalThis.clearInterval = _vlt_clearInterval;
10
10
  import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
- MermaidImageView
14
- } from "./chunk-ADYHZTEI.js";
13
+ MermaidImageView,
14
+ createGetAuthHeader
15
+ } from "./chunk-ZXIF4PVX.js";
15
16
  import {
16
17
  createDiffFilesProvider
17
18
  } from "./chunk-RIYFGX27.js";
19
+ import "./chunk-OB73T23B.js";
18
20
  import {
19
21
  createHostContextsMap
20
- } from "./chunk-CHHGSDAP.js";
22
+ } from "./chunk-NC3QYZPW.js";
21
23
  import {
22
24
  stdout
23
- } from "./chunk-OUF2P2OD.js";
25
+ } from "./chunk-JXVDCQZF.js";
24
26
  import "./chunk-YAIKXFLN.js";
25
27
  import "./chunk-G2YT2GWF.js";
26
28
  import "./chunk-GDJ7JT2R.js";
@@ -34,12 +36,12 @@ import {
34
36
  humanReadableOutput,
35
37
  jsonOutput,
36
38
  mermaidOutput
37
- } from "./chunk-3NGV7EC6.js";
39
+ } from "./chunk-7D7SNVBV.js";
38
40
  import {
39
41
  SecurityArchive
40
- } from "./chunk-ED2DDTQT.js";
41
- import "./chunk-SVBEF5PK.js";
42
- import "./chunk-3OPNZI6G.js";
42
+ } from "./chunk-FG633ZKS.js";
43
+ import "./chunk-OWML62W5.js";
44
+ import "./chunk-YOE3VZFX.js";
43
45
  import {
44
46
  commandUsage
45
47
  } from "./chunk-PTR5IGFQ.js";
@@ -47,6 +49,7 @@ import "./chunk-XKVU23NC.js";
47
49
  import "./chunk-XISRK3R5.js";
48
50
  import "./chunk-4KCU2KZL.js";
49
51
  import "./chunk-HTOTG4TS.js";
52
+ import "./chunk-AGHW2E24.js";
50
53
  import "./chunk-HAYXR3MW.js";
51
54
  import "./chunk-E74WGW5C.js";
52
55
  import "./chunk-LPIBYUMT.js";
@@ -180,6 +183,7 @@ var command = async (conf) => {
180
183
  const queryString = targetQueryString || positionalQueryString;
181
184
  const hostContexts = await createHostContextsMap(conf);
182
185
  const diffFiles = createDiffFilesProvider(conf.options.projectRoot);
186
+ const getAuthHeader = createGetAuthHeader(conf);
183
187
  const importers = /* @__PURE__ */ new Set();
184
188
  const scopeIDs = [];
185
189
  let scopeNodes;
@@ -193,7 +197,8 @@ var command = async (conf) => {
193
197
  importers: importers2,
194
198
  securityArchive,
195
199
  hostContexts,
196
- diffFiles
200
+ diffFiles,
201
+ getAuthHeader
197
202
  });
198
203
  const { nodes: resultNodes } = await scopeQuery.search(
199
204
  scopeQueryString,
@@ -254,7 +259,8 @@ var command = async (conf) => {
254
259
  importers: importers_,
255
260
  securityArchive,
256
261
  hostContexts,
257
- diffFiles
262
+ diffFiles,
263
+ getAuthHeader
258
264
  });
259
265
  const query = queryString || (graph ? defaultProjectQueryString : defaultLocalScopeQueryString);
260
266
  const {
@@ -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.7",
4
+ "version": "1.0.8",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -13220,13 +13220,13 @@ var require_mock_call_history = __commonJS({
13220
13220
  function makeFilterCalls(parameterName) {
13221
13221
  return (parameterValue, logs) => {
13222
13222
  if (typeof parameterValue === "string" || parameterValue == null) {
13223
- return logs.filter((log3) => {
13224
- return log3[parameterName] === parameterValue;
13223
+ return logs.filter((log4) => {
13224
+ return log4[parameterName] === parameterValue;
13225
13225
  });
13226
13226
  }
13227
13227
  if (parameterValue instanceof RegExp) {
13228
- return logs.filter((log3) => {
13229
- return parameterValue.test(log3[parameterName]);
13228
+ return logs.filter((log4) => {
13229
+ return parameterValue.test(log4[parameterName]);
13230
13230
  });
13231
13231
  }
13232
13232
  throw new InvalidArgumentError(`${parameterName} parameter should be one of string, regexp, undefined or null`);
@@ -13321,8 +13321,8 @@ var require_mock_call_history = __commonJS({
13321
13321
  return this.logs.filter(criteria);
13322
13322
  }
13323
13323
  if (criteria instanceof RegExp) {
13324
- return this.logs.filter((log3) => {
13325
- return criteria.test(log3.toString());
13324
+ return this.logs.filter((log4) => {
13325
+ return criteria.test(log4.toString());
13326
13326
  });
13327
13327
  }
13328
13328
  if (typeof criteria === "object" && criteria !== null) {
@@ -13372,13 +13372,13 @@ var require_mock_call_history = __commonJS({
13372
13372
  this.logs = [];
13373
13373
  }
13374
13374
  [kMockCallHistoryAddLog](requestInit) {
13375
- const log3 = new MockCallHistoryLog(requestInit);
13376
- this.logs.push(log3);
13377
- return log3;
13375
+ const log4 = new MockCallHistoryLog(requestInit);
13376
+ this.logs.push(log4);
13377
+ return log4;
13378
13378
  }
13379
13379
  *[Symbol.iterator]() {
13380
- for (const log3 of this.calls()) {
13381
- yield log3;
13380
+ for (const log4 of this.calls()) {
13381
+ yield log4;
13382
13382
  }
13383
13383
  }
13384
13384
  };
@@ -33405,7 +33405,8 @@ var otplease = async (client, options, response) => {
33405
33405
  const notice = String(npmNotice);
33406
33406
  const match = otpChallengeNotice.exec(notice);
33407
33407
  if (match?.[1]) {
33408
- await urlOpen(match[1]);
33408
+ await urlOpen(match[1]).catch(() => {
33409
+ });
33409
33410
  log2(notice);
33410
33411
  return {
33411
33412
  retry: {
@@ -33545,6 +33546,7 @@ var readBody = async (response, entry) => {
33545
33546
  var import_undici2 = __toESM(require_undici(), 1);
33546
33547
 
33547
33548
  // ../../src/registry-client/src/index.ts
33549
+ var log3 = (msg) => console.error(msg);
33548
33550
  var isCacheableMethod = (m2) => m2 === "GET" || m2 === "HEAD";
33549
33551
  var cacheKey = (method, url) => `${method !== "GET" ? method + " " : ""}${url}`;
33550
33552
  var { version } = loadPackageJson(
@@ -33717,8 +33719,9 @@ var RegistryClient = class {
33717
33719
  }),
33718
33720
  urlOpen(authUrl, { signal }).catch((er) => {
33719
33721
  if (asError(er).name === "AbortError") return;
33720
- ac.abort();
33721
- throw er;
33722
+ log3(
33723
+ `Could not open a browser. Please open ${authUrl} manually.`
33724
+ );
33722
33725
  })
33723
33726
  ]);
33724
33727
  return result;
@@ -12,22 +12,31 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  require_lib
14
14
  } from "./chunk-CLVRCGOZ.js";
15
+ import {
16
+ openUrl
17
+ } from "./chunk-OB73T23B.js";
15
18
  import {
16
19
  createHostContextsMap
17
- } from "./chunk-CHHGSDAP.js";
20
+ } from "./chunk-NC3QYZPW.js";
18
21
  import {
19
22
  PackageInfoClient
20
- } from "./chunk-A4EKZ32F.js";
23
+ } from "./chunk-YCVPEZRM.js";
21
24
  import "./chunk-ZWKI5OSF.js";
25
+ import "./chunk-JXVDCQZF.js";
26
+ import "./chunk-YAIKXFLN.js";
27
+ import "./chunk-G2YT2GWF.js";
28
+ import "./chunk-GDJ7JT2R.js";
29
+ import "./chunk-5JFRXIK2.js";
30
+ import "./chunk-WGDTG44V.js";
22
31
  import {
23
32
  Query,
24
33
  actual
25
- } from "./chunk-3NGV7EC6.js";
34
+ } from "./chunk-7D7SNVBV.js";
26
35
  import {
27
36
  SecurityArchive
28
- } from "./chunk-ED2DDTQT.js";
29
- import "./chunk-SVBEF5PK.js";
30
- import "./chunk-3OPNZI6G.js";
37
+ } from "./chunk-FG633ZKS.js";
38
+ import "./chunk-OWML62W5.js";
39
+ import "./chunk-YOE3VZFX.js";
31
40
  import {
32
41
  commandUsage
33
42
  } from "./chunk-PTR5IGFQ.js";
@@ -35,10 +44,9 @@ import {
35
44
  Spec
36
45
  } from "./chunk-XKVU23NC.js";
37
46
  import "./chunk-XISRK3R5.js";
47
+ import "./chunk-4KCU2KZL.js";
38
48
  import "./chunk-HTOTG4TS.js";
39
- import {
40
- urlOpen
41
- } from "./chunk-HAYXR3MW.js";
49
+ import "./chunk-HAYXR3MW.js";
42
50
  import "./chunk-E74WGW5C.js";
43
51
  import "./chunk-LPIBYUMT.js";
44
52
  import "./chunk-UBLFPJHV.js";
@@ -168,7 +176,7 @@ var command = async (conf) => {
168
176
  if (!result) {
169
177
  throw error("Unexpected empty result");
170
178
  }
171
- await urlOpen(result.url);
179
+ await openUrl(result.url);
172
180
  return result;
173
181
  }
174
182
  return results;
@@ -185,7 +193,7 @@ var command = async (conf) => {
185
193
  if (!name) {
186
194
  throw error("No package name found");
187
195
  }
188
- await urlOpen(url);
196
+ await openUrl(url);
189
197
  return { url, name };
190
198
  };
191
199
  export {