dsh-unlag 1.9.11 → 1.9.12
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.
- package/index.js +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1437,7 +1437,13 @@ function serveButton(ctx, controller, config) {
|
|
|
1437
1437
|
[
|
|
1438
1438
|
`${BASE_PATH}/state`,
|
|
1439
1439
|
(_req, res) => {
|
|
1440
|
-
|
|
1440
|
+
// A disposed context answers with a status instead of a throw the server has to guess at.
|
|
1441
|
+
try {
|
|
1442
|
+
sendJson(res, 200, { version: VERSION, code: CODE_STAMP, plugins: settings.reloadPlugins, page: settings.reloadInterface, shim: bundleShimStatus(ctx) })
|
|
1443
|
+
} catch (error) {
|
|
1444
|
+
log(`cannot describe this copy of the plugin: ${error?.message ?? error}`)
|
|
1445
|
+
sendJson(res, 500, { status: 'error' })
|
|
1446
|
+
}
|
|
1441
1447
|
},
|
|
1442
1448
|
],
|
|
1443
1449
|
[
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.12",
|
|
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",
|