dsh-unlag 1.9.4 → 1.9.6
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 -2
- package/package.json +8 -1
package/index.js
CHANGED
|
@@ -477,7 +477,9 @@ function pluginReloader(ctx, config) {
|
|
|
477
477
|
return
|
|
478
478
|
}
|
|
479
479
|
if (busy()) log('reloading while turns are still running; they keep running')
|
|
480
|
-
|
|
480
|
+
// A rejection here would otherwise vanish: the press already answered, so the log is the only
|
|
481
|
+
// place that can say the update stopped.
|
|
482
|
+
void reloadNow(true).catch((error) => log(`a queued reload could not finish: ${error?.message ?? error}`))
|
|
481
483
|
}
|
|
482
484
|
queued = unrefTimer(setTimeout(tick, 1000))
|
|
483
485
|
return 'queued'
|
|
@@ -692,7 +694,10 @@ function buttonAllowed(req) {
|
|
|
692
694
|
}
|
|
693
695
|
}
|
|
694
696
|
return true
|
|
695
|
-
} catch {
|
|
697
|
+
} catch (error) {
|
|
698
|
+
// The check itself failing is not the same as a refusal, and a silent one hides a bug behind
|
|
699
|
+
// a working-looking 403: leave the real reason in the log.
|
|
700
|
+
log(`cannot check where a press came from: ${error?.message ?? error}`)
|
|
696
701
|
return false
|
|
697
702
|
}
|
|
698
703
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlag",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
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",
|
|
@@ -47,5 +47,12 @@
|
|
|
47
47
|
"@deepseek-ai/dsh-client-ui-conversation"
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"test": "for f in test/*.test.mjs; do node \"$f\" || exit 1; done",
|
|
53
|
+
"audit": "eslint --no-config-lookup --rule '{\"no-undef\":\"error\",\"no-unused-vars\":[\"error\",{\"args\":\"none\",\"caughtErrors\":\"none\"}]}' --global window --global document --global navigator --global location --global sessionStorage --global localStorage --global fetch --global Response --global Request --global URL --global URLSearchParams --global AbortController --global CustomEvent --global Event --global setTimeout --global clearTimeout --global setInterval --global clearInterval --global requestAnimationFrame --global queueMicrotask --global structuredClone --global Buffer --global process --global console index.js client.js"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"eslint": "9.39.0"
|
|
50
57
|
}
|
|
51
58
|
}
|