Commit a9e9b3a5 authored by nanahira's avatar nanahira

bump

parent eba40021
This diff is collapsed.
......@@ -27,7 +27,7 @@
},
"homepage": "https://github.com/koishijs/koishi-plugin-pics",
"dependencies": {
"koishi-thirdeye": "^10.2.1",
"koishi-thirdeye": "^10.2.5",
"lodash": "^4.17.21"
},
"devDependencies": {
......@@ -55,7 +55,7 @@
"ws": "^8.3.0"
},
"peerDependencies": {
"koishi": "^4.7.0"
"koishi": "^4.7.4"
},
"jest": {
"moduleFileExtensions": [
......
......@@ -89,7 +89,7 @@ export default class PicsContainer
middleware(mid: PicMiddleware, targetCtx?: Context) {
const processingCtx: Context = targetCtx || this.caller;
mid.name ||= processingCtx.state?.plugin?.name;
mid.name ||= processingCtx.state?.runtime?.plugin?.name;
const disposable = processingCtx.on('dispose', () => {
disposable();
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