dsh-unlag 1.9.76 → 1.9.77

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/index.js +7 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1616,6 +1616,13 @@ function parseAsScript(body, name) {
1616
1616
  * @param rows the startup script addresses, as the next document would request them.
1617
1617
  */
1618
1618
  export async function verifyStartupRows(graph, fetchBody, rows, budgetMs = MAX_VERIFY_MS) {
1619
+ // A startup list is checked against the plugin set, so a set that cannot be read at all leaves
1620
+ // nothing to check against: approving anyway would vouch for addresses nothing backs, and the
1621
+ // next document would die on the first one that answers 404. An empty set is still a readable
1622
+ // one — a row it no longer names is served from the retained bundle and reported as left out.
1623
+ if (graph === null || typeof graph !== 'object' || !Array.isArray(graph.entries)) {
1624
+ return { status: 'blocked', reason: 'list', detail: 'the plugin list cannot be read, so no startup row can be checked against it' }
1625
+ }
1619
1626
  const entries = new Map(
1620
1627
  (Array.isArray(graph?.entries) ? graph.entries : [])
1621
1628
  .filter((row) => typeof row?.id === 'string' && row.id !== '')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.76",
3
+ "version": "1.9.77",
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",