@danxbot/ui 20.12.1 → 20.12.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/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/types/lib/paged-window/store.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46227,13 +46227,20 @@ class q8 {
|
|
|
46227
46227
|
);
|
|
46228
46228
|
}
|
|
46229
46229
|
settle(t, n, r) {
|
|
46230
|
-
|
|
46231
|
-
|
|
46232
|
-
|
|
46230
|
+
const o = this.held.get(t);
|
|
46231
|
+
if (!(!o || o.token !== n)) {
|
|
46232
|
+
if (this.frozen) {
|
|
46233
|
+
this.heldAnswers.push(() => this.applyPage(t, n, r));
|
|
46234
|
+
return;
|
|
46235
|
+
}
|
|
46236
|
+
this.applyPage(t, n, r), this.sync();
|
|
46233
46237
|
}
|
|
46234
|
-
this.applyPage(t, n, r), this.sync();
|
|
46235
46238
|
}
|
|
46236
|
-
/**
|
|
46239
|
+
/**
|
|
46240
|
+
* Record an answer on its page — no window change, no notification: callers
|
|
46241
|
+
* sync once. Re-checks the token because a held answer is replayed on thaw,
|
|
46242
|
+
* after which its request may have been abandoned.
|
|
46243
|
+
*/
|
|
46237
46244
|
applyPage(t, n, r) {
|
|
46238
46245
|
const o = this.held.get(t);
|
|
46239
46246
|
if (!(!o || o.token !== n)) {
|