dsh-unlag 1.9.81 → 1.9.83

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 +12 -3
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -299,6 +299,9 @@ window.__ModuleLoader__.load({
299
299
  } catch {
300
300
  return held('graph');
301
301
  }
302
+ // A profile with no plugin at all hands the next document no script to load: a rebuild has
303
+ // nothing to fail, and holding would refuse it with a reason that is not true.
304
+ if (entries.length === 0 && batches.length === 0) return true;
302
305
  if (entries.length === 0 || batches.length === 0) return held('graph');
303
306
  const covered = new Set();
304
307
  const sources = [];
@@ -363,8 +366,10 @@ window.__ModuleLoader__.load({
363
366
  if (bridge === undefined || bridge === null || typeof bridge.ready !== 'function') return null;
364
367
  try {
365
368
  const payload = await withTimeout(bridge.ready(), 8000);
366
- const rows = Array.isArray(payload?.injections) ? payload.injections : [];
367
- return rows.length === 0 ? null : rows;
369
+ // An empty list is still an answer: a document booting from it loads no plugin script, so
370
+ // nothing about it can fail. Only a shape that names no list at all stays unread.
371
+ const rows = Array.isArray(payload?.injections) ? payload.injections : null;
372
+ return rows;
368
373
  } catch {
369
374
  return null;
370
375
  }
@@ -590,7 +595,11 @@ window.__ModuleLoader__.load({
590
595
  }
591
596
  const fromHost = saved === null ? await servedBootGraph() : null;
592
597
  let servable = false;
593
- if (saved !== null) servable = await frozenStartupLooksServable(saved);
598
+ if (saved !== null && saved.length === 0) {
599
+ // A shell whose saved list names no script hands the next document nothing to load, so
600
+ // a rebuild has no script to fail: holding here would be a refusal with no reason.
601
+ servable = true;
602
+ } else if (saved !== null) servable = await frozenStartupLooksServable(saved);
594
603
  else if (fromHost === null && own === null) held('list');
595
604
  else servable = await bundlesCoverStartup(fromHost ?? own);
596
605
  if (servable) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.81",
3
+ "version": "1.9.83",
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",