dsh-unlag 1.9.69 → 1.9.70

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 +8 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1913,8 +1913,14 @@ function serveButton(ctx, controller, config) {
1913
1913
  } catch {}
1914
1914
  const params = new URLSearchParams(query)
1915
1915
  const event = params.get('event') ?? ''
1916
- // A query comes from outside: one shaped gate keeps a forged line out of the log.
1917
- const gate = (params.get('gate') ?? '').replace(/[^a-z-]/gu, '').slice(0, 24)
1916
+ // A query comes from outside: one shaped gate keeps a forged line out of the log. A press
1917
+ // that got a plugin set applied and then stopped says which two things happened
1918
+ // (`applied:<gate>`); keeping the two apart is what makes the line say what stopped it.
1919
+ const askedGate = (params.get('gate') ?? '').replace(/[^a-z:]/gu, '').slice(0, 32)
1920
+ const gate = askedGate
1921
+ .split(':')
1922
+ .filter((part) => part !== '')
1923
+ .join(' then ')
1918
1924
  // Which generation of the page came up. A rebuild that lands on older bytes then says so.
1919
1925
  const pageRev = (params.get('rev') ?? '').replace(/[^a-z0-9]/gu, '').slice(0, 24)
1920
1926
  const from = pageRev === '' ? '' : ` (page ${pageRev})`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-unlag",
3
- "version": "1.9.69",
3
+ "version": "1.9.70",
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",