dsh-unlag 1.9.74 → 1.9.75

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.
Files changed (2) hide show
  1. package/client.js +21 -2
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -400,8 +400,27 @@ window.__ModuleLoader__.load({
400
400
  // The frozen list decides what this document boots. Without the current plugin list there
401
401
  // is nothing to prove every plugin in it still exists, so the page is not rebuilt.
402
402
  if (live === null) return held('graph');
403
- const kept = Array.isArray(frozen.entries) ? frozen.entries : [];
404
- const liveIds = new Set((Array.isArray(live.entries) ? live.entries : []).map((entry) => (typeof entry === 'string' ? entry : entry?.id)));
403
+ // Both lists come from outside this function: the saved one from the shell, the current one
404
+ // from the app. One that cannot be read leaves the comparison unanswered, and each names
405
+ // itself rather than the page.
406
+ let kept = [];
407
+ try {
408
+ kept = Array.isArray(frozen.entries) ? frozen.entries : [];
409
+ } catch {
410
+ return held('list');
411
+ }
412
+ let liveEntries = [];
413
+ try {
414
+ liveEntries = Array.isArray(live.entries) ? live.entries : [];
415
+ } catch {
416
+ return held('graph');
417
+ }
418
+ const liveIds = new Set();
419
+ try {
420
+ for (const entry of liveEntries) liveIds.add(typeof entry === 'string' ? entry : entry?.id);
421
+ } catch {
422
+ return held('graph');
423
+ }
405
424
  let vanished = false;
406
425
  for (const entry of kept) {
407
426
  const id = typeof entry === 'string' ? entry : entry?.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.74",
3
+ "version": "1.9.75",
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",