@prosopo/client-example-server 2.7.12 → 2.7.13

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # @prosopo/client-example-server
2
2
 
3
+ ## 2.7.13
4
+ ### Patch Changes
5
+
6
+ - @prosopo/server@2.9.9
7
+
3
8
  ## 2.7.12
4
9
  ### Patch Changes
5
10
 
@@ -29426,7 +29426,7 @@ function A1() {
29426
29426
  const S = h(g), E = a++;
29427
29427
  i(m, E, g), u[m] = E, c[E] = g, f[E] = S, o[E] = new RegExp(g, b ? "g" : void 0), l[E] = new RegExp(S, b ? "g" : void 0);
29428
29428
  };
29429
- y("NUMERICIDENTIFIER", "0|[1-9]\\d*"), y("NUMERICIDENTIFIERLOOSE", "\\d+"), y("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${d}*`), y("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), y("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), y("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), y("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), y("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), y("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), y("BUILDIDENTIFIER", `${d}+`), y("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), y("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), y("FULL", `^${c[u.FULLPLAIN]}$`), y("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), y("LOOSE", `^${c[u.LOOSEPLAIN]}$`), y("GTLT", "((?:<|>)?=?)"), y("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), y("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), y("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), y("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), y("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), y("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), y("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), y("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), y("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), y("COERCERTL", c[u.COERCE], !0), y("COERCERTLFULL", c[u.COERCEFULL], !0), y("LONETILDE", "(?:~>?)"), y("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", y("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), y("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), y("LONECARET", "(?:\\^)"), y("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", y("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), y("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), y("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), y("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), y("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", y("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), y("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), y("STAR", "(<|>)?=?\\s*\\*"), y("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), y("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
29429
+ y("NUMERICIDENTIFIER", "0|[1-9]\\d*"), y("NUMERICIDENTIFIERLOOSE", "\\d+"), y("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${d}*`), y("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), y("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), y("PRERELEASEIDENTIFIER", `(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`), y("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`), y("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), y("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), y("BUILDIDENTIFIER", `${d}+`), y("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), y("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), y("FULL", `^${c[u.FULLPLAIN]}$`), y("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), y("LOOSE", `^${c[u.LOOSEPLAIN]}$`), y("GTLT", "((?:<|>)?=?)"), y("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), y("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), y("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), y("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), y("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), y("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), y("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), y("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), y("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), y("COERCERTL", c[u.COERCE], !0), y("COERCERTLFULL", c[u.COERCEFULL], !0), y("LONETILDE", "(?:~>?)"), y("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", y("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), y("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), y("LONECARET", "(?:\\^)"), y("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", y("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), y("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), y("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), y("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), y("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", y("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), y("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), y("STAR", "(<|>)?=?\\s*\\*"), y("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), y("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
29430
29430
  }(Jy, Jy.exports)), Jy.exports;
29431
29431
  }
29432
29432
  var ww, p5;
@@ -29453,37 +29453,37 @@ var Ow, y5;
29453
29453
  function Ci() {
29454
29454
  if (y5) return Ow;
29455
29455
  y5 = 1;
29456
- const e = /* @__PURE__ */ I_(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: r } = /* @__PURE__ */ R_(), { safeRe: n, t: s } = /* @__PURE__ */ A1(), i = /* @__PURE__ */ MP(), { compareIdentifiers: o } = /* @__PURE__ */ Kie();
29457
- class l {
29458
- constructor(f, u) {
29459
- if (u = i(u), f instanceof l) {
29460
- if (f.loose === !!u.loose && f.includePrerelease === !!u.includePrerelease)
29461
- return f;
29462
- f = f.version;
29463
- } else if (typeof f != "string")
29464
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof f}".`);
29465
- if (f.length > t)
29456
+ const e = /* @__PURE__ */ I_(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: r } = /* @__PURE__ */ R_(), { safeRe: n, safeSrc: s, t: i } = /* @__PURE__ */ A1(), o = /* @__PURE__ */ MP(), { compareIdentifiers: l } = /* @__PURE__ */ Kie();
29457
+ class c {
29458
+ constructor(u, a) {
29459
+ if (a = o(a), u instanceof c) {
29460
+ if (u.loose === !!a.loose && u.includePrerelease === !!a.includePrerelease)
29461
+ return u;
29462
+ u = u.version;
29463
+ } else if (typeof u != "string")
29464
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);
29465
+ if (u.length > t)
29466
29466
  throw new TypeError(
29467
29467
  `version is longer than ${t} characters`
29468
29468
  );
29469
- e("SemVer", f, u), this.options = u, this.loose = !!u.loose, this.includePrerelease = !!u.includePrerelease;
29470
- const a = f.trim().match(u.loose ? n[s.LOOSE] : n[s.FULL]);
29471
- if (!a)
29472
- throw new TypeError(`Invalid Version: ${f}`);
29473
- if (this.raw = f, this.major = +a[1], this.minor = +a[2], this.patch = +a[3], this.major > r || this.major < 0)
29469
+ e("SemVer", u, a), this.options = a, this.loose = !!a.loose, this.includePrerelease = !!a.includePrerelease;
29470
+ const d = u.trim().match(a.loose ? n[i.LOOSE] : n[i.FULL]);
29471
+ if (!d)
29472
+ throw new TypeError(`Invalid Version: ${u}`);
29473
+ if (this.raw = u, this.major = +d[1], this.minor = +d[2], this.patch = +d[3], this.major > r || this.major < 0)
29474
29474
  throw new TypeError("Invalid major version");
29475
29475
  if (this.minor > r || this.minor < 0)
29476
29476
  throw new TypeError("Invalid minor version");
29477
29477
  if (this.patch > r || this.patch < 0)
29478
29478
  throw new TypeError("Invalid patch version");
29479
- a[4] ? this.prerelease = a[4].split(".").map((d) => {
29480
- if (/^[0-9]+$/.test(d)) {
29481
- const p = +d;
29482
- if (p >= 0 && p < r)
29483
- return p;
29479
+ d[4] ? this.prerelease = d[4].split(".").map((p) => {
29480
+ if (/^[0-9]+$/.test(p)) {
29481
+ const h = +p;
29482
+ if (h >= 0 && h < r)
29483
+ return h;
29484
29484
  }
29485
- return d;
29486
- }) : this.prerelease = [], this.build = a[5] ? a[5].split(".") : [], this.format();
29485
+ return p;
29486
+ }) : this.prerelease = [], this.build = d[5] ? d[5].split(".") : [], this.format();
29487
29487
  }
29488
29488
  format() {
29489
29489
  return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
@@ -29491,80 +29491,80 @@ function Ci() {
29491
29491
  toString() {
29492
29492
  return this.version;
29493
29493
  }
29494
- compare(f) {
29495
- if (e("SemVer.compare", this.version, this.options, f), !(f instanceof l)) {
29496
- if (typeof f == "string" && f === this.version)
29494
+ compare(u) {
29495
+ if (e("SemVer.compare", this.version, this.options, u), !(u instanceof c)) {
29496
+ if (typeof u == "string" && u === this.version)
29497
29497
  return 0;
29498
- f = new l(f, this.options);
29498
+ u = new c(u, this.options);
29499
29499
  }
29500
- return f.version === this.version ? 0 : this.compareMain(f) || this.comparePre(f);
29500
+ return u.version === this.version ? 0 : this.compareMain(u) || this.comparePre(u);
29501
29501
  }
29502
- compareMain(f) {
29503
- return f instanceof l || (f = new l(f, this.options)), o(this.major, f.major) || o(this.minor, f.minor) || o(this.patch, f.patch);
29502
+ compareMain(u) {
29503
+ return u instanceof c || (u = new c(u, this.options)), l(this.major, u.major) || l(this.minor, u.minor) || l(this.patch, u.patch);
29504
29504
  }
29505
- comparePre(f) {
29506
- if (f instanceof l || (f = new l(f, this.options)), this.prerelease.length && !f.prerelease.length)
29505
+ comparePre(u) {
29506
+ if (u instanceof c || (u = new c(u, this.options)), this.prerelease.length && !u.prerelease.length)
29507
29507
  return -1;
29508
- if (!this.prerelease.length && f.prerelease.length)
29508
+ if (!this.prerelease.length && u.prerelease.length)
29509
29509
  return 1;
29510
- if (!this.prerelease.length && !f.prerelease.length)
29510
+ if (!this.prerelease.length && !u.prerelease.length)
29511
29511
  return 0;
29512
- let u = 0;
29512
+ let a = 0;
29513
29513
  do {
29514
- const a = this.prerelease[u], d = f.prerelease[u];
29515
- if (e("prerelease compare", u, a, d), a === void 0 && d === void 0)
29514
+ const d = this.prerelease[a], p = u.prerelease[a];
29515
+ if (e("prerelease compare", a, d, p), d === void 0 && p === void 0)
29516
29516
  return 0;
29517
- if (d === void 0)
29517
+ if (p === void 0)
29518
29518
  return 1;
29519
- if (a === void 0)
29519
+ if (d === void 0)
29520
29520
  return -1;
29521
- if (a === d)
29521
+ if (d === p)
29522
29522
  continue;
29523
- return o(a, d);
29524
- } while (++u);
29523
+ return l(d, p);
29524
+ } while (++a);
29525
29525
  }
29526
- compareBuild(f) {
29527
- f instanceof l || (f = new l(f, this.options));
29528
- let u = 0;
29526
+ compareBuild(u) {
29527
+ u instanceof c || (u = new c(u, this.options));
29528
+ let a = 0;
29529
29529
  do {
29530
- const a = this.build[u], d = f.build[u];
29531
- if (e("build compare", u, a, d), a === void 0 && d === void 0)
29530
+ const d = this.build[a], p = u.build[a];
29531
+ if (e("build compare", a, d, p), d === void 0 && p === void 0)
29532
29532
  return 0;
29533
- if (d === void 0)
29533
+ if (p === void 0)
29534
29534
  return 1;
29535
- if (a === void 0)
29535
+ if (d === void 0)
29536
29536
  return -1;
29537
- if (a === d)
29537
+ if (d === p)
29538
29538
  continue;
29539
- return o(a, d);
29540
- } while (++u);
29539
+ return l(d, p);
29540
+ } while (++a);
29541
29541
  }
29542
29542
  // preminor will bump the version up to the next minor release, and immediately
29543
29543
  // down to pre-release. premajor and prepatch work the same way.
29544
- inc(f, u, a) {
29545
- if (f.startsWith("pre")) {
29546
- if (!u && a === !1)
29544
+ inc(u, a, d) {
29545
+ if (u.startsWith("pre")) {
29546
+ if (!a && d === !1)
29547
29547
  throw new Error("invalid increment argument: identifier is empty");
29548
- if (u) {
29549
- const d = `-${u}`.match(this.options.loose ? n[s.PRERELEASELOOSE] : n[s.PRERELEASE]);
29550
- if (!d || d[1] !== u)
29551
- throw new Error(`invalid identifier: ${u}`);
29548
+ if (a) {
29549
+ const p = new RegExp(`^${this.options.loose ? s[i.PRERELEASELOOSE] : s[i.PRERELEASE]}$`), h = `-${a}`.match(p);
29550
+ if (!h || h[1] !== a)
29551
+ throw new Error(`invalid identifier: ${a}`);
29552
29552
  }
29553
29553
  }
29554
- switch (f) {
29554
+ switch (u) {
29555
29555
  case "premajor":
29556
- this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", u, a);
29556
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", a, d);
29557
29557
  break;
29558
29558
  case "preminor":
29559
- this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", u, a);
29559
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", a, d);
29560
29560
  break;
29561
29561
  case "prepatch":
29562
- this.prerelease.length = 0, this.inc("patch", u, a), this.inc("pre", u, a);
29562
+ this.prerelease.length = 0, this.inc("patch", a, d), this.inc("pre", a, d);
29563
29563
  break;
29564
29564
  // If the input is a non-prerelease version, this acts the same as
29565
29565
  // prepatch.
29566
29566
  case "prerelease":
29567
- this.prerelease.length === 0 && this.inc("patch", u, a), this.inc("pre", u, a);
29567
+ this.prerelease.length === 0 && this.inc("patch", a, d), this.inc("pre", a, d);
29568
29568
  break;
29569
29569
  case "release":
29570
29570
  if (this.prerelease.length === 0)
@@ -29583,32 +29583,32 @@ function Ci() {
29583
29583
  // This probably shouldn't be used publicly.
29584
29584
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
29585
29585
  case "pre": {
29586
- const d = Number(a) ? 1 : 0;
29586
+ const p = Number(d) ? 1 : 0;
29587
29587
  if (this.prerelease.length === 0)
29588
- this.prerelease = [d];
29588
+ this.prerelease = [p];
29589
29589
  else {
29590
- let p = this.prerelease.length;
29591
- for (; --p >= 0; )
29592
- typeof this.prerelease[p] == "number" && (this.prerelease[p]++, p = -2);
29593
- if (p === -1) {
29594
- if (u === this.prerelease.join(".") && a === !1)
29590
+ let h = this.prerelease.length;
29591
+ for (; --h >= 0; )
29592
+ typeof this.prerelease[h] == "number" && (this.prerelease[h]++, h = -2);
29593
+ if (h === -1) {
29594
+ if (a === this.prerelease.join(".") && d === !1)
29595
29595
  throw new Error("invalid increment argument: identifier already exists");
29596
- this.prerelease.push(d);
29596
+ this.prerelease.push(p);
29597
29597
  }
29598
29598
  }
29599
- if (u) {
29600
- let p = [u, d];
29601
- a === !1 && (p = [u]), o(this.prerelease[0], u) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = p) : this.prerelease = p;
29599
+ if (a) {
29600
+ let h = [a, p];
29601
+ d === !1 && (h = [a]), l(this.prerelease[0], a) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = h) : this.prerelease = h;
29602
29602
  }
29603
29603
  break;
29604
29604
  }
29605
29605
  default:
29606
- throw new Error(`invalid increment argument: ${f}`);
29606
+ throw new Error(`invalid increment argument: ${u}`);
29607
29607
  }
29608
29608
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
29609
29609
  }
29610
29610
  }
29611
- return Ow = l, Ow;
29611
+ return Ow = c, Ow;
29612
29612
  }
29613
29613
  var Cw, g5;
29614
29614
  function Jl() {
@@ -70242,7 +70242,7 @@ function Bae() {
70242
70242
  if (DV) return cT;
70243
70243
  DV = 1;
70244
70244
  function e(t) {
70245
- n.debug = n, n.default = n, n.coerce = f, n.disable = l, n.enable = i, n.enabled = c, n.humanize = /* @__PURE__ */ C1(), n.destroy = u, Object.keys(t).forEach((a) => {
70245
+ n.debug = n, n.default = n, n.coerce = f, n.disable = o, n.enable = i, n.enabled = l, n.humanize = /* @__PURE__ */ C1(), n.destroy = u, Object.keys(t).forEach((a) => {
70246
70246
  n[a] = t[a];
70247
70247
  }), n.names = [], n.skips = [], n.formatters = {};
70248
70248
  function r(a) {
@@ -70287,39 +70287,33 @@ function Bae() {
70287
70287
  }
70288
70288
  function i(a) {
70289
70289
  n.save(a), n.namespaces = a, n.names = [], n.skips = [];
70290
- const d = (typeof a == "string" ? a : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
70291
- for (const p of d)
70292
- p[0] === "-" ? n.skips.push(p.slice(1)) : n.names.push(p);
70293
- }
70294
- function o(a, d) {
70295
- let p = 0, h = 0, y = -1, m = 0;
70296
- for (; p < a.length; )
70297
- if (h < d.length && (d[h] === a[p] || d[h] === "*"))
70298
- d[h] === "*" ? (y = h, m = p, h++) : (p++, h++);
70299
- else if (y !== -1)
70300
- h = y + 1, m++, p = m;
70301
- else
70302
- return !1;
70303
- for (; h < d.length && d[h] === "*"; )
70304
- h++;
70305
- return h === d.length;
70290
+ let d;
70291
+ const p = (typeof a == "string" ? a : "").split(/[\s,]+/), h = p.length;
70292
+ for (d = 0; d < h; d++)
70293
+ p[d] && (a = p[d].replace(/\*/g, ".*?"), a[0] === "-" ? n.skips.push(new RegExp("^" + a.slice(1) + "$")) : n.names.push(new RegExp("^" + a + "$")));
70306
70294
  }
70307
- function l() {
70295
+ function o() {
70308
70296
  const a = [
70309
- ...n.names,
70310
- ...n.skips.map((d) => "-" + d)
70297
+ ...n.names.map(c),
70298
+ ...n.skips.map(c).map((d) => "-" + d)
70311
70299
  ].join(",");
70312
70300
  return n.enable(""), a;
70313
70301
  }
70314
- function c(a) {
70315
- for (const d of n.skips)
70316
- if (o(a, d))
70302
+ function l(a) {
70303
+ if (a[a.length - 1] === "*")
70304
+ return !0;
70305
+ let d, p;
70306
+ for (d = 0, p = n.skips.length; d < p; d++)
70307
+ if (n.skips[d].test(a))
70317
70308
  return !1;
70318
- for (const d of n.names)
70319
- if (o(a, d))
70309
+ for (d = 0, p = n.names.length; d < p; d++)
70310
+ if (n.names[d].test(a))
70320
70311
  return !0;
70321
70312
  return !1;
70322
70313
  }
70314
+ function c(a) {
70315
+ return a.toString().substring(2, a.toString().length - 2).replace(/\.\*\?$/, "*");
70316
+ }
70323
70317
  function f(a) {
70324
70318
  return a instanceof Error ? a.stack || a.message : a;
70325
70319
  }
@@ -70449,7 +70443,7 @@ function eOe() {
70449
70443
  function i() {
70450
70444
  let c;
70451
70445
  try {
70452
- c = t.storage.getItem("debug") || t.storage.getItem("DEBUG");
70446
+ c = t.storage.getItem("debug");
70453
70447
  } catch {
70454
70448
  }
70455
70449
  return !c && typeof process < "u" && "env" in process && (c = process.env.DEBUG), c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/client-example-server",
3
- "version": "2.7.12",
3
+ "version": "2.7.13",
4
4
  "description": "Backend for client-example",
5
5
  "main": "dist/app.js",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "@polkadot/util-crypto": "12.6.2",
35
35
  "@prosopo/common": "3.0.2",
36
36
  "@prosopo/dotenv": "3.0.4",
37
- "@prosopo/server": "2.9.8",
37
+ "@prosopo/server": "2.9.9",
38
38
  "@prosopo/types": "3.0.3",
39
39
  "@prosopo/util": "3.0.2",
40
40
  "@typegoose/auto-increment": "4.13.0",