Commit a9e9b3a5 authored by nanahira's avatar nanahira

bump

parent eba40021
This diff is collapsed.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
}, },
"homepage": "https://github.com/koishijs/koishi-plugin-pics", "homepage": "https://github.com/koishijs/koishi-plugin-pics",
"dependencies": { "dependencies": {
"koishi-thirdeye": "^10.2.1", "koishi-thirdeye": "^10.2.5",
"lodash": "^4.17.21" "lodash": "^4.17.21"
}, },
"devDependencies": { "devDependencies": {
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
"ws": "^8.3.0" "ws": "^8.3.0"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.7.0" "koishi": "^4.7.4"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [
......
...@@ -89,7 +89,7 @@ export default class PicsContainer ...@@ -89,7 +89,7 @@ export default class PicsContainer
middleware(mid: PicMiddleware, targetCtx?: Context) { middleware(mid: PicMiddleware, targetCtx?: Context) {
const processingCtx: Context = targetCtx || this.caller; const processingCtx: Context = targetCtx || this.caller;
mid.name ||= processingCtx.state?.plugin?.name; mid.name ||= processingCtx.state?.runtime?.plugin?.name;
const disposable = processingCtx.on('dispose', () => { const disposable = processingCtx.on('dispose', () => {
disposable(); disposable();
this.removeMiddlware(mid); this.removeMiddlware(mid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment