@byloth/core 2.1.1 → 2.1.2

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/dist/core.esm.js CHANGED
@@ -1844,8 +1844,8 @@ const w = class w {
1844
1844
  for await (const [s, r] of e) {
1845
1845
  const o = t.get(s) ?? 0, l = await n(s, r, o);
1846
1846
  if (l instanceof Array)
1847
- for (const k of l)
1848
- yield [s, k];
1847
+ for (const S of l)
1848
+ yield [s, S];
1849
1849
  else
1850
1850
  yield [s, l];
1851
1851
  t.set(s, o + 1);
@@ -3156,8 +3156,8 @@ const m = class m {
3156
3156
  for (const [s, r] of e) {
3157
3157
  const o = t.get(s) ?? 0, l = n(s, r, o);
3158
3158
  if (l instanceof Array)
3159
- for (const k of l)
3160
- yield [s, k];
3159
+ for (const S of l)
3160
+ yield [s, S];
3161
3161
  else
3162
3162
  yield [s, l];
3163
3163
  t.set(s, o + 1);
@@ -3945,8 +3945,8 @@ class ut extends (ve = Qe, xe = Symbol.toStringTag, ve) {
3945
3945
  this._key !== e && (this._key = e, this._isEnabled && (this._callback = this._callbacks.get(e)));
3946
3946
  }
3947
3947
  }
3948
- var ke, Se;
3949
- class ct extends (Se = Map, ke = Symbol.toStringTag, Se) {
3948
+ var Se, ke;
3949
+ class ct extends (ke = Map, Se = Symbol.toStringTag, ke) {
3950
3950
  /**
3951
3951
  * Initializes a new instance of the {@link MapView} class.
3952
3952
  *
@@ -3967,7 +3967,7 @@ class ct extends (Se = Map, ke = Symbol.toStringTag, Se) {
3967
3967
  * The internal {@link Publisher} instance used to publish events.
3968
3968
  */
3969
3969
  a(this, "_publisher");
3970
- a(this, ke, "MapView");
3970
+ a(this, Se, "MapView");
3971
3971
  if (this._publisher = new v(), e)
3972
3972
  for (const [t, s] of e)
3973
3973
  this.set(t, s);
@@ -4019,8 +4019,8 @@ class ct extends (Se = Map, ke = Symbol.toStringTag, Se) {
4019
4019
  * @returns `true` if the entry existed and has been removed; otherwise `false` if the entry doesn't exist.
4020
4020
  */
4021
4021
  delete(e) {
4022
- const t = super.delete(e);
4023
- return t && this._publisher.publish("entry:remove", e), t;
4022
+ const t = this.get(e);
4023
+ return t === void 0 ? !1 : (super.delete(e), this._publisher.publish("entry:remove", e, t), !0);
4024
4024
  }
4025
4025
  /**
4026
4026
  * Removes all entries from the {@link Map}.
@@ -4697,9 +4697,9 @@ const R = class R {
4697
4697
  return this._promise.finally(n);
4698
4698
  }
4699
4699
  };
4700
- let S = R;
4700
+ let k = R;
4701
4701
  var Fe, Pe;
4702
- class Ze extends (Pe = S, Fe = Symbol.toStringTag, Pe) {
4702
+ class Ze extends (Pe = k, Fe = Symbol.toStringTag, Pe) {
4703
4703
  /**
4704
4704
  * Initializes a new instance of the {@link DeferredPromise} class.
4705
4705
  *
@@ -4774,7 +4774,7 @@ class Ze extends (Pe = S, Fe = Symbol.toStringTag, Pe) {
4774
4774
  }
4775
4775
  }
4776
4776
  var Ce, je;
4777
- class dt extends (je = S, Ce = Symbol.toStringTag, je) {
4777
+ class dt extends (je = k, Ce = Symbol.toStringTag, je) {
4778
4778
  /**
4779
4779
  * Initializes a new instance of the {@link TimedPromise} class.
4780
4780
  *
@@ -5452,13 +5452,13 @@ function xt() {
5452
5452
  function vt() {
5453
5453
  return new Promise((i) => setTimeout(i));
5454
5454
  }
5455
- function kt(i, n = "text/javascript") {
5455
+ function St(i, n = "text/javascript") {
5456
5456
  return new Promise((e, t) => {
5457
5457
  const s = document.createElement("script");
5458
5458
  s.async = !0, s.defer = !0, s.src = i, s.type = n, s.onload = (r) => e(), s.onerror = (r) => t(r), document.body.appendChild(s);
5459
5459
  });
5460
5460
  }
5461
- function St(...i) {
5461
+ function kt(...i) {
5462
5462
  return new u(function* () {
5463
5463
  for (const n of i)
5464
5464
  for (const e of n)
@@ -5557,7 +5557,7 @@ function jt(i) {
5557
5557
  function It(i) {
5558
5558
  return `${i.charAt(0).toUpperCase()}${i.slice(1)}`;
5559
5559
  }
5560
- const At = "2.1.1";
5560
+ const At = "2.1.2";
5561
5561
  export {
5562
5562
  E as AggregatedAsyncIterator,
5563
5563
  x as AggregatedIterator,
@@ -5588,7 +5588,7 @@ export {
5588
5588
  ht as SetView,
5589
5589
  f as SmartAsyncIterator,
5590
5590
  u as SmartIterator,
5591
- S as SmartPromise,
5591
+ k as SmartPromise,
5592
5592
  ut as SwitchableCallback,
5593
5593
  M as TimeUnit,
5594
5594
  dt as TimedPromise,
@@ -5599,7 +5599,7 @@ export {
5599
5599
  We as WeekDay,
5600
5600
  Pt as average,
5601
5601
  It as capitalize,
5602
- St as chain,
5602
+ kt as chain,
5603
5603
  Tt as count,
5604
5604
  wt as dateDifference,
5605
5605
  mt as dateRange,
@@ -5611,7 +5611,7 @@ export {
5611
5611
  De as isBrowser,
5612
5612
  nt as isNode,
5613
5613
  st as isWorker,
5614
- kt as loadScript,
5614
+ St as loadScript,
5615
5615
  xt as nextAnimationFrame,
5616
5616
  Mt as range,
5617
5617
  Rt as shuffle,