updates 16.3.6 → 16.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 (2) hide show
  1. package/dist/index.js +148 -145
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import Yn from "url";
3
3
  import Zn from "fs";
4
4
  import An from "path";
5
5
  import Ut, { argv as Qn, env as Ie, stdout as Jn, exit as ar, cwd as es } from "node:process";
6
- import { dirname as Vt, resolve as ze, basename as We, join as kt } from "node:path";
6
+ import { dirname as kt, resolve as ze, basename as We, join as Vt } from "node:path";
7
7
  import { readFileSync as lr, truncateSync as ts, writeFileSync as rs, lstatSync as cr, accessSync as ns } from "node:fs";
8
8
  import ss from "node:os";
9
9
  import ur from "node:tty";
@@ -529,7 +529,7 @@ var Tn = {
529
529
  compareIdentifiers: On,
530
530
  rcompareIdentifiers: Ps
531
531
  };
532
- const ke = ot, { MAX_LENGTH: wr, MAX_SAFE_INTEGER: Xe } = it, { re: _r, t: Sr } = Ce, Ds = at, { compareIdentifiers: Se } = Tn;
532
+ const Ve = ot, { MAX_LENGTH: wr, MAX_SAFE_INTEGER: Xe } = it, { re: _r, t: Sr } = Ce, Ds = at, { compareIdentifiers: Se } = Tn;
533
533
  let Hs = class le {
534
534
  constructor(t, r) {
535
535
  if (r = Ds(r), t instanceof le) {
@@ -542,7 +542,7 @@ let Hs = class le {
542
542
  throw new TypeError(
543
543
  `version is longer than ${wr} characters`
544
544
  );
545
- ke("SemVer", t, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
545
+ Ve("SemVer", t, r), this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease;
546
546
  const n = t.trim().match(r.loose ? _r[Sr.LOOSE] : _r[Sr.FULL]);
547
547
  if (!n)
548
548
  throw new TypeError(`Invalid Version: ${t}`);
@@ -568,7 +568,7 @@ let Hs = class le {
568
568
  return this.version;
569
569
  }
570
570
  compare(t) {
571
- if (ke("SemVer.compare", this.version, this.options, t), !(t instanceof le)) {
571
+ if (Ve("SemVer.compare", this.version, this.options, t), !(t instanceof le)) {
572
572
  if (typeof t == "string" && t === this.version)
573
573
  return 0;
574
574
  t = new le(t, this.options);
@@ -588,7 +588,7 @@ let Hs = class le {
588
588
  let r = 0;
589
589
  do {
590
590
  const n = this.prerelease[r], i = t.prerelease[r];
591
- if (ke("prerelease compare", r, n, i), n === void 0 && i === void 0)
591
+ if (Ve("prerelease compare", r, n, i), n === void 0 && i === void 0)
592
592
  return 0;
593
593
  if (i === void 0)
594
594
  return 1;
@@ -604,7 +604,7 @@ let Hs = class le {
604
604
  let r = 0;
605
605
  do {
606
606
  const n = this.build[r], i = t.build[r];
607
- if (ke("prerelease compare", r, n, i), n === void 0 && i === void 0)
607
+ if (Ve("prerelease compare", r, n, i), n === void 0 && i === void 0)
608
608
  return 0;
609
609
  if (i === void 0)
610
610
  return 1;
@@ -675,11 +675,11 @@ const Fs = Le, Ms = (e, t) => {
675
675
  return r ? r.version : null;
676
676
  };
677
677
  var Us = Ms;
678
- const Vs = Le, ks = (e, t) => {
679
- const r = Vs(e.trim().replace(/^[=v]+/, ""), t);
678
+ const ks = Le, Vs = (e, t) => {
679
+ const r = ks(e.trim().replace(/^[=v]+/, ""), t);
680
680
  return r ? r.version : null;
681
681
  };
682
- var Xs = ks;
682
+ var Xs = Vs;
683
683
  const Ir = re, qs = (e, t, r, n) => {
684
684
  typeof r == "string" && (n = r, r = void 0);
685
685
  try {
@@ -767,7 +767,7 @@ const Di = Xt, Hi = In, ji = lt, Gi = zt, Bi = Kt, Fi = Wt, Mi = (e, t, r, n) =>
767
767
  }
768
768
  };
769
769
  var xn = Mi;
770
- const Ui = re, Vi = Le, { re: qe, t: Ke } = Ce, ki = (e, t) => {
770
+ const Ui = re, ki = Le, { re: qe, t: Ke } = Ce, Vi = (e, t) => {
771
771
  if (e instanceof Ui)
772
772
  return e;
773
773
  if (typeof e == "number" && (e = String(e)), typeof e != "string")
@@ -782,9 +782,9 @@ const Ui = re, Vi = Le, { re: qe, t: Ke } = Ce, ki = (e, t) => {
782
782
  (!r || n.index + n[0].length !== r.index + r[0].length) && (r = n), qe[Ke.COERCERTL].lastIndex = n.index + n[1].length + n[2].length;
783
783
  qe[Ke.COERCERTL].lastIndex = -1;
784
784
  }
785
- return r === null ? null : Vi(`${r[2]}.${r[3] || "0"}.${r[4] || "0"}`, t);
785
+ return r === null ? null : ki(`${r[2]}.${r[3] || "0"}.${r[4] || "0"}`, t);
786
786
  };
787
- var Xi = ki, yt, Lr;
787
+ var Xi = Vi, yt, Lr;
788
788
  function qi() {
789
789
  return Lr || (Lr = 1, yt = function(e) {
790
790
  e.prototype[Symbol.iterator] = function* () {
@@ -793,12 +793,12 @@ function qi() {
793
793
  };
794
794
  }), yt;
795
795
  }
796
- var Ki = V;
797
- V.Node = _e;
798
- V.create = V;
799
- function V(e) {
796
+ var Ki = k;
797
+ k.Node = _e;
798
+ k.create = k;
799
+ function k(e) {
800
800
  var t = this;
801
- if (t instanceof V || (t = new V()), t.tail = null, t.head = null, t.length = 0, e && typeof e.forEach == "function")
801
+ if (t instanceof k || (t = new k()), t.tail = null, t.head = null, t.length = 0, e && typeof e.forEach == "function")
802
802
  e.forEach(function(i) {
803
803
  t.push(i);
804
804
  });
@@ -807,83 +807,83 @@ function V(e) {
807
807
  t.push(arguments[r]);
808
808
  return t;
809
809
  }
810
- V.prototype.removeNode = function(e) {
810
+ k.prototype.removeNode = function(e) {
811
811
  if (e.list !== this)
812
812
  throw new Error("removing node which does not belong to this list");
813
813
  var t = e.next, r = e.prev;
814
814
  return t && (t.prev = r), r && (r.next = t), e === this.head && (this.head = t), e === this.tail && (this.tail = r), e.list.length--, e.next = null, e.prev = null, e.list = null, t;
815
815
  };
816
- V.prototype.unshiftNode = function(e) {
816
+ k.prototype.unshiftNode = function(e) {
817
817
  if (e !== this.head) {
818
818
  e.list && e.list.removeNode(e);
819
819
  var t = this.head;
820
820
  e.list = this, e.next = t, t && (t.prev = e), this.head = e, this.tail || (this.tail = e), this.length++;
821
821
  }
822
822
  };
823
- V.prototype.pushNode = function(e) {
823
+ k.prototype.pushNode = function(e) {
824
824
  if (e !== this.tail) {
825
825
  e.list && e.list.removeNode(e);
826
826
  var t = this.tail;
827
827
  e.list = this, e.prev = t, t && (t.next = e), this.tail = e, this.head || (this.head = e), this.length++;
828
828
  }
829
829
  };
830
- V.prototype.push = function() {
830
+ k.prototype.push = function() {
831
831
  for (var e = 0, t = arguments.length; e < t; e++)
832
832
  Wi(this, arguments[e]);
833
833
  return this.length;
834
834
  };
835
- V.prototype.unshift = function() {
835
+ k.prototype.unshift = function() {
836
836
  for (var e = 0, t = arguments.length; e < t; e++)
837
837
  Yi(this, arguments[e]);
838
838
  return this.length;
839
839
  };
840
- V.prototype.pop = function() {
840
+ k.prototype.pop = function() {
841
841
  if (this.tail) {
842
842
  var e = this.tail.value;
843
843
  return this.tail = this.tail.prev, this.tail ? this.tail.next = null : this.head = null, this.length--, e;
844
844
  }
845
845
  };
846
- V.prototype.shift = function() {
846
+ k.prototype.shift = function() {
847
847
  if (this.head) {
848
848
  var e = this.head.value;
849
849
  return this.head = this.head.next, this.head ? this.head.prev = null : this.tail = null, this.length--, e;
850
850
  }
851
851
  };
852
- V.prototype.forEach = function(e, t) {
852
+ k.prototype.forEach = function(e, t) {
853
853
  t = t || this;
854
854
  for (var r = this.head, n = 0; r !== null; n++)
855
855
  e.call(t, r.value, n, this), r = r.next;
856
856
  };
857
- V.prototype.forEachReverse = function(e, t) {
857
+ k.prototype.forEachReverse = function(e, t) {
858
858
  t = t || this;
859
859
  for (var r = this.tail, n = this.length - 1; r !== null; n--)
860
860
  e.call(t, r.value, n, this), r = r.prev;
861
861
  };
862
- V.prototype.get = function(e) {
862
+ k.prototype.get = function(e) {
863
863
  for (var t = 0, r = this.head; r !== null && t < e; t++)
864
864
  r = r.next;
865
865
  if (t === e && r !== null)
866
866
  return r.value;
867
867
  };
868
- V.prototype.getReverse = function(e) {
868
+ k.prototype.getReverse = function(e) {
869
869
  for (var t = 0, r = this.tail; r !== null && t < e; t++)
870
870
  r = r.prev;
871
871
  if (t === e && r !== null)
872
872
  return r.value;
873
873
  };
874
- V.prototype.map = function(e, t) {
874
+ k.prototype.map = function(e, t) {
875
875
  t = t || this;
876
- for (var r = new V(), n = this.head; n !== null; )
876
+ for (var r = new k(), n = this.head; n !== null; )
877
877
  r.push(e.call(t, n.value, this)), n = n.next;
878
878
  return r;
879
879
  };
880
- V.prototype.mapReverse = function(e, t) {
880
+ k.prototype.mapReverse = function(e, t) {
881
881
  t = t || this;
882
- for (var r = new V(), n = this.tail; n !== null; )
882
+ for (var r = new k(), n = this.tail; n !== null; )
883
883
  r.push(e.call(t, n.value, this)), n = n.prev;
884
884
  return r;
885
885
  };
886
- V.prototype.reduce = function(e, t) {
886
+ k.prototype.reduce = function(e, t) {
887
887
  var r, n = this.head;
888
888
  if (arguments.length > 1)
889
889
  r = t;
@@ -895,7 +895,7 @@ V.prototype.reduce = function(e, t) {
895
895
  r = e(r, n.value, i), n = n.next;
896
896
  return r;
897
897
  };
898
- V.prototype.reduceReverse = function(e, t) {
898
+ k.prototype.reduceReverse = function(e, t) {
899
899
  var r, n = this.tail;
900
900
  if (arguments.length > 1)
901
901
  r = t;
@@ -907,19 +907,19 @@ V.prototype.reduceReverse = function(e, t) {
907
907
  r = e(r, n.value, i), n = n.prev;
908
908
  return r;
909
909
  };
910
- V.prototype.toArray = function() {
910
+ k.prototype.toArray = function() {
911
911
  for (var e = new Array(this.length), t = 0, r = this.head; r !== null; t++)
912
912
  e[t] = r.value, r = r.next;
913
913
  return e;
914
914
  };
915
- V.prototype.toArrayReverse = function() {
915
+ k.prototype.toArrayReverse = function() {
916
916
  for (var e = new Array(this.length), t = 0, r = this.tail; r !== null; t++)
917
917
  e[t] = r.value, r = r.prev;
918
918
  return e;
919
919
  };
920
- V.prototype.slice = function(e, t) {
920
+ k.prototype.slice = function(e, t) {
921
921
  t = t || this.length, t < 0 && (t += this.length), e = e || 0, e < 0 && (e += this.length);
922
- var r = new V();
922
+ var r = new k();
923
923
  if (t < e || t < 0)
924
924
  return r;
925
925
  e < 0 && (e = 0), t > this.length && (t = this.length);
@@ -929,9 +929,9 @@ V.prototype.slice = function(e, t) {
929
929
  r.push(i.value);
930
930
  return r;
931
931
  };
932
- V.prototype.sliceReverse = function(e, t) {
932
+ k.prototype.sliceReverse = function(e, t) {
933
933
  t = t || this.length, t < 0 && (t += this.length), e = e || 0, e < 0 && (e += this.length);
934
- var r = new V();
934
+ var r = new k();
935
935
  if (t < e || t < 0)
936
936
  return r;
937
937
  e < 0 && (e = 0), t > this.length && (t = this.length);
@@ -941,7 +941,7 @@ V.prototype.sliceReverse = function(e, t) {
941
941
  r.push(i.value);
942
942
  return r;
943
943
  };
944
- V.prototype.splice = function(e, t, ...r) {
944
+ k.prototype.splice = function(e, t, ...r) {
945
945
  e > this.length && (e = this.length - 1), e < 0 && (e = this.length + e);
946
946
  for (var n = 0, i = this.head; i !== null && n < e; n++)
947
947
  i = i.next;
@@ -952,7 +952,7 @@ V.prototype.splice = function(e, t, ...r) {
952
952
  i = zi(this, i, r[n]);
953
953
  return s;
954
954
  };
955
- V.prototype.reverse = function() {
955
+ k.prototype.reverse = function() {
956
956
  for (var e = this.head, t = this.tail, r = e; r !== null; r = r.prev) {
957
957
  var n = r.prev;
958
958
  r.prev = r.next, r.next = n;
@@ -975,7 +975,7 @@ function _e(e, t, r, n) {
975
975
  this.list = n, this.value = e, t ? (t.next = this, this.prev = t) : this.prev = null, r ? (r.prev = this, this.next = r) : this.next = null;
976
976
  }
977
977
  try {
978
- qi()(V);
978
+ qi()(k);
979
979
  } catch {
980
980
  }
981
981
  const Zi = Ki, Re = Symbol("max"), he = Symbol("length"), be = Symbol("lengthCalculator"), je = Symbol("allowStale"), Ae = Symbol("maxAge"), pe = Symbol("dispose"), Pr = Symbol("noDisposeOnSet"), J = Symbol("lruList"), ie = Symbol("cache"), Nn = Symbol("updateAgeOnGet"), Rt = () => 1;
@@ -1477,7 +1477,7 @@ const Ur = ae(), Ye = ct(), { ANY: bt } = Ye, De = ut, Zt = oe, Bo = (e, t, r =
1477
1477
  const n = /* @__PURE__ */ new Set();
1478
1478
  let i, s;
1479
1479
  for (const h of e)
1480
- h.operator === ">" || h.operator === ">=" ? i = Vr(i, h, r) : h.operator === "<" || h.operator === "<=" ? s = kr(s, h, r) : n.add(h.semver);
1480
+ h.operator === ">" || h.operator === ">=" ? i = kr(i, h, r) : h.operator === "<" || h.operator === "<=" ? s = Vr(s, h, r) : n.add(h.semver);
1481
1481
  if (n.size > 1)
1482
1482
  return null;
1483
1483
  let o;
@@ -1500,14 +1500,14 @@ const Ur = ae(), Ye = ct(), { ANY: bt } = Ye, De = ut, Zt = oe, Bo = (e, t, r =
1500
1500
  for (const h of t) {
1501
1501
  if (c = c || h.operator === ">" || h.operator === ">=", u = u || h.operator === "<" || h.operator === "<=", i) {
1502
1502
  if (g && h.semver.prerelease && h.semver.prerelease.length && h.semver.major === g.major && h.semver.minor === g.minor && h.semver.patch === g.patch && (g = !1), h.operator === ">" || h.operator === ">=") {
1503
- if (a = Vr(i, h, r), a === h && a !== i)
1503
+ if (a = kr(i, h, r), a === h && a !== i)
1504
1504
  return !1;
1505
1505
  } else if (i.operator === ">=" && !De(i.semver, String(h), r))
1506
1506
  return !1;
1507
1507
  }
1508
1508
  if (s) {
1509
1509
  if (d && h.semver.prerelease && h.semver.prerelease.length && h.semver.major === d.major && h.semver.minor === d.minor && h.semver.patch === d.patch && (d = !1), h.operator === "<" || h.operator === "<=") {
1510
- if (l = kr(s, h, r), l === h && l !== s)
1510
+ if (l = Vr(s, h, r), l === h && l !== s)
1511
1511
  return !1;
1512
1512
  } else if (s.operator === "<=" && !De(s.semver, String(h), r))
1513
1513
  return !1;
@@ -1516,21 +1516,21 @@ const Ur = ae(), Ye = ct(), { ANY: bt } = Ye, De = ut, Zt = oe, Bo = (e, t, r =
1516
1516
  return !1;
1517
1517
  }
1518
1518
  return !(i && u && !s && o !== 0 || s && c && !i && o !== 0 || g || d);
1519
- }, Vr = (e, t, r) => {
1519
+ }, kr = (e, t, r) => {
1520
1520
  if (!e)
1521
1521
  return t;
1522
1522
  const n = Zt(e.semver, t.semver, r);
1523
1523
  return n > 0 ? e : n < 0 || t.operator === ">" && e.operator === ">=" ? t : e;
1524
- }, kr = (e, t, r) => {
1524
+ }, Vr = (e, t, r) => {
1525
1525
  if (!e)
1526
1526
  return t;
1527
1527
  const n = Zt(e.semver, t.semver, r);
1528
1528
  return n < 0 ? e : n > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
1529
1529
  };
1530
1530
  var Mo = Bo;
1531
- const Ot = Ce, Uo = it, Vo = re, Xr = Tn, ko = Le, Xo = Us, qo = Xs, Ko = Ks, zo = Js, Wo = ri, Yo = ii, Zo = li, Qo = fi, Jo = oe, ea = di, ta = mi, ra = qt, na = Ri, sa = _i, ia = lt, oa = Kt, aa = Xt, la = In, ca = zt, ua = Wt, fa = xn, pa = Xi, ha = ct(), da = ae(), ga = ut, Ea = io, ma = co, $a = ho, va = mo, ya = yo, Ra = Yt, Aa = xo, wa = Lo, _a = Do, Sa = Go, ba = Mo;
1531
+ const Ot = Ce, Uo = it, ko = re, Xr = Tn, Vo = Le, Xo = Us, qo = Xs, Ko = Ks, zo = Js, Wo = ri, Yo = ii, Zo = li, Qo = fi, Jo = oe, ea = di, ta = mi, ra = qt, na = Ri, sa = _i, ia = lt, oa = Kt, aa = Xt, la = In, ca = zt, ua = Wt, fa = xn, pa = Xi, ha = ct(), da = ae(), ga = ut, Ea = io, ma = co, $a = ho, va = mo, ya = yo, Ra = Yt, Aa = xo, wa = Lo, _a = Do, Sa = Go, ba = Mo;
1532
1532
  var ee = {
1533
- parse: ko,
1533
+ parse: Vo,
1534
1534
  valid: Xo,
1535
1535
  clean: qo,
1536
1536
  inc: Ko,
@@ -1567,7 +1567,7 @@ var ee = {
1567
1567
  intersects: _a,
1568
1568
  simplifyRange: Sa,
1569
1569
  subset: ba,
1570
- SemVer: Vo,
1570
+ SemVer: ko,
1571
1571
  re: Ot.re,
1572
1572
  src: Ot.src,
1573
1573
  tokens: Ot.t,
@@ -1786,7 +1786,7 @@ async function Qr(e, t) {
1786
1786
  return ja(e, (r) => r(), t);
1787
1787
  }
1788
1788
  var Fe = {};
1789
- const ce = "\\\\/", Jr = `[^${ce}]`, de = "\\.", Ga = "\\+", Ba = "\\?", ft = "\\/", Fa = "(?=.)", Pn = "[^/]", tr = `(?:${ft}|$)`, Dn = `(?:^|${ft})`, rr = `${de}{1,2}${tr}`, Ma = `(?!${de})`, Ua = `(?!${Dn}${rr})`, Va = `(?!${de}{0,1}${tr})`, ka = `(?!${rr})`, Xa = `[^.${ft}]`, qa = `${Pn}*?`, Ka = "/", Hn = {
1789
+ const ce = "\\\\/", Jr = `[^${ce}]`, de = "\\.", Ga = "\\+", Ba = "\\?", ft = "\\/", Fa = "(?=.)", Pn = "[^/]", tr = `(?:${ft}|$)`, Dn = `(?:^|${ft})`, rr = `${de}{1,2}${tr}`, Ma = `(?!${de})`, Ua = `(?!${Dn}${rr})`, ka = `(?!${de}{0,1}${tr})`, Va = `(?!${rr})`, Xa = `[^.${ft}]`, qa = `${Pn}*?`, Ka = "/", Hn = {
1790
1790
  DOT_LITERAL: de,
1791
1791
  PLUS_LITERAL: Ga,
1792
1792
  QMARK_LITERAL: Ba,
@@ -1797,8 +1797,8 @@ const ce = "\\\\/", Jr = `[^${ce}]`, de = "\\.", Ga = "\\+", Ba = "\\?", ft = "\
1797
1797
  DOTS_SLASH: rr,
1798
1798
  NO_DOT: Ma,
1799
1799
  NO_DOTS: Ua,
1800
- NO_DOT_SLASH: Va,
1801
- NO_DOTS_SLASH: ka,
1800
+ NO_DOT_SLASH: ka,
1801
+ NO_DOTS_SLASH: Va,
1802
1802
  QMARK_NO_DOT: Xa,
1803
1803
  STAR: qa,
1804
1804
  START_ANCHOR: Dn,
@@ -2227,8 +2227,8 @@ const Je = pt, ue = Fe, {
2227
2227
  e = ue.removePrefix(e, E), i = e.length;
2228
2228
  const A = [], $ = [], _ = [];
2229
2229
  let f = s, p;
2230
- const m = () => E.index === i - 1, v = E.peek = (O = 1) => e[E.index + O], S = E.advance = () => e[++E.index] || "", x = () => e.slice(E.index + 1), j = (O = "", k = 0) => {
2231
- E.consumed += O, E.index += k;
2230
+ const m = () => E.index === i - 1, v = E.peek = (O = 1) => e[E.index + O], S = E.advance = () => e[++E.index] || "", x = () => e.slice(E.index + 1), j = (O = "", V = 0) => {
2231
+ E.consumed += O, E.index += V;
2232
2232
  }, q = (O) => {
2233
2233
  E.output += O.output != null ? O.output : O.value, j(O.value);
2234
2234
  }, X = () => {
@@ -2242,34 +2242,34 @@ const Je = pt, ue = Fe, {
2242
2242
  E[O]--, _.pop();
2243
2243
  }, G = (O) => {
2244
2244
  if (f.type === "globstar") {
2245
- const k = E.braces > 0 && (O.type === "comma" || O.type === "brace"), w = O.extglob === !0 || A.length && (O.type === "pipe" || O.type === "paren");
2246
- O.type !== "slash" && O.type !== "paren" && !k && !w && (E.output = E.output.slice(0, -f.output.length), f.type = "star", f.value = "*", f.output = L, E.output += f.output);
2245
+ const V = E.braces > 0 && (O.type === "comma" || O.type === "brace"), w = O.extglob === !0 || A.length && (O.type === "pipe" || O.type === "paren");
2246
+ O.type !== "slash" && O.type !== "paren" && !V && !w && (E.output = E.output.slice(0, -f.output.length), f.type = "star", f.value = "*", f.output = L, E.output += f.output);
2247
2247
  }
2248
2248
  if (A.length && O.type !== "paren" && (A[A.length - 1].inner += O.value), (O.value || O.output) && q(O), f && f.type === "text" && O.type === "text") {
2249
2249
  f.output = (f.output || f.value) + O.value, f.value += O.value;
2250
2250
  return;
2251
2251
  }
2252
2252
  O.prev = f, o.push(O), f = O;
2253
- }, Ee = (O, k) => {
2254
- const w = { ...u[k], conditions: 1, inner: "" };
2253
+ }, Ee = (O, V) => {
2254
+ const w = { ...u[V], conditions: 1, inner: "" };
2255
2255
  w.prev = f, w.parens = E.parens, w.output = E.output;
2256
2256
  const B = (r.capture ? "(" : "") + w.open;
2257
- Z("parens"), G({ type: O, value: k, output: E.output ? "" : h }), G({ type: "paren", extglob: !0, value: S(), output: B }), A.push(w);
2257
+ Z("parens"), G({ type: O, value: V, output: E.output ? "" : h }), G({ type: "paren", extglob: !0, value: S(), output: B }), A.push(w);
2258
2258
  }, ne = (O) => {
2259
- let k = O.close + (r.capture ? ")" : ""), w;
2259
+ let V = O.close + (r.capture ? ")" : ""), w;
2260
2260
  if (O.type === "negate") {
2261
2261
  let B = L;
2262
- if (O.inner && O.inner.length > 1 && O.inner.includes("/") && (B = U(r)), (B !== L || m() || /^\)+$/.test(x())) && (k = O.close = `)$))${B}`), O.inner.includes("*") && (w = x()) && /^\.[^\\/.]+$/.test(w)) {
2262
+ if (O.inner && O.inner.length > 1 && O.inner.includes("/") && (B = U(r)), (B !== L || m() || /^\)+$/.test(x())) && (V = O.close = `)$))${B}`), O.inner.includes("*") && (w = x()) && /^\.[^\\/.]+$/.test(w)) {
2263
2263
  const K = nr(w, { ...t, fastpaths: !1 }).output;
2264
- k = O.close = `)${K})${B})`;
2264
+ V = O.close = `)${K})${B})`;
2265
2265
  }
2266
2266
  O.prev.type === "bos" && (E.negatedExtglob = !0);
2267
2267
  }
2268
- G({ type: "paren", extglob: !0, value: p, output: k }), Y("parens");
2268
+ G({ type: "paren", extglob: !0, value: p, output: V }), Y("parens");
2269
2269
  };
2270
2270
  if (r.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(e)) {
2271
- let O = !1, k = e.replace(ol, (w, B, K, te, Q, dt) => te === "\\" ? (O = !0, w) : te === "?" ? B ? B + te + (Q ? C.repeat(Q.length) : "") : dt === 0 ? P + (Q ? C.repeat(Q.length) : "") : C.repeat(K.length) : te === "." ? c.repeat(K.length) : te === "*" ? B ? B + te + (Q ? L : "") : L : B ? w : `\\${w}`);
2272
- return O === !0 && (r.unescape === !0 ? k = k.replace(/\\/g, "") : k = k.replace(/\\+/g, (w) => w.length % 2 === 0 ? "\\\\" : w ? "\\" : "")), k === e && r.contains === !0 ? (E.output = e, E) : (E.output = ue.wrapOutput(k, E, t), E);
2271
+ let O = !1, V = e.replace(ol, (w, B, K, te, Q, dt) => te === "\\" ? (O = !0, w) : te === "?" ? B ? B + te + (Q ? C.repeat(Q.length) : "") : dt === 0 ? P + (Q ? C.repeat(Q.length) : "") : C.repeat(K.length) : te === "." ? c.repeat(K.length) : te === "*" ? B ? B + te + (Q ? L : "") : L : B ? w : `\\${w}`);
2272
+ return O === !0 && (r.unescape === !0 ? V = V.replace(/\\/g, "") : V = V.replace(/\\+/g, (w) => w.length % 2 === 0 ? "\\\\" : w ? "\\" : "")), V === e && r.contains === !0 ? (E.output = e, E) : (E.output = ue.wrapOutput(V, E, t), E);
2273
2273
  }
2274
2274
  for (; !m(); ) {
2275
2275
  if (p = S(), p === "\0")
@@ -2508,8 +2508,8 @@ const Je = pt, ue = Fe, {
2508
2508
  continue;
2509
2509
  }
2510
2510
  for (; O.slice(0, 3) === "/**"; ) {
2511
- const Ve = e[E.index + 4];
2512
- if (Ve && Ve !== "/")
2511
+ const ke = e[E.index + 4];
2512
+ if (ke && ke !== "/")
2513
2513
  break;
2514
2514
  O = O.slice(3), j("/**", 3);
2515
2515
  }
@@ -2522,8 +2522,8 @@ const Je = pt, ue = Fe, {
2522
2522
  continue;
2523
2523
  }
2524
2524
  if (w.type === "slash" && w.prev.type !== "bos" && O[0] === "/") {
2525
- const Ve = O[1] !== void 0 ? "|$" : "";
2526
- E.output = E.output.slice(0, -(w.output + f.output).length), w.output = `(?:${w.output}`, f.type = "globstar", f.output = `${U(r)}${g}|${g}${Ve})`, f.value += p, E.output += w.output + f.output, E.globstar = !0, j(p + S()), G({ type: "slash", value: "/", output: "" });
2525
+ const ke = O[1] !== void 0 ? "|$" : "";
2526
+ E.output = E.output.slice(0, -(w.output + f.output).length), w.output = `(?:${w.output}`, f.type = "globstar", f.output = `${U(r)}${g}|${g}${ke})`, f.value += p, E.output += w.output + f.output, E.globstar = !0, j(p + S()), G({ type: "slash", value: "/", output: "" });
2527
2527
  continue;
2528
2528
  }
2529
2529
  if (w.type === "bos" && O[0] === "/") {
@@ -2533,16 +2533,16 @@ const Je = pt, ue = Fe, {
2533
2533
  E.output = E.output.slice(0, -f.output.length), f.type = "globstar", f.output = U(r), f.value += p, E.output += f.output, E.globstar = !0, j(p);
2534
2534
  continue;
2535
2535
  }
2536
- const k = { type: "star", value: p, output: L };
2536
+ const V = { type: "star", value: p, output: L };
2537
2537
  if (r.bash === !0) {
2538
- k.output = ".*?", (f.type === "bos" || f.type === "slash") && (k.output = H + k.output), G(k);
2538
+ V.output = ".*?", (f.type === "bos" || f.type === "slash") && (V.output = H + V.output), G(V);
2539
2539
  continue;
2540
2540
  }
2541
2541
  if (f && (f.type === "bracket" || f.type === "paren") && r.regex === !0) {
2542
- k.output = p, G(k);
2542
+ V.output = p, G(V);
2543
2543
  continue;
2544
2544
  }
2545
- (E.index === E.start || f.type === "slash" || f.type === "dot") && (f.type === "dot" ? (E.output += R, f.output += R) : r.dot === !0 ? (E.output += I, f.output += I) : (E.output += H, f.output += H), v() !== "*" && (E.output += h, f.output += h)), G(k);
2545
+ (E.index === E.start || f.type === "slash" || f.type === "dot") && (f.type === "dot" ? (E.output += R, f.output += R) : r.dot === !0 ? (E.output += I, f.output += I) : (E.output += H, f.output += H), v() !== "*" && (E.output += h, f.output += h)), G(V);
2546
2546
  }
2547
2547
  for (; E.brackets > 0; ) {
2548
2548
  if (r.strictBrackets === !0) throw new SyntaxError(Oe("closing", "]"));
@@ -2683,7 +2683,7 @@ function Mn(e, t, r = !1) {
2683
2683
  }
2684
2684
  Object.assign(Mn, Fn);
2685
2685
  var dl = Mn;
2686
- const on = /* @__PURE__ */ nt(dl), gl = "updates", El = "16.3.5", ml = "Flexible npm and poetry dependency update tool", $l = "silverwind", vl = "silverwind/updates", yl = "BSD-2-Clause", Rl = "dist/index.js", Al = "module", wl = [
2686
+ const on = /* @__PURE__ */ nt(dl), gl = "updates", El = "16.3.6", ml = "Flexible npm and poetry dependency update tool", $l = "silverwind", vl = "silverwind/updates", yl = "BSD-2-Clause", Rl = "dist/index.js", Al = "module", wl = [
2687
2687
  "dist"
2688
2688
  ], _l = {
2689
2689
  node: ">=18"
@@ -2807,7 +2807,7 @@ const on = /* @__PURE__ */ nt(dl), gl = "updates", El = "16.3.5", ml = "Flexible
2807
2807
  }
2808
2808
  });
2809
2809
  (M["no-color"] || !La.stdout) && Pa();
2810
- const Te = Ue($e(M.greatest)), Lt = Ue($e(M.prerelease)), Pt = Ue($e(M.release)), ln = Ue($e(M.patch)), cn = Ue($e(M.minor)), un = $e(M["allow-downgrade"]), Il = $e(M.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), Vn = M.githubapi ? Me(M.githubapi) : "https://api.github.com", xl = M.pypiapi ? Me(M.pypiapi) : "https://pypi.org", Nl = "https://proxy.golang.org", Cl = M.goproxy ? Me(M.goproxy) : Pl(), xe = (e) => e.replace(/^v/, "");
2810
+ const Te = Ue($e(M.greatest)), Lt = Ue($e(M.prerelease)), Pt = Ue($e(M.release)), ln = Ue($e(M.patch)), cn = Ue($e(M.minor)), un = $e(M["allow-downgrade"]), Il = $e(M.modes) || /* @__PURE__ */ new Set(["npm", "pypi"]), kn = M.githubapi ? Me(M.githubapi) : "https://api.github.com", xl = M.pypiapi ? Me(M.pypiapi) : "https://pypi.org", Nl = "https://proxy.golang.org", Cl = M.goproxy ? Me(M.goproxy) : Pl(), xe = (e) => e.replace(/^v/, "");
2811
2811
  function ye(e, t) {
2812
2812
  for (const r of t instanceof Set ? t : [])
2813
2813
  if (r.test(e)) return !0;
@@ -2823,14 +2823,14 @@ function Pl() {
2823
2823
  function Dl(e, t) {
2824
2824
  return t.split(".").reduce((r, n) => r?.[n] ?? null, e);
2825
2825
  }
2826
- function kn(e, t) {
2827
- const r = kt(t, e);
2826
+ function Vn(e, t) {
2827
+ const r = Vt(t, e);
2828
2828
  try {
2829
2829
  return ns(r), r;
2830
2830
  } catch {
2831
2831
  }
2832
- const n = Vt(t);
2833
- return n === t ? null : kn(e, n);
2832
+ const n = kt(t);
2833
+ return n === t ? null : Vn(e, n);
2834
2834
  }
2835
2835
  function Hl(e, t, r, n) {
2836
2836
  if (e.startsWith("@")) {
@@ -2886,6 +2886,9 @@ async function Xn(e, t, r, n) {
2886
2886
  throw o?.status && o?.statusText ? new Error(`Received ${o.status} ${o.statusText} from ${s}`) : new Error(`Unable to fetch ${e} from PyPi`);
2887
2887
  }
2888
2888
  function Fl(e) {
2889
+ return e = e.replace("git@", "").replace(/.+?\/\//, "https://").replace(/\.git$/, ""), /^[a-z]+:[a-z0-9-]\/[a-z0-9-]$/.test(e) ? e.replace(/^(.+?):/, (t, r) => `https://${r}.com/`) : /^[a-z0-9-]\/[a-z0-9-]/.test(e) ? `https://github.com/${e}` : e;
2890
+ }
2891
+ function Ml(e) {
2889
2892
  return e.startsWith("https://bitbucket.org") ? "src/HEAD" : "tree/HEAD";
2890
2893
  }
2891
2894
  function fn({ repository: e, homepage: t, info: r }, n, i) {
@@ -2895,7 +2898,7 @@ function fn({ repository: e, homepage: t, info: r }, n, i) {
2895
2898
  return `https://github.com/${i.replace(/^@/, "")}`;
2896
2899
  if (e) {
2897
2900
  const o = typeof e == "string" ? e : e.url;
2898
- s = o.replace("git@", "").replace(/.+?\/\//, "https://").replace(/\.git$/, ""), s && typeof e != "string" && e.directory && (s = `${s}/${Fl(s)}/${e.directory}`), !s && typeof e != "string" && e?.url && /^https?:/.test(e.url) && (s = e.url), !s && o && (s = o);
2901
+ s = Fl(o), s && typeof e != "string" && e.directory && (s = `${s}/${Ml(s)}/${e.directory}`), !s && typeof e != "string" && e?.url && /^https?:/.test(e.url) && (s = e.url), !s && o && (s = o);
2899
2902
  }
2900
2903
  return s || t || "";
2901
2904
  }
@@ -2909,7 +2912,7 @@ function Ge(e) {
2909
2912
  }
2910
2913
  process.exit(e ? 1 : 0);
2911
2914
  }
2912
- function Ml(e = {}) {
2915
+ function Ul(e = {}) {
2913
2916
  for (const r of Object.keys(e))
2914
2917
  for (const n of Object.values(e[r]))
2915
2918
  typeof n.oldPrint == "string" && (n.old = n.oldPrint, delete n.oldPrint), typeof n.newPrint == "string" && (n.new = n.newPrint, delete n.newPrint), typeof n.oldOriginal == "string" && (n.old = n.oldOriginal, delete n.oldOriginal);
@@ -2924,10 +2927,10 @@ function Ml(e = {}) {
2924
2927
  r.results[n] || (r.results[n] = {}), r.results[n][o] || (r.results[n][o] = {}), r.results[n][o][a] = s;
2925
2928
  }
2926
2929
  console.info(JSON.stringify(r));
2927
- } else t && console.info(Xl(e));
2930
+ } else t && console.info(ql(e));
2928
2931
  return M["error-on-outdated"] ? t ? 2 : 0 : M["error-on-unchanged"] ? t ? 0 : 2 : 0;
2929
2932
  }
2930
- async function Ul(e, t) {
2933
+ async function kl(e, t) {
2931
2934
  const { platform: r } = await import("node:os"), n = r() === "win32";
2932
2935
  n && ts(e, 0), rs(e, t, n ? { flag: "r+" } : void 0);
2933
2936
  }
@@ -2963,16 +2966,16 @@ function Vl(e, t = " ") {
2963
2966
  }
2964
2967
  return r;
2965
2968
  }
2966
- function kl(e) {
2967
- return /\/v[0-9]$/.test(e) && (e = Vt(e)), e;
2968
- }
2969
2969
  function Xl(e) {
2970
+ return /\/v[0-9]$/.test(e) && (e = kt(e)), e;
2971
+ }
2972
+ function ql(e) {
2970
2973
  const t = [["NAME", "OLD", "NEW", "AGE", "INFO"]], r = /* @__PURE__ */ new Set();
2971
2974
  for (const n of Object.keys(e))
2972
2975
  for (const [i, s] of Object.entries(e[n])) {
2973
2976
  const o = i.split(fe)[1], a = `${n}|${o}`;
2974
2977
  r.has(a) || (r.add(a), t.push([
2975
- n === "go" ? kl(o) : o,
2978
+ n === "go" ? Xl(o) : o,
2976
2979
  hn(s.old, s.new, Jt),
2977
2980
  hn(s.new, s.old, er),
2978
2981
  s.age || "",
@@ -2981,7 +2984,7 @@ function Xl(e) {
2981
2984
  }
2982
2985
  return Vl(t);
2983
2986
  }
2984
- function ql(e, t) {
2987
+ function Kl(e, t) {
2985
2988
  let r = e;
2986
2989
  for (const n of Object.keys(t)) {
2987
2990
  const i = n.split(fe)[1], s = t[n].oldOriginal || t[n].old, o = new RegExp(`"${tt(i)}": *"${tt(s)}"`, "g");
@@ -2989,7 +2992,7 @@ function ql(e, t) {
2989
2992
  }
2990
2993
  return r;
2991
2994
  }
2992
- function Kl(e, t) {
2995
+ function zl(e, t) {
2993
2996
  let r = e;
2994
2997
  for (const n of Object.keys(t)) {
2995
2998
  const i = n.split(fe)[1], s = t[n].oldOriginal || t[n].old, o = new RegExp(`${tt(i)} *= *"${tt(s)}"`, "g");
@@ -2997,7 +3000,7 @@ function Kl(e, t) {
2997
3000
  }
2998
3001
  return r;
2999
3002
  }
3000
- function zl(e, t, r) {
3003
+ function Wl(e, t, r) {
3001
3004
  let n = e.replace(/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g, t);
3002
3005
  if (r && r !== e && /^[\^~]/.test(n)) {
3003
3006
  const i = r.substring(1).split("."), s = n.substring(1).split(".");
@@ -3019,7 +3022,7 @@ function Be(e) {
3019
3022
  return "";
3020
3023
  }
3021
3024
  }
3022
- function Wl(e, t, { range: r, semvers: n, usePre: i, useRel: s, useGreatest: o }) {
3025
+ function Yl(e, t, { range: r, semvers: n, usePre: i, useRel: s, useGreatest: o }) {
3023
3026
  let a = Be(r), l = 0;
3024
3027
  i = qn(r) || i, i && (n.add("prerelease"), n.has("patch") && n.add("prepatch"), n.has("minor") && n.add("preminor"), n.has("major") && n.add("premajor"));
3025
3028
  for (const u of t) {
@@ -3036,13 +3039,13 @@ function Wl(e, t, { range: r, semvers: n, usePre: i, useRel: s, useGreatest: o }
3036
3039
  }
3037
3040
  return a || null;
3038
3041
  }
3039
- function Yl(e, { mode: t, range: r, useGreatest: n, useRel: i, usePre: s, semvers: o }) {
3042
+ function Zl(e, { mode: t, range: r, useGreatest: n, useRel: i, usePre: s, semvers: o }) {
3040
3043
  if (t === "go")
3041
3044
  return ee.gt(xe(e.Version), xe(r)) ? e.Version : null;
3042
3045
  if (r === "*" || r.includes("||")) return null;
3043
3046
  let a = [];
3044
3047
  t === "pypi" ? a = Object.keys(e.releases).filter((u) => ee.valid(u)) : t === "npm" && (a = Object.keys(e.versions).filter((u) => ee.valid(u)));
3045
- const l = Wl(e, a, { range: r, semvers: o, usePre: s, useRel: i, useGreatest: n });
3048
+ const l = Yl(e, a, { range: r, semvers: o, usePre: s, useRel: i, useGreatest: n });
3046
3049
  if (!l) return null;
3047
3050
  if (n)
3048
3051
  return l;
@@ -3062,17 +3065,17 @@ function Kn(e) {
3062
3065
  const t = {}, r = Ie.UPDATES_GITHUB_API_TOKEN || Ie.GITHUB_API_TOKEN || Ie.GH_TOKEN || Ie.HOMEBREW_GITHUB_API_TOKEN;
3063
3066
  return r && (t.headers = { Authorization: `Bearer ${r}` }), ht(e, t);
3064
3067
  }
3065
- async function Zl(e, t) {
3066
- const r = `${Vn}/repos/${e}/${t}/commits`, n = await Kn(r);
3068
+ async function Ql(e, t) {
3069
+ const r = `${kn}/repos/${e}/${t}/commits`, n = await Kn(r);
3067
3070
  if (!n?.ok) return { hash: "", commit: {} };
3068
3071
  const i = await n.json(), { sha: s, commit: o } = i[0];
3069
3072
  return { hash: s, commit: o };
3070
3073
  }
3071
- async function Ql(e, t) {
3072
- const r = await Kn(`${Vn}/repos/${e}/${t}/git/refs/tags`);
3074
+ async function Jl(e, t) {
3075
+ const r = await Kn(`${kn}/repos/${e}/${t}/git/refs/tags`);
3073
3076
  return r?.ok ? (await r.json()).map((s) => s.ref.replace(/^refs\/tags\//, "")) : [];
3074
3077
  }
3075
- function Jl(e, t, r) {
3078
+ function ec(e, t, r) {
3076
3079
  const n = xe(t);
3077
3080
  if (ee.valid(n))
3078
3081
  if (r) {
@@ -3092,11 +3095,11 @@ function Jl(e, t, r) {
3092
3095
  return i;
3093
3096
  }
3094
3097
  }
3095
- async function ec(e, t, r) {
3098
+ async function tc(e, t, r) {
3096
3099
  const n = t.old.replace(Ol, ""), [i, s, o, a] = Tl.exec(n) || [];
3097
3100
  if (!(!s || !o || !a))
3098
3101
  if (Gt.test(a)) {
3099
- const { hash: l, commit: u } = await Zl(s, o);
3102
+ const { hash: l, commit: u } = await Ql(s, o);
3100
3103
  if (!l) return;
3101
3104
  const c = u?.committer?.date ?? u?.author?.date, d = l.substring(0, a.length);
3102
3105
  if (a !== d) {
@@ -3104,15 +3107,15 @@ async function ec(e, t, r) {
3104
3107
  return { key: e, newRange: g, user: s, repo: o, oldRef: a, newRef: d, newDate: c };
3105
3108
  }
3106
3109
  } else {
3107
- const l = await Ql(s, o), u = Jl(l, a, r);
3110
+ const l = await Jl(s, o), u = ec(l, a, r);
3108
3111
  if (u)
3109
3112
  return { key: e, newRange: u, user: s, repo: o, oldRef: a, newRef: u };
3110
3113
  }
3111
3114
  }
3112
- function tc(e) {
3115
+ function rc(e) {
3113
3116
  return e.replace(/-.*/, "");
3114
3117
  }
3115
- function rc(e) {
3118
+ function nc(e) {
3116
3119
  const t = e.match(an);
3117
3120
  return t?.length !== 1 ? e : e.replace(an, Be(t[0]));
3118
3121
  }
@@ -3154,7 +3157,7 @@ function $n(e, t, r, n) {
3154
3157
  if (i.test(e)) return !0;
3155
3158
  return !r.size;
3156
3159
  }
3157
- function nc(e) {
3160
+ function sc(e) {
3158
3161
  const t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
3159
3162
  if (e)
3160
3163
  for (const n of e) {
@@ -3169,7 +3172,7 @@ function nc(e) {
3169
3172
  t.add(s), r.add(s);
3170
3173
  } else if (i?.isDirectory())
3171
3174
  for (const s of Object.keys(Bt)) {
3172
- const o = kt(n, s);
3175
+ const o = Vt(n, s);
3173
3176
  let a;
3174
3177
  try {
3175
3178
  a = cr(o);
@@ -3182,12 +3185,12 @@ function nc(e) {
3182
3185
  }
3183
3186
  else
3184
3187
  for (const n of Object.keys(Bt)) {
3185
- const i = kn(n, es());
3188
+ const i = Vn(n, es());
3186
3189
  i && t.add(ze(i));
3187
3190
  }
3188
3191
  return [t, r];
3189
3192
  }
3190
- async function sc() {
3193
+ async function ic() {
3191
3194
  for (const R of [process.stdout, process.stderr])
3192
3195
  R?._handle?.setBlocking?.(!0);
3193
3196
  const e = 96, t = typeof M.sockets == "number" ? M.sockets : e, { help: r, version: n, file: i, types: s, update: o } = M;
@@ -3226,9 +3229,9 @@ async function sc() {
3226
3229
  `), ar(0)), n && (console.info(Un), ar(0));
3227
3230
  const a = {}, l = {}, u = {}, c = {};
3228
3231
  let d = 0;
3229
- const [g, h] = nc($e(i));
3232
+ const [g, h] = sc($e(i));
3230
3233
  for (const R of g) {
3231
- const I = Vt(ze(R)), C = We(R), y = Bt[C];
3234
+ const I = kt(ze(R)), C = We(R), y = Bt[C];
3232
3235
  if (!Il.has(y) && !h.has(R)) continue;
3233
3236
  c[y] = R, a[y] || (a[y] = {});
3234
3237
  let T = {};
@@ -3242,7 +3245,7 @@ async function sc() {
3242
3245
  ".config/updates.ts",
3243
3246
  ".config/updates.mjs",
3244
3247
  ".config/updates.mts"
3245
- ].map((m) => import(kt(I, ...m.split("/"))))));
3248
+ ].map((m) => import(Vt(I, ...m.split("/"))))));
3246
3249
  } catch {
3247
3250
  }
3248
3251
  let D = [], U = [];
@@ -3287,7 +3290,7 @@ async function sc() {
3287
3290
  if (y === "npm")
3288
3291
  _ = JSON.parse(u[y]);
3289
3292
  else if (y === "pypi")
3290
- _ = (await Promise.resolve().then(() => $c)).parse(u[y]);
3293
+ _ = (await Promise.resolve().then(() => vc)).parse(u[y]);
3291
3294
  else {
3292
3295
  _.deps = {};
3293
3296
  for (const m of Bl(u[y])) {
@@ -3303,12 +3306,12 @@ async function sc() {
3303
3306
  y === "npm" || y === "go" ? v = _[m] || {} : v = Dl(_, m) || {};
3304
3307
  for (const [S, x] of Object.entries(v))
3305
3308
  y !== "go" && ee.validRange(x) && $n(S, y, H, P) ? a[y][`${m}${fe}${S}`] = {
3306
- old: rc(x),
3309
+ old: nc(x),
3307
3310
  oldOriginal: x
3308
3311
  } : y === "npm" && $n(S, y, H, P) ? l[`${m}${fe}${S}`] = {
3309
3312
  old: x
3310
3313
  } : y === "go" && (a[y][`${m}${fe}${S}`] = {
3311
- old: tc(x),
3314
+ old: rc(x),
3312
3315
  oldOriginal: x
3313
3316
  });
3314
3317
  }
@@ -3331,7 +3334,7 @@ async function sc() {
3331
3334
  const j = typeof Te == "boolean" ? Te : ye(m.name, Te), q = typeof Lt == "boolean" ? Lt : ye(m.name, Lt), X = typeof Pt == "boolean" ? Pt : ye(m.name, Pt);
3332
3335
  let Z;
3333
3336
  ln === !0 || ye(m.name, ln) ? Z = /* @__PURE__ */ new Set(["patch"]) : cn === !0 || ye(m.name, cn) ? Z = /* @__PURE__ */ new Set(["patch", "minor"]) : Z = /* @__PURE__ */ new Set(["patch", "minor", "major"]);
3334
- const Y = `${v}${fe}${x}`, G = a[y][Y].old, Ee = a[y][Y].oldOriginal, ne = Yl(m, {
3337
+ const Y = `${v}${fe}${x}`, G = a[y][Y].old, Ee = a[y][Y].oldOriginal, ne = Zl(m, {
3335
3338
  usePre: q,
3336
3339
  useRel: X,
3337
3340
  useGreatest: j,
@@ -3340,18 +3343,18 @@ async function sc() {
3340
3343
  mode: y
3341
3344
  });
3342
3345
  let O = "";
3343
- if (y === "go" && ne ? O = ne : ne && (O = zl(G, ne, Ee)), !ne || Ee && Ee === O)
3346
+ if (y === "go" && ne ? O = ne : ne && (O = Wl(G, ne, Ee)), !ne || Ee && Ee === O)
3344
3347
  delete a[y][Y];
3345
3348
  else {
3346
3349
  a[y][Y].new = O, y === "npm" ? a[y][Y].info = fn(m?.versions?.[ne], S, m.name) : y === "pypi" ? a[y][Y].info = fn(m, S, m.info.name) : a[y][Y].info = m?.Origin?.URL ?? `https://${x}`;
3347
- let k = "";
3348
- y === "npm" && m.time?.[ne] ? k = m.time[ne] : y === "pypi" && m.releases?.[ne]?.[0]?.upload_time_iso_8601 ? k = m.releases[ne][0].upload_time_iso_8601 : y === "go" && m.Time && (k = m.Time), k && (a[y][Y].age = Kr(k, { noAffix: !0 }));
3350
+ let V = "";
3351
+ y === "npm" && m.time?.[ne] ? V = m.time[ne] : y === "pypi" && m.releases?.[ne]?.[0]?.upload_time_iso_8601 ? V = m.releases[ne][0].upload_time_iso_8601 : y === "go" && m.Time && (V = m.Time), V && (a[y][Y].age = Kr(V, { noAffix: !0 }));
3349
3352
  }
3350
3353
  }
3351
3354
  if (Object.keys(l).length) {
3352
3355
  const m = await Qr(Object.entries(l).map(([v, S]) => () => {
3353
3356
  const x = v.split(fe)[1], j = typeof Te == "boolean" ? Te : ye(x, Te);
3354
- return ec(v, S, j);
3357
+ return tc(v, S, j);
3355
3358
  }), { concurrency: t });
3356
3359
  for (const v of (m || []).filter(Boolean)) {
3357
3360
  const { key: S, newRange: x, user: j, repo: q, oldRef: X, newRef: Z, newDate: Y } = v;
@@ -3372,13 +3375,13 @@ async function sc() {
3372
3375
  for (const R of Object.keys(a))
3373
3376
  b += Object.keys(a[R]).length;
3374
3377
  b || (pn("All dependencies are up to date."), Ge());
3375
- const N = Ml(a);
3378
+ const N = Ul(a);
3376
3379
  if (o) {
3377
3380
  for (const R of Object.keys(a))
3378
3381
  if (Object.keys(a[R]).length) {
3379
3382
  try {
3380
- const I = R === "npm" ? ql : Kl;
3381
- await Ul(c[R], I(u[R], a[R]));
3383
+ const I = R === "npm" ? Kl : zl;
3384
+ await kl(c[R], I(u[R], a[R]));
3382
3385
  } catch (I) {
3383
3386
  throw new Error(`Error writing ${We(c[R])}: ${I.message}`);
3384
3387
  }
@@ -3387,12 +3390,12 @@ async function sc() {
3387
3390
  }
3388
3391
  process.exit(N);
3389
3392
  }
3390
- sc().catch(Ge).then(Ge);
3391
- function ic(e, t) {
3393
+ ic().catch(Ge).then(Ge);
3394
+ function oc(e, t) {
3392
3395
  let r = e.slice(0, t).split(/\r\n|\n|\r/g);
3393
3396
  return [r.length, r.pop().length + 1];
3394
3397
  }
3395
- function oc(e, t, r) {
3398
+ function ac(e, t, r) {
3396
3399
  let n = e.split(/\r\n|\n|\r/g), i = "", s = (Math.log10(t + 1) | 0) + 1;
3397
3400
  for (let o = t - 1; o <= t + 1; o++) {
3398
3401
  let a = n[o - 1];
@@ -3407,7 +3410,7 @@ class F extends Error {
3407
3410
  column;
3408
3411
  codeblock;
3409
3412
  constructor(t, r) {
3410
- const [n, i] = ic(r.toml, r.ptr), s = oc(r.toml, n, i);
3413
+ const [n, i] = oc(r.toml, r.ptr), s = ac(r.toml, n, i);
3411
3414
  super(`Invalid TOML document: ${t}
3412
3415
 
3413
3416
  ${s}`, r), this.line = n, this.column = i, this.codeblock = s;
@@ -3474,7 +3477,7 @@ function zn(e, t) {
3474
3477
  while (t > -1 && r !== "'" && e[t - 1] === "\\" && e[t - 2] !== "\\");
3475
3478
  return t > -1 && (t += n.length, n.length > 1 && (e[t] === r && t++, e[t] === r && t++)), t;
3476
3479
  }
3477
- let ac = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
3480
+ let lc = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i;
3478
3481
  class we extends Date {
3479
3482
  #t = !1;
3480
3483
  #r = !1;
@@ -3482,7 +3485,7 @@ class we extends Date {
3482
3485
  constructor(t) {
3483
3486
  let r = !0, n = !0, i = "Z";
3484
3487
  if (typeof t == "string") {
3485
- let s = t.match(ac);
3488
+ let s = t.match(lc);
3486
3489
  s ? (s[1] || (r = !1, t = `0000-01-01T${t}`), n = !!s[2], s[2] && +s[2] > 23 ? t = "" : (i = s[3] || null, t = t.toUpperCase(), !i && n && (t += "Z"))) : t = "";
3487
3490
  }
3488
3491
  super(t), isNaN(this.getTime()) || (this.#t = r, this.#r = n, this.#e = i);
@@ -3532,7 +3535,7 @@ class we extends Date {
3532
3535
  return r.#t = !1, r.#e = null, r;
3533
3536
  }
3534
3537
  }
3535
- let lc = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, cc = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, uc = /^[+-]?0[0-9_]/, fc = /^[0-9a-f]{4,8}$/i, yn = {
3538
+ let cc = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, uc = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, fc = /^[+-]?0[0-9_]/, pc = /^[0-9a-f]{4,8}$/i, yn = {
3536
3539
  b: "\b",
3537
3540
  t: " ",
3538
3541
  n: `
@@ -3565,7 +3568,7 @@ function Wn(e, t = 0, r = e.length) {
3565
3568
  if (o) {
3566
3569
  if (o = !1, u === "u" || u === "U") {
3567
3570
  let c = e.slice(t, t += u === "u" ? 4 : 8);
3568
- if (!fc.test(c))
3571
+ if (!pc.test(c))
3569
3572
  throw new F("invalid unicode escape", {
3570
3573
  toml: e,
3571
3574
  ptr: s
@@ -3599,7 +3602,7 @@ function Wn(e, t = 0, r = e.length) {
3599
3602
  }
3600
3603
  return a + e.slice(l, r - 1);
3601
3604
  }
3602
- function pc(e, t, r) {
3605
+ function hc(e, t, r) {
3603
3606
  if (e === "true")
3604
3607
  return !0;
3605
3608
  if (e === "false")
@@ -3613,8 +3616,8 @@ function pc(e, t, r) {
3613
3616
  if (e === "-0")
3614
3617
  return 0;
3615
3618
  let n;
3616
- if ((n = lc.test(e)) || cc.test(e)) {
3617
- if (uc.test(e))
3619
+ if ((n = cc.test(e)) || uc.test(e)) {
3620
+ if (fc.test(e))
3618
3621
  throw new F("leading zeroes are not allowed", {
3619
3622
  toml: t,
3620
3623
  ptr: r
@@ -3640,7 +3643,7 @@ function pc(e, t, r) {
3640
3643
  });
3641
3644
  return i;
3642
3645
  }
3643
- function hc(e, t, r, n) {
3646
+ function dc(e, t, r, n) {
3644
3647
  let i = e.slice(t, r), s = i.indexOf("#");
3645
3648
  s > -1 && (ir(e, s), i = i.slice(0, s));
3646
3649
  let o = i.trimEnd();
@@ -3658,7 +3661,7 @@ function hc(e, t, r, n) {
3658
3661
  function or(e, t, r) {
3659
3662
  let n = e[t];
3660
3663
  if (n === "[" || n === "{") {
3661
- let [o, a] = n === "[" ? Ec(e, t) : gc(e, t), l = vn(e, a, ",", r);
3664
+ let [o, a] = n === "[" ? mc(e, t) : Ec(e, t), l = vn(e, a, ",", r);
3662
3665
  if (r === "}") {
3663
3666
  let u = rt(e, a, l);
3664
3667
  if (u > -1)
@@ -3685,18 +3688,18 @@ function or(e, t, r) {
3685
3688
  return [o, i];
3686
3689
  }
3687
3690
  i = vn(e, t, ",", r);
3688
- let s = hc(e, t, i - +(e[i - 1] === ","), r === "]");
3691
+ let s = dc(e, t, i - +(e[i - 1] === ","), r === "]");
3689
3692
  if (!s[0])
3690
3693
  throw new F("incomplete key-value declaration: no value specified", {
3691
3694
  toml: e,
3692
3695
  ptr: t
3693
3696
  });
3694
3697
  return r && s[1] > -1 && (i = ge(e, t + s[1]), i += +(e[i] === ",")), [
3695
- pc(s[0], e, t),
3698
+ hc(s[0], e, t),
3696
3699
  i
3697
3700
  ];
3698
3701
  }
3699
- let dc = /^[a-zA-Z0-9-_]+[ \t]*$/;
3702
+ let gc = /^[a-zA-Z0-9-_]+[ \t]*$/;
3700
3703
  function Mt(e, t, r = "=") {
3701
3704
  let n = t - 1, i = [], s = e.indexOf(r, t);
3702
3705
  if (s < 0)
@@ -3740,7 +3743,7 @@ function Mt(e, t, r = "=") {
3740
3743
  } else {
3741
3744
  n = e.indexOf(".", t);
3742
3745
  let a = e.slice(t, n < 0 || n > s ? s : n);
3743
- if (!dc.test(a))
3746
+ if (!gc.test(a))
3744
3747
  throw new F("only letter, numbers, dashes and underscores are allowed in keys", {
3745
3748
  toml: e,
3746
3749
  ptr: t
@@ -3750,7 +3753,7 @@ function Mt(e, t, r = "=") {
3750
3753
  } while (n + 1 && n < s);
3751
3754
  return [i, ge(e, s + 1, !0, !0)];
3752
3755
  }
3753
- function gc(e, t) {
3756
+ function Ec(e, t) {
3754
3757
  let r = {}, n = /* @__PURE__ */ new Set(), i, s = 0;
3755
3758
  for (t++; (i = e[t++]) !== "}" && i; ) {
3756
3759
  if (i === `
@@ -3800,7 +3803,7 @@ function gc(e, t) {
3800
3803
  });
3801
3804
  return [r, t];
3802
3805
  }
3803
- function Ec(e, t) {
3806
+ function mc(e, t) {
3804
3807
  let r = [], n;
3805
3808
  for (t++; (n = e[t++]) !== "]" && n; ) {
3806
3809
  if (n === ",")
@@ -3851,7 +3854,7 @@ function Rn(e, t, r, n) {
3851
3854
  return null;
3852
3855
  return [o, i, l.c];
3853
3856
  }
3854
- function mc(e) {
3857
+ function $c(e) {
3855
3858
  let t = {}, r = {}, n = t, i = r;
3856
3859
  for (let s = ge(e, 0); s < e.length; ) {
3857
3860
  if (e[s] === "[") {
@@ -3903,9 +3906,9 @@ function mc(e) {
3903
3906
  }
3904
3907
  return t;
3905
3908
  }
3906
- const $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3909
+ const vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3907
3910
  __proto__: null,
3908
3911
  TomlDate: we,
3909
3912
  TomlError: F,
3910
- parse: mc
3913
+ parse: $c
3911
3914
  }, Symbol.toStringTag, { value: "Module" }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "updates",
3
- "version": "16.3.6",
3
+ "version": "16.3.7",
4
4
  "description": "Flexible npm and poetry dependency update tool",
5
5
  "author": "silverwind",
6
6
  "repository": "silverwind/updates",