Commit aba222e2 authored by nanahira's avatar nanahira

fix and bump

parent 423a781b
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"peerDependencies": { "peerDependencies": {
"@nestjs/common": "^8.0.0", "@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0", "@nestjs/core": "^8.0.0",
"koishi": "^4.7.2" "koishi": "^4.7.4"
} }
}, },
"node_modules/@babel/code-frame": { "node_modules/@babel/code-frame": {
...@@ -1056,13 +1056,13 @@ ...@@ -1056,13 +1056,13 @@
"peer": true "peer": true
}, },
"node_modules/@koishijs/core": { "node_modules/@koishijs/core": {
"version": "4.7.2", "version": "4.7.4",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.2.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.4.tgz",
"integrity": "sha512-yO5Pyki1RV+MSqR1IzX02z6wLlJRej7RSH7zW4/+nd5r1fimtDaODiQz/F7lGfcuVthIPDg2aPxJXkl8eLCoSw==", "integrity": "sha512-S4pPaO05WC0htkQVcTMTluBZv4g8sEEBJ2ItHN2zJA8syet3iKJidT+s2gYt8d2rBo0Ndlvo1gBLGLNl/Zc9yg==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"cordis": "^1.2.2", "cordis": "^1.3.3",
"fastest-levenshtein": "^1.0.12", "fastest-levenshtein": "^1.0.12",
"minato": "^1.1.0" "minato": "^1.1.0"
}, },
...@@ -2779,9 +2779,9 @@ ...@@ -2779,9 +2779,9 @@
"integrity": "sha1-JoD7uAaKSNCGVrYJgJK9r8kG9KU=" "integrity": "sha1-JoD7uAaKSNCGVrYJgJK9r8kG9KU="
}, },
"node_modules/cordis": { "node_modules/cordis": {
"version": "1.2.2", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.2.2.tgz", "resolved": "https://registry.npmjs.org/cordis/-/cordis-1.3.3.tgz",
"integrity": "sha512-R6RhHuBu6be5DGXBkIGyw3W/yPBPqr69KBVEGVgBY38DzMBIXilmsfAdVdIIEe3G0vlnn5rtAgsMg2yGwRpkiQ==", "integrity": "sha512-mpyBWAEVYX8/YHoGWIqaOjrOk6DmtrOWZfsBSinNR+nDBlB39Ks6aC1B5oZ7AdnVoRE2ZYBCGecoHrlxcRxd6w==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.1.2" "cosmokit": "^1.1.2"
...@@ -5700,13 +5700,13 @@ ...@@ -5700,13 +5700,13 @@
} }
}, },
"node_modules/koishi": { "node_modules/koishi": {
"version": "4.7.2", "version": "4.7.4",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.2.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.4.tgz",
"integrity": "sha512-oH1yIGX8skfPO4WcLPpnNqt+qzETVux7OIAK9jkMQxHLJv1fq1/OqsLS0wTvpTJ8qFZLt49lZ3gbLujga43RPA==", "integrity": "sha512-VVHf3TyFsTuKrB8IZffxwmwiGx+zyhDo+DNNEFQjvomgqFdGEceAnLxNIf10K48aB1CDmkmi37b6uaURi4Z1Hw==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@koishijs/core": "^4.7.2", "@koishijs/core": "^4.7.4",
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
...@@ -9019,13 +9019,13 @@ ...@@ -9019,13 +9019,13 @@
} }
}, },
"@koishijs/core": { "@koishijs/core": {
"version": "4.7.2", "version": "4.7.4",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.2.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.4.tgz",
"integrity": "sha512-yO5Pyki1RV+MSqR1IzX02z6wLlJRej7RSH7zW4/+nd5r1fimtDaODiQz/F7lGfcuVthIPDg2aPxJXkl8eLCoSw==", "integrity": "sha512-S4pPaO05WC0htkQVcTMTluBZv4g8sEEBJ2ItHN2zJA8syet3iKJidT+s2gYt8d2rBo0Ndlvo1gBLGLNl/Zc9yg==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"cordis": "^1.2.2", "cordis": "^1.3.3",
"fastest-levenshtein": "^1.0.12", "fastest-levenshtein": "^1.0.12",
"minato": "^1.1.0" "minato": "^1.1.0"
} }
...@@ -10374,9 +10374,9 @@ ...@@ -10374,9 +10374,9 @@
"integrity": "sha1-JoD7uAaKSNCGVrYJgJK9r8kG9KU=" "integrity": "sha1-JoD7uAaKSNCGVrYJgJK9r8kG9KU="
}, },
"cordis": { "cordis": {
"version": "1.2.2", "version": "1.3.3",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.2.2.tgz", "resolved": "https://registry.npmjs.org/cordis/-/cordis-1.3.3.tgz",
"integrity": "sha512-R6RhHuBu6be5DGXBkIGyw3W/yPBPqr69KBVEGVgBY38DzMBIXilmsfAdVdIIEe3G0vlnn5rtAgsMg2yGwRpkiQ==", "integrity": "sha512-mpyBWAEVYX8/YHoGWIqaOjrOk6DmtrOWZfsBSinNR+nDBlB39Ks6aC1B5oZ7AdnVoRE2ZYBCGecoHrlxcRxd6w==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.1.2" "cosmokit": "^1.1.2"
...@@ -12595,13 +12595,13 @@ ...@@ -12595,13 +12595,13 @@
} }
}, },
"koishi": { "koishi": {
"version": "4.7.2", "version": "4.7.4",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.2.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.4.tgz",
"integrity": "sha512-oH1yIGX8skfPO4WcLPpnNqt+qzETVux7OIAK9jkMQxHLJv1fq1/OqsLS0wTvpTJ8qFZLt49lZ3gbLujga43RPA==", "integrity": "sha512-VVHf3TyFsTuKrB8IZffxwmwiGx+zyhDo+DNNEFQjvomgqFdGEceAnLxNIf10K48aB1CDmkmi37b6uaURi4Z1Hw==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@koishijs/core": "^4.7.2", "@koishijs/core": "^4.7.4",
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"peerDependencies": { "peerDependencies": {
"@nestjs/common": "^8.0.0", "@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0", "@nestjs/core": "^8.0.0",
"koishi": "^4.7.2" "koishi": "^4.7.4"
}, },
"devDependencies": { "devDependencies": {
"@nestjs/platform-express": "^8.4.6", "@nestjs/platform-express": "^8.4.6",
......
...@@ -53,6 +53,9 @@ export class KoishiMetascanService { ...@@ -53,6 +53,9 @@ export class KoishiMetascanService {
const registrar = new Registrar(instance, undefined, this.templateParams); const registrar = new Registrar(instance, undefined, this.templateParams);
const baseContext = registrar.getScopeContext(ctx, methodKey, false); const baseContext = registrar.getScopeContext(ctx, methodKey, false);
const result = registrar.register(baseContext, methodKey, false); const result = registrar.register(baseContext, methodKey, false);
if (!result) {
return;
}
if (result.type === 'command') { if (result.type === 'command') {
const command = result.result as Command; const command = result.result as Command;
const interceptorDefs: KoishiCommandInterceptorRegistration[] = _.uniq( const interceptorDefs: KoishiCommandInterceptorRegistration[] = _.uniq(
......
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