dsh-unlag 1.9.19 → 1.9.20
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/client.js +19 -1
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -634,7 +634,25 @@ window.__ModuleLoader__.load({
|
|
|
634
634
|
// A replacement that did not finish stops the press here: rebuilding the page anyway would
|
|
635
635
|
// start a document against a plugin set the app has not finished applying.
|
|
636
636
|
if (replace) {
|
|
637
|
-
|
|
637
|
+
/**
|
|
638
|
+
* The answer to a replacement can be lost while the set is being recomposed, which reads
|
|
639
|
+
* as a failure even though the plugins did change. The startup list says which set is
|
|
640
|
+
* serving now, so a lost answer is checked against it before the press claims to fail.
|
|
641
|
+
*/
|
|
642
|
+
const before = await hostBootGraph();
|
|
643
|
+
const revBefore = typeof before?.rev === 'string' ? before.rev : null;
|
|
644
|
+
let status = await withTimeout(replacePlugins()).catch(() => 'failed');
|
|
645
|
+
if (status === 'failed' && revBefore !== null) {
|
|
646
|
+
for (const wait of [400, 900, 1800]) { // ui-copy-ignore
|
|
647
|
+
await new Promise((resolve) => setTimeout(resolve, wait));
|
|
648
|
+
const after = await hostBootGraph();
|
|
649
|
+
const revNow = typeof after?.rev === 'string' ? after.rev : null;
|
|
650
|
+
if (revNow !== null && revNow !== revBefore) {
|
|
651
|
+
status = 'done';
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
638
656
|
if (status !== 'done' && status !== 'off') {
|
|
639
657
|
const key =
|
|
640
658
|
status === 'queued'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A press applies plugin edits right away and brings a laggy interface back; automatic reloading stays off unless you turn it on, so the press is the only trigger, and nothing restarts.",
|
|
6
6
|
"license": "MIT",
|