@genome-spy/app 0.69.0 → 0.70.0

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.
@@ -41,7 +41,7 @@ class b {
41
41
  e(t);
42
42
  }
43
43
  }
44
- class c {
44
+ class l {
45
45
  constructor({ fill: t, cache: e }) {
46
46
  if (typeof t != "function")
47
47
  throw new TypeError("must pass a fill function");
@@ -90,7 +90,7 @@ class c {
90
90
  }
91
91
  static checkSinglePromise(t, e) {
92
92
  function r() {
93
- if (e != null && e.aborted)
93
+ if (e?.aborted)
94
94
  throw Object.assign(new Error("aborted"), { code: "ERR_ABORTED" });
95
95
  }
96
96
  return t.then((s) => (r(), s), (s) => {
@@ -116,7 +116,7 @@ class c {
116
116
  if (!r && e instanceof AbortSignal)
117
117
  throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");
118
118
  const o = this.cache.get(t);
119
- return o ? o.aborted && !o.settled ? (this.evict(t, o), this.get(t, e, r, s)) : o.settled ? o.promise : (o.aborter.addSignal(r), o.statusReporter.addCallback(s), c.checkSinglePromise(o.promise, r)) : (this.fill(t, e, r, s), c.checkSinglePromise(
119
+ return o ? o.aborted && !o.settled ? (this.evict(t, o), this.get(t, e, r, s)) : o.settled ? o.promise : (o.aborter.addSignal(r), o.statusReporter.addCallback(s), l.checkSinglePromise(o.promise, r)) : (this.fill(t, e, r, s), l.checkSinglePromise(
120
120
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
121
121
  this.cache.get(t).promise,
122
122
  r
@@ -145,5 +145,5 @@ class c {
145
145
  }
146
146
  }
147
147
  export {
148
- c as A
148
+ l as A
149
149
  };