@vltpkg/cli-js 1.3.6 → 1.3.7

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 (84) hide show
  1. package/{access-SFEGWG3Y.js → access-4W6PMOGC.js} +8 -8
  2. package/{bugs-X2JHO4WZ.js → bugs-FJHQFPZF.js} +17 -17
  3. package/{build-BK4ITRPX.js → build-SPWU3NOH.js} +9 -9
  4. package/{cache-JRW72UJE.js → cache-SBNEPOMQ.js} +13 -13
  5. package/{chunk-FOSDT7YU.js → chunk-2M2O6A4R.js} +4 -4
  6. package/{chunk-VI7V6OCC.js → chunk-3D3IB4YN.js} +7 -7
  7. package/chunk-3U6QWN62.js +45 -0
  8. package/{chunk-JELA46YR.js → chunk-5ZCDGBVU.js} +1 -1
  9. package/{chunk-PBBULTAG.js → chunk-6D54UN4T.js} +1 -1
  10. package/{chunk-WGSYVB4F.js → chunk-7BHHCB5C.js} +13 -7
  11. package/{chunk-J4NHRZX6.js → chunk-A2TSRXZD.js} +1 -1
  12. package/chunk-A6FAI65V.js +76 -0
  13. package/{chunk-GDYDW277.js → chunk-CB65DPZ2.js} +195 -195
  14. package/{chunk-O2B5SLP7.js → chunk-EL4GVZK5.js} +2 -2
  15. package/chunk-F5D3DVC5.js +21 -0
  16. package/{chunk-WS7BNE5S.js → chunk-FKZ5I53D.js} +3 -3
  17. package/{chunk-64VFL4WI.js → chunk-GZ5MYMBT.js} +1 -1
  18. package/{chunk-X2WYIUFQ.js → chunk-H77JYU7F.js} +1 -1
  19. package/{chunk-HD6TAM7A.js → chunk-I7SCSGUO.js} +5 -5
  20. package/{chunk-BP3PQ67D.js → chunk-IBGFQR23.js} +16 -0
  21. package/{chunk-CRGWLUGC.js → chunk-IHXJVKAE.js} +1 -1
  22. package/{chunk-BCANUHR3.js → chunk-KMOOTBHM.js} +5 -1
  23. package/{chunk-LFCZGP2L.js → chunk-KOFQTETH.js} +3 -10
  24. package/{chunk-2XDF3JBH.js → chunk-L3K2ZAOO.js} +6 -6
  25. package/{chunk-AFUXQ3P4.js → chunk-OWMR2EDW.js} +1 -1
  26. package/{chunk-2XD7RUKI.js → chunk-OWUICQFY.js} +3 -3
  27. package/{chunk-F6ZN6TTL.js → chunk-QVPNKMUU.js} +3 -3
  28. package/{chunk-IXAHSTBN.js → chunk-QYS5MGGM.js} +5 -5
  29. package/{chunk-XU5WNX4S.js → chunk-SE2FSMBR.js} +1 -0
  30. package/{chunk-2XFFMF6G.js → chunk-SPWJ3X5Y.js} +4 -4
  31. package/{chunk-JIQBZ2UT.js → chunk-SV4WK3KX.js} +2 -2
  32. package/{chunk-LHIDMYN2.js → chunk-TLY4VGMH.js} +1 -1
  33. package/{chunk-TY2UJ3SA.js → chunk-VBDNOU76.js} +1 -1
  34. package/{chunk-RAE3LNUK.js → chunk-W2ZO5RZL.js} +3 -3
  35. package/{chunk-TOKUDCSW.js → chunk-XDSZO74H.js} +6 -6
  36. package/{ci-6GQ3GMJK.js → ci-76TAJGF5.js} +10 -10
  37. package/cli-package.json +3 -1
  38. package/{config-6VRNS5F3.js → config-3UQXAYAA.js} +8 -8
  39. package/{config-5VN6JXGK.js → config-AFIHF54I.js} +10 -10
  40. package/{create-K7ROUCVJ.js → create-5ADQTH6K.js} +18 -18
  41. package/{deprecate-WRSZJ2WG.js → deprecate-RTQVLJDZ.js} +11 -11
  42. package/{dist-tag-NSTCFNON.js → dist-tag-V4DRDHWA.js} +8 -8
  43. package/{docs-E2PATRJS.js → docs-RRULRTKQ.js} +17 -17
  44. package/{exec-SV4RXF2E.js → exec-NXQUCX3I.js} +18 -18
  45. package/{exec-cache-K4LBRSRD.js → exec-cache-KVZJHFZD.js} +16 -16
  46. package/{exec-local-RT27P325.js → exec-local-53B5IRKG.js} +15 -15
  47. package/{help-XXKA42B7.js → help-EN4XUTMS.js} +4 -4
  48. package/{init-IYCFQJPW.js → init-4L6CQMIL.js} +10 -10
  49. package/{install-RRCUQ34D.js → install-MHWLYW3X.js} +16 -16
  50. package/{list-WFYB66G7.js → list-XZRF7TBW.js} +21 -19
  51. package/{login-K6HTWO4J.js → login-6GRRY4H7.js} +12 -12
  52. package/{logout-F6EI7WST.js → logout-KI2AOYRT.js} +8 -8
  53. package/outdated-TWUPFRCD.js +531 -0
  54. package/{pack-FX24JZR4.js → pack-2ZQLDYFD.js} +11 -11
  55. package/package.json +1 -1
  56. package/{ping-6QRL622S.js → ping-ZOTGLOKY.js} +8 -8
  57. package/{pkg-FPWX4VUE.js → pkg-HRNOTFXB.js} +11 -11
  58. package/{profile-WAI5BGPU.js → profile-5V3FFDMG.js} +8 -8
  59. package/{publish-GI7T7TE2.js → publish-7ZXEMWTW.js} +17 -17
  60. package/{query-GC2DGBWT.js → query-62UDNMGR.js} +21 -19
  61. package/{registry-PY2L5ZWC.js → registry-MQJJCWJY.js} +5 -5
  62. package/registry-client-src-revalidate.js +1 -1
  63. package/{repo-CFXNFSY7.js → repo-HDUGP5PH.js} +17 -17
  64. package/{reporter-5QKWEQNH.js → reporter-TGBPLNR5.js} +10 -10
  65. package/{run-VFHTHV5N.js → run-6NRDZD4T.js} +15 -15
  66. package/{run-exec-OJEIP3WL.js → run-exec-I4IIXTLW.js} +15 -15
  67. package/security-archive-src-update-expired.js +1 -1
  68. package/{setup-CCM2QAVA.js → setup-UVXEFUUJ.js} +15 -15
  69. package/{src-LLE3Q5NY.js → src-6CJEMSVB.js} +4 -4
  70. package/{src-3MEJQYBG.js → src-GP7VLT7P.js} +2 -2
  71. package/{src-54SW7RQE.js → src-QEJ6WZQ7.js} +14 -14
  72. package/{token-P5N54F4D.js → token-WTN27E7A.js} +8 -8
  73. package/{uninstall-QJA3X4GY.js → uninstall-ZJOKXIVQ.js} +12 -12
  74. package/{unpublish-IAB6LNVC.js → unpublish-LMUGR7GI.js} +8 -8
  75. package/{update-VZEF6QRY.js → update-WVWMRUYY.js} +15 -15
  76. package/{version-A6FPEDV5.js → version-OJTRHNKV.js} +10 -10
  77. package/{view-SA6QU2NW.js → view-6Q5B7ZYN.js} +14 -38
  78. package/vlr.js +1 -1
  79. package/vlrx.js +1 -1
  80. package/vlt.js +1 -1
  81. package/vlx.js +1 -1
  82. package/vlxl.js +1 -1
  83. package/{whoami-YDNKCWU7.js → whoami-SPF34TV6.js} +8 -8
  84. package/chunk-MXRSLXAC.js +0 -75
@@ -13,10 +13,10 @@ import {
13
13
  graphRun,
14
14
  graphRunSync,
15
15
  joinDepIDTuple
16
- } from "./chunk-JIQBZ2UT.js";
16
+ } from "./chunk-SV4WK3KX.js";
17
17
  import {
18
18
  Spec
19
- } from "./chunk-64VFL4WI.js";
19
+ } from "./chunk-GZ5MYMBT.js";
20
20
  import {
21
21
  load,
22
22
  parse as parse2,
@@ -43,7 +43,7 @@ import {
43
43
  parse,
44
44
  parseRange,
45
45
  satisfies
46
- } from "./chunk-BP3PQ67D.js";
46
+ } from "./chunk-IBGFQR23.js";
47
47
  import {
48
48
  error
49
49
  } from "./chunk-WZWDS3W4.js";
@@ -363,198 +363,6 @@ var require_promise_retry = __commonJS({
363
363
  }
364
364
  });
365
365
 
366
- // ../../src/git/src/spawn.ts
367
- var import_promise_retry = __toESM(require_promise_retry(), 1);
368
-
369
- // ../../src/git/src/make-error.ts
370
- var connectionErrorRe = new RegExp(
371
- [
372
- "remote error: Internal Server Error",
373
- "The remote end hung up unexpectedly",
374
- "Connection timed out",
375
- "Operation timed out",
376
- "Failed to connect to .* Timed out",
377
- "Connection reset by peer",
378
- "SSL_ERROR_SYSCALL",
379
- "The requested URL returned error: 503"
380
- ].join("|")
381
- );
382
- var missingPathspecRe = /pathspec .* did not match any file\(s\) known to git/;
383
- var makeError = (result) => connectionErrorRe.test(result.stderr) ? [
384
- (n) => n < 3,
385
- error("A git connection error occurred", result)
386
- ] : missingPathspecRe.test(result.stderr) ? [null, error("The git reference could not be found", result)] : [null, error("An unknown git error occurred", result)];
387
-
388
- // ../../src/git/src/opts.ts
389
- var gitEnv = {
390
- GIT_ASKPASS: "echo",
391
- GIT_SSH_COMMAND: "ssh -oStrictHostKeyChecking=accept-new"
392
- };
393
- var opts = (opts2 = {}) => ({
394
- acceptFail: true,
395
- ...opts2,
396
- env: opts2.env ?? { ...gitEnv, ...process.env },
397
- stdio: "pipe",
398
- stdioString: true,
399
- shell: false
400
- });
401
-
402
- // ../../src/git/src/which.ts
403
- var gitPath = void 0;
404
- var which = (opts2 = {}) => {
405
- if (opts2.git) {
406
- return opts2.git;
407
- }
408
- let whichError = void 0;
409
- if (opts2.git !== false) {
410
- if (!gitPath) {
411
- try {
412
- gitPath = whichSync("git");
413
- } catch (er) {
414
- whichError = er;
415
- }
416
- }
417
- }
418
- if (!gitPath || opts2.git === false) {
419
- return error(
420
- "No git binary found in $PATH",
421
- {
422
- code: "ENOGIT",
423
- cause: whichError
424
- },
425
- which
426
- );
427
- }
428
- return gitPath;
429
- };
430
-
431
- // ../../src/git/src/spawn.ts
432
- var spawn = async (gitArgs, opts2 = {}) => {
433
- const gitPath2 = which(opts2);
434
- if (gitPath2 instanceof Error) {
435
- throw gitPath2;
436
- }
437
- const args = opts2.allowReplace || gitArgs[0] === "--no-replace-objects" ? gitArgs : ["--no-replace-objects", ...gitArgs];
438
- const retryOpts = {
439
- retries: opts2["fetch-retries"] || 3,
440
- factor: opts2["fetch-retry-factor"] || 2,
441
- maxTimeout: opts2["fetch-retry-maxtimeout"] || 6e4,
442
- minTimeout: opts2["fetch-retry-mintimeout"] || 1e3
443
- };
444
- return (0, import_promise_retry.default)(async (retryFn, num) => {
445
- const result = await promiseSpawn(gitPath2, args, opts(opts2));
446
- if (result.status || result.signal) {
447
- const [shouldRetry, gitError] = makeError(result);
448
- if (!shouldRetry?.(num)) {
449
- throw gitError;
450
- }
451
- retryFn(gitError);
452
- }
453
- return result;
454
- }, retryOpts);
455
- };
456
-
457
- // ../../src/git/src/is.ts
458
- import { stat } from "node:fs/promises";
459
- var is = ({ cwd = process.cwd() } = {}) => stat(cwd + "/.git").then(
460
- () => true,
461
- () => false
462
- );
463
-
464
- // ../../src/git/src/is-clean.ts
465
- var isClean = async (opts2 = {}) => {
466
- const result = await spawn(
467
- ["status", "--porcelain=v1", "-uno"],
468
- opts2
469
- );
470
- if (result.status || result.signal) {
471
- throw error("git isClean check failed", result);
472
- }
473
- for (const line of result.stdout.split(/\r?\n+/)) {
474
- if (line.trim()) return false;
475
- }
476
- return true;
477
- };
478
-
479
- // ../../src/git-scp-url/src/index.ts
480
- var knownProtocols = /* @__PURE__ */ new Set([
481
- "http:",
482
- "https:",
483
- "git:",
484
- "git+ssh:",
485
- "git+https:",
486
- "ssh:"
487
- ]);
488
- var memo = /* @__PURE__ */ new Map();
489
- var correctProtocol = (arg) => {
490
- const firstColon = arg.indexOf(":");
491
- const proto = arg.slice(0, firstColon + 1);
492
- const doubleSlash = arg.indexOf("//");
493
- if (knownProtocols.has(proto)) {
494
- if (doubleSlash === firstColon + 1) {
495
- return arg;
496
- }
497
- return proto + "//" + arg.slice(firstColon + 1);
498
- }
499
- const firstAt = arg.indexOf("@");
500
- if (firstAt > -1) {
501
- if (firstAt > firstColon) {
502
- return `git+ssh://${arg}`;
503
- } else {
504
- return arg;
505
- }
506
- }
507
- return proto + "//" + arg.slice(firstColon + 1);
508
- };
509
- var correctUrl = (url) => {
510
- const firstAt = url.indexOf("@");
511
- const lastHash = url.lastIndexOf("#");
512
- let firstColon = url.indexOf(":");
513
- let lastColon = url.lastIndexOf(
514
- ":",
515
- lastHash > -1 ? lastHash : Infinity
516
- );
517
- let corrected = url;
518
- if (lastColon > firstAt) {
519
- corrected = url.slice(0, lastColon) + "/" + url.slice(lastColon + 1);
520
- firstColon = corrected.indexOf(":");
521
- lastColon = corrected.lastIndexOf(":");
522
- }
523
- if (firstColon === -1 && !url.includes("//")) {
524
- corrected = `git+ssh://${corrected}`;
525
- }
526
- return corrected;
527
- };
528
- var gitScpURL = (url) => {
529
- const memoized = memo.get(url);
530
- if (memoized) return memoized;
531
- try {
532
- const result = new URL(url);
533
- if (result.hostname) {
534
- memo.set(url, result);
535
- return result;
536
- }
537
- } catch {
538
- }
539
- try {
540
- const result = new URL(correctUrl(correctProtocol(url)));
541
- if (result.hostname) {
542
- memo.set(url, result);
543
- return result;
544
- }
545
- } catch {
546
- }
547
- return void 0;
548
- };
549
-
550
- // ../../src/git/src/clone.ts
551
- import { mkdir, stat as stat2 } from "node:fs/promises";
552
- import { basename, resolve as resolve2 } from "node:path";
553
- import { fileURLToPath as fileURLToPath2 } from "node:url";
554
-
555
- // ../../src/git/src/is-windows.ts
556
- var isWindows = (opts2) => (opts2.fakePlatform || process.platform) === "win32";
557
-
558
366
  // ../../src/pick-manifest/src/index.ts
559
367
  import { readFileSync } from "node:fs";
560
368
  var parsedNodeVersion = Version.parse(process.version);
@@ -784,6 +592,198 @@ function pickManifest(packument, wanted, opts2 = {}) {
784
592
  return found?.mani;
785
593
  }
786
594
 
595
+ // ../../src/git/src/spawn.ts
596
+ var import_promise_retry = __toESM(require_promise_retry(), 1);
597
+
598
+ // ../../src/git/src/make-error.ts
599
+ var connectionErrorRe = new RegExp(
600
+ [
601
+ "remote error: Internal Server Error",
602
+ "The remote end hung up unexpectedly",
603
+ "Connection timed out",
604
+ "Operation timed out",
605
+ "Failed to connect to .* Timed out",
606
+ "Connection reset by peer",
607
+ "SSL_ERROR_SYSCALL",
608
+ "The requested URL returned error: 503"
609
+ ].join("|")
610
+ );
611
+ var missingPathspecRe = /pathspec .* did not match any file\(s\) known to git/;
612
+ var makeError = (result) => connectionErrorRe.test(result.stderr) ? [
613
+ (n) => n < 3,
614
+ error("A git connection error occurred", result)
615
+ ] : missingPathspecRe.test(result.stderr) ? [null, error("The git reference could not be found", result)] : [null, error("An unknown git error occurred", result)];
616
+
617
+ // ../../src/git/src/opts.ts
618
+ var gitEnv = {
619
+ GIT_ASKPASS: "echo",
620
+ GIT_SSH_COMMAND: "ssh -oStrictHostKeyChecking=accept-new"
621
+ };
622
+ var opts = (opts2 = {}) => ({
623
+ acceptFail: true,
624
+ ...opts2,
625
+ env: opts2.env ?? { ...gitEnv, ...process.env },
626
+ stdio: "pipe",
627
+ stdioString: true,
628
+ shell: false
629
+ });
630
+
631
+ // ../../src/git/src/which.ts
632
+ var gitPath = void 0;
633
+ var which = (opts2 = {}) => {
634
+ if (opts2.git) {
635
+ return opts2.git;
636
+ }
637
+ let whichError = void 0;
638
+ if (opts2.git !== false) {
639
+ if (!gitPath) {
640
+ try {
641
+ gitPath = whichSync("git");
642
+ } catch (er) {
643
+ whichError = er;
644
+ }
645
+ }
646
+ }
647
+ if (!gitPath || opts2.git === false) {
648
+ return error(
649
+ "No git binary found in $PATH",
650
+ {
651
+ code: "ENOGIT",
652
+ cause: whichError
653
+ },
654
+ which
655
+ );
656
+ }
657
+ return gitPath;
658
+ };
659
+
660
+ // ../../src/git/src/spawn.ts
661
+ var spawn = async (gitArgs, opts2 = {}) => {
662
+ const gitPath2 = which(opts2);
663
+ if (gitPath2 instanceof Error) {
664
+ throw gitPath2;
665
+ }
666
+ const args = opts2.allowReplace || gitArgs[0] === "--no-replace-objects" ? gitArgs : ["--no-replace-objects", ...gitArgs];
667
+ const retryOpts = {
668
+ retries: opts2["fetch-retries"] || 3,
669
+ factor: opts2["fetch-retry-factor"] || 2,
670
+ maxTimeout: opts2["fetch-retry-maxtimeout"] || 6e4,
671
+ minTimeout: opts2["fetch-retry-mintimeout"] || 1e3
672
+ };
673
+ return (0, import_promise_retry.default)(async (retryFn, num) => {
674
+ const result = await promiseSpawn(gitPath2, args, opts(opts2));
675
+ if (result.status || result.signal) {
676
+ const [shouldRetry, gitError] = makeError(result);
677
+ if (!shouldRetry?.(num)) {
678
+ throw gitError;
679
+ }
680
+ retryFn(gitError);
681
+ }
682
+ return result;
683
+ }, retryOpts);
684
+ };
685
+
686
+ // ../../src/git/src/is.ts
687
+ import { stat } from "node:fs/promises";
688
+ var is = ({ cwd = process.cwd() } = {}) => stat(cwd + "/.git").then(
689
+ () => true,
690
+ () => false
691
+ );
692
+
693
+ // ../../src/git/src/is-clean.ts
694
+ var isClean = async (opts2 = {}) => {
695
+ const result = await spawn(
696
+ ["status", "--porcelain=v1", "-uno"],
697
+ opts2
698
+ );
699
+ if (result.status || result.signal) {
700
+ throw error("git isClean check failed", result);
701
+ }
702
+ for (const line of result.stdout.split(/\r?\n+/)) {
703
+ if (line.trim()) return false;
704
+ }
705
+ return true;
706
+ };
707
+
708
+ // ../../src/git-scp-url/src/index.ts
709
+ var knownProtocols = /* @__PURE__ */ new Set([
710
+ "http:",
711
+ "https:",
712
+ "git:",
713
+ "git+ssh:",
714
+ "git+https:",
715
+ "ssh:"
716
+ ]);
717
+ var memo = /* @__PURE__ */ new Map();
718
+ var correctProtocol = (arg) => {
719
+ const firstColon = arg.indexOf(":");
720
+ const proto = arg.slice(0, firstColon + 1);
721
+ const doubleSlash = arg.indexOf("//");
722
+ if (knownProtocols.has(proto)) {
723
+ if (doubleSlash === firstColon + 1) {
724
+ return arg;
725
+ }
726
+ return proto + "//" + arg.slice(firstColon + 1);
727
+ }
728
+ const firstAt = arg.indexOf("@");
729
+ if (firstAt > -1) {
730
+ if (firstAt > firstColon) {
731
+ return `git+ssh://${arg}`;
732
+ } else {
733
+ return arg;
734
+ }
735
+ }
736
+ return proto + "//" + arg.slice(firstColon + 1);
737
+ };
738
+ var correctUrl = (url) => {
739
+ const firstAt = url.indexOf("@");
740
+ const lastHash = url.lastIndexOf("#");
741
+ let firstColon = url.indexOf(":");
742
+ let lastColon = url.lastIndexOf(
743
+ ":",
744
+ lastHash > -1 ? lastHash : Infinity
745
+ );
746
+ let corrected = url;
747
+ if (lastColon > firstAt) {
748
+ corrected = url.slice(0, lastColon) + "/" + url.slice(lastColon + 1);
749
+ firstColon = corrected.indexOf(":");
750
+ lastColon = corrected.lastIndexOf(":");
751
+ }
752
+ if (firstColon === -1 && !url.includes("//")) {
753
+ corrected = `git+ssh://${corrected}`;
754
+ }
755
+ return corrected;
756
+ };
757
+ var gitScpURL = (url) => {
758
+ const memoized = memo.get(url);
759
+ if (memoized) return memoized;
760
+ try {
761
+ const result = new URL(url);
762
+ if (result.hostname) {
763
+ memo.set(url, result);
764
+ return result;
765
+ }
766
+ } catch {
767
+ }
768
+ try {
769
+ const result = new URL(correctUrl(correctProtocol(url)));
770
+ if (result.hostname) {
771
+ memo.set(url, result);
772
+ return result;
773
+ }
774
+ } catch {
775
+ }
776
+ return void 0;
777
+ };
778
+
779
+ // ../../src/git/src/clone.ts
780
+ import { mkdir, stat as stat2 } from "node:fs/promises";
781
+ import { basename, resolve as resolve2 } from "node:path";
782
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
783
+
784
+ // ../../src/git/src/is-windows.ts
785
+ var isWindows = (opts2) => (opts2.fakePlatform || process.platform) === "win32";
786
+
787
787
  // ../../src/git/src/revs.ts
788
788
  import { fileURLToPath } from "node:url";
789
789
 
@@ -15,10 +15,10 @@ import {
15
15
  } from "./chunk-SRWDPPLX.js";
16
16
  import {
17
17
  minimatch
18
- } from "./chunk-GDYDW277.js";
18
+ } from "./chunk-CB65DPZ2.js";
19
19
  import {
20
20
  Spec
21
- } from "./chunk-64VFL4WI.js";
21
+ } from "./chunk-GZ5MYMBT.js";
22
22
  import {
23
23
  parse,
24
24
  stringify
@@ -0,0 +1,21 @@
1
+ var global = globalThis;
2
+ import {Buffer} from "node:buffer";
3
+ import {setTimeout as _vlt_setTimeout,clearTimeout as _vlt_clearTimeout,setImmediate as _vlt_setImmediate,clearImmediate as _vlt_clearImmediate,setInterval as _vlt_setInterval,clearInterval as _vlt_clearInterval} from "node:timers";
4
+ globalThis.setTimeout = _vlt_setTimeout;
5
+ globalThis.clearTimeout = _vlt_clearTimeout;
6
+ globalThis.setImmediate = _vlt_setImmediate;
7
+ globalThis.clearImmediate = _vlt_clearImmediate;
8
+ globalThis.setInterval = _vlt_setInterval;
9
+ globalThis.clearInterval = _vlt_clearInterval;
10
+ import {createRequire as _vlt_createRequire} from "node:module";
11
+ var require = _vlt_createRequire(import.meta.filename);
12
+ import {
13
+ getTokenByURL
14
+ } from "./chunk-QVPNKMUU.js";
15
+
16
+ // ../../src/cli-sdk/src/query-auth.ts
17
+ var createGetAuthHeader = (conf) => async (url) => getTokenByURL(url, conf.options.identity);
18
+
19
+ export {
20
+ createGetAuthHeader
21
+ };
@@ -13,10 +13,10 @@ import {
13
13
  actual,
14
14
  callLimit,
15
15
  createVirtualRoot
16
- } from "./chunk-WGSYVB4F.js";
16
+ } from "./chunk-7BHHCB5C.js";
17
17
  import {
18
18
  SecurityArchive
19
- } from "./chunk-2XD7RUKI.js";
19
+ } from "./chunk-OWUICQFY.js";
20
20
  import {
21
21
  error
22
22
  } from "./chunk-WZWDS3W4.js";
@@ -140,7 +140,7 @@ var reloadConfig = async (folder) => {
140
140
  unload("project");
141
141
  } catch {
142
142
  }
143
- const { Config } = await import("./config-6VRNS5F3.js");
143
+ const { Config } = await import("./config-3UQXAYAA.js");
144
144
  return Config.load(folder, process.argv, true);
145
145
  };
146
146
 
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  Spec,
14
14
  kCustomInspect
15
- } from "./chunk-BP3PQ67D.js";
15
+ } from "./chunk-IBGFQR23.js";
16
16
 
17
17
  // ../../src/spec/src/index.ts
18
18
  import { homedir } from "node:os";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  isManifest,
18
18
  normalizeBinPaths
19
- } from "./chunk-BP3PQ67D.js";
19
+ } from "./chunk-IBGFQR23.js";
20
20
  import {
21
21
  error
22
22
  } from "./chunk-WZWDS3W4.js";
@@ -14,12 +14,12 @@ import {
14
14
  } from "./chunk-RIYFGX27.js";
15
15
  import {
16
16
  createHostContextsMap
17
- } from "./chunk-WS7BNE5S.js";
17
+ } from "./chunk-FKZ5I53D.js";
18
18
  import {
19
19
  stderr,
20
20
  stdout,
21
21
  styleTextStdout
22
- } from "./chunk-TOKUDCSW.js";
22
+ } from "./chunk-XDSZO74H.js";
23
23
  import {
24
24
  require_emoji_regex
25
25
  } from "./chunk-VTEFO2FT.js";
@@ -27,13 +27,13 @@ import {
27
27
  Query,
28
28
  actual,
29
29
  isRunResult
30
- } from "./chunk-WGSYVB4F.js";
30
+ } from "./chunk-7BHHCB5C.js";
31
31
  import {
32
32
  Monorepo
33
- } from "./chunk-GDYDW277.js";
33
+ } from "./chunk-CB65DPZ2.js";
34
34
  import {
35
35
  isErrorWithCause
36
- } from "./chunk-BP3PQ67D.js";
36
+ } from "./chunk-IBGFQR23.js";
37
37
  import {
38
38
  error
39
39
  } from "./chunk-WZWDS3W4.js";
@@ -2293,6 +2293,15 @@ var satisfies = (version, range, includePrerelease = false) => {
2293
2293
  return version.satisfies(range);
2294
2294
  };
2295
2295
  var inc = (version, part, prereleaseIdentifier) => (typeof version === "string" ? Version.parse(version) : version).inc(part, prereleaseIdentifier);
2296
+ var rsort = (list) => list.slice().sort(rsortMethod);
2297
+ var rsortMethod = (a, b) => {
2298
+ const pa = parse(a);
2299
+ const pb = parse(b);
2300
+ if (!pa && !pb) return String(a).localeCompare(String(b), "en");
2301
+ if (!pa) return 1;
2302
+ if (!pb) return -1;
2303
+ return pa.rcompare(pb);
2304
+ };
2296
2305
  var compare = (versionA, versionB) => {
2297
2306
  const a = parse(versionA);
2298
2307
  if (!a) {
@@ -2313,6 +2322,11 @@ var eq = (versionA, versionB) => compare(versionA, versionB) === 0;
2313
2322
  var major = (version) => parse(version)?.major;
2314
2323
  var minor = (version) => parse(version)?.minor;
2315
2324
  var patch = (version) => parse(version)?.patch;
2325
+ var stable = (versions) => versions.filter((v) => {
2326
+ const p = parse(v);
2327
+ if (!p) return false;
2328
+ return !p.prerelease?.length;
2329
+ });
2316
2330
  var intersectsCache = /* @__PURE__ */ new WeakMap();
2317
2331
  var intersects = (r1, r2, includePrerelease) => {
2318
2332
  const range1 = typeof r1 === "string" ? parseRange(r1, includePrerelease) : r1;
@@ -2513,6 +2527,7 @@ export {
2513
2527
  parseRange,
2514
2528
  satisfies,
2515
2529
  inc,
2530
+ rsort,
2516
2531
  compare,
2517
2532
  gt,
2518
2533
  gte,
@@ -2523,6 +2538,7 @@ export {
2523
2538
  major,
2524
2539
  minor,
2525
2540
  patch,
2541
+ stable,
2526
2542
  intersects,
2527
2543
  subset,
2528
2544
  assertPathSafeName,
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  isError,
14
14
  isObject
15
- } from "./chunk-BP3PQ67D.js";
15
+ } from "./chunk-IBGFQR23.js";
16
16
 
17
17
  // ../../src/output/src/error.ts
18
18
  var parseError = (err) => {
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-WGDTG44V.js";
15
15
  import {
16
16
  commandAliases
17
- } from "./chunk-XU5WNX4S.js";
17
+ } from "./chunk-SE2FSMBR.js";
18
18
 
19
19
  // ../../node_modules/.vlt/~npm~package-json-from-dist@1.0.1/node_modules/package-json-from-dist/dist/esm/index.js
20
20
  import { readFileSync } from "node:fs";
@@ -173,6 +173,10 @@ var commandHelp = {
173
173
  args: "",
174
174
  desc: "Log out from a registry"
175
175
  },
176
+ outdated: {
177
+ args: "[package-names...]",
178
+ desc: "List dependencies with newer versions available"
179
+ },
176
180
  pack: {
177
181
  args: "",
178
182
  desc: "Create a tarball from a package"
@@ -11,22 +11,16 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  openUrl
14
- } from "./chunk-AFUXQ3P4.js";
14
+ } from "./chunk-OWMR2EDW.js";
15
15
  import {
16
16
  stderr
17
- } from "./chunk-TOKUDCSW.js";
17
+ } from "./chunk-XDSZO74H.js";
18
18
  import {
19
19
  mermaidOutput
20
- } from "./chunk-WGSYVB4F.js";
20
+ } from "./chunk-7BHHCB5C.js";
21
21
  import {
22
22
  ViewClass
23
23
  } from "./chunk-4KCU2KZL.js";
24
- import {
25
- getTokenByURL
26
- } from "./chunk-F6ZN6TTL.js";
27
-
28
- // ../../src/cli-sdk/src/query-auth.ts
29
- var createGetAuthHeader = (conf) => async (url) => getTokenByURL(url, conf.options.identity);
30
24
 
31
25
  // ../../src/cli-sdk/src/mermaid-image-view.ts
32
26
  var MermaidImageView = class extends ViewClass {
@@ -53,6 +47,5 @@ var MermaidImageView = class extends ViewClass {
53
47
  };
54
48
 
55
49
  export {
56
- createGetAuthHeader,
57
50
  MermaidImageView
58
51
  };
@@ -11,15 +11,15 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  PackageInfoClient
14
- } from "./chunk-VI7V6OCC.js";
14
+ } from "./chunk-3D3IB4YN.js";
15
15
  import {
16
16
  Monorepo,
17
17
  PackageJson,
18
18
  PathScurry
19
- } from "./chunk-GDYDW277.js";
19
+ } from "./chunk-CB65DPZ2.js";
20
20
  import {
21
21
  resetCaches
22
- } from "./chunk-JIQBZ2UT.js";
22
+ } from "./chunk-SV4WK3KX.js";
23
23
  import {
24
24
  commands,
25
25
  defaultValues,
@@ -28,7 +28,7 @@ import {
28
28
  isRecordField,
29
29
  recordFields,
30
30
  storeLinkers
31
- } from "./chunk-XU5WNX4S.js";
31
+ } from "./chunk-SE2FSMBR.js";
32
32
  import {
33
33
  find,
34
34
  load,
@@ -37,14 +37,14 @@ import {
37
37
  } from "./chunk-HTOTG4TS.js";
38
38
  import {
39
39
  storeRoot
40
- } from "./chunk-PBBULTAG.js";
40
+ } from "./chunk-6D54UN4T.js";
41
41
  import {
42
42
  assertRecordStringString,
43
43
  assertRecordStringT,
44
44
  getOptions,
45
45
  isObject,
46
46
  isRecordStringString
47
- } from "./chunk-BP3PQ67D.js";
47
+ } from "./chunk-IBGFQR23.js";
48
48
  import {
49
49
  error
50
50
  } from "./chunk-WZWDS3W4.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
  stderr
14
- } from "./chunk-TOKUDCSW.js";
14
+ } from "./chunk-XDSZO74H.js";
15
15
  import {
16
16
  urlOpen
17
17
  } from "./chunk-APMYKJI2.js";