dsh-unlag 1.9.43 → 1.9.44

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 +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1504,6 +1504,10 @@ export async function verifyStartupRows(graph, fetchBody, rows, budgetMs = MAX_V
1504
1504
  }
1505
1505
  const path = row.includes('://') ? row.replace(/^[a-z]+:\/\/[^/]+/iu, '') : row
1506
1506
  const url = path.startsWith('/') ? path : `/${path.replace(/^\.?\//u, '')}`
1507
+ // A list can name the same address more than once, and one address can be most of a profile's
1508
+ // bytes: read each address once so a repeated row cannot make one check read the profile's
1509
+ // scripts tens of times.
1510
+ if (wanted.some((entry) => entry.url === url)) continue
1507
1511
  const request = bundleRequest(url)
1508
1512
  wanted.push({ url, ids: request === null ? [] : request.ids })
1509
1513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.43",
3
+ "version": "1.9.44",
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",