dsh-unlag 1.9.71 → 1.9.72
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 +23 -6
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -270,8 +270,16 @@ window.__ModuleLoader__.load({
|
|
|
270
270
|
/** Read every bundle the next boot would load and prove each listed plugin is inside. */
|
|
271
271
|
async function bundlesCoverStartup(graph) {
|
|
272
272
|
if (graph === null || typeof graph !== 'object') return held('graph');
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
// The list is a live object the app re-composes: reading its fields can fail mid-swap, and a
|
|
274
|
+
// list that cannot be read is a held press, not a broken page.
|
|
275
|
+
let entries = [];
|
|
276
|
+
let batches = [];
|
|
277
|
+
try {
|
|
278
|
+
entries = Array.isArray(graph.entries) ? graph.entries : [];
|
|
279
|
+
batches = Array.isArray(graph.batches) ? graph.batches : [];
|
|
280
|
+
} catch {
|
|
281
|
+
return held('graph');
|
|
282
|
+
}
|
|
275
283
|
if (entries.length === 0 || batches.length === 0) return held('graph');
|
|
276
284
|
const covered = new Set();
|
|
277
285
|
const sources = [];
|
|
@@ -507,10 +515,19 @@ window.__ModuleLoader__.load({
|
|
|
507
515
|
if (saved === null && desktopShellPresent()) {
|
|
508
516
|
held('list');
|
|
509
517
|
} else {
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
518
|
+
// The document's own boot value is a page value: one that cannot be read leaves the list
|
|
519
|
+
// unread rather than turning a held press into a broken-page notice.
|
|
520
|
+
let own = null;
|
|
521
|
+
try {
|
|
522
|
+
own = window.__DSH_BOOT__ ?? null;
|
|
523
|
+
} catch {
|
|
524
|
+
own = null;
|
|
525
|
+
}
|
|
526
|
+
const fromHost = saved === null ? await servedBootGraph() : null;
|
|
527
|
+
let servable = false;
|
|
528
|
+
if (saved !== null) servable = await frozenStartupLooksServable(saved);
|
|
529
|
+
else if (fromHost === null && own === null) held('list');
|
|
530
|
+
else servable = await bundlesCoverStartup(fromHost ?? own);
|
|
514
531
|
if (servable) return true;
|
|
515
532
|
}
|
|
516
533
|
if (attempt < 2) await new Promise((resolve) => setTimeout(resolve, 300 + attempt * 300)); // ui-copy-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.72",
|
|
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",
|