Commit fff35add authored by nanahira's avatar nanahira

bump and template things

parent 53b8484b
This diff is collapsed.
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"peerDependencies": { "peerDependencies": {
"@nestjs/common": "^8.2.6", "@nestjs/common": "^8.2.6",
"@nestjs/core": "^8.2.6", "@nestjs/core": "^8.2.6",
"koishi": "^4.3.1", "koishi": "^4.4.1",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rxjs": "^7.5.4" "rxjs": "^7.5.4"
}, },
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
"eslint-plugin-prettier": "^3.4.1", "eslint-plugin-prettier": "^3.4.1",
"express": "^4.17.1", "express": "^4.17.1",
"jest": "^27.4.4", "jest": "^27.4.4",
"koishi": "4.3.1", "koishi": "4.4.1",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"supertest": "^6.1.6", "supertest": "^6.1.6",
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"@types/ws": "^8.2.0", "@types/ws": "^8.2.0",
"koa": "^2.13.3", "koa": "^2.13.3",
"koa-bodyparser": "^4.3.0", "koa-bodyparser": "^4.3.0",
"koishi-decorators": "^1.1.1", "koishi-decorators": "^1.2.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"ws": "^8.2.3" "ws": "^8.2.3"
}, },
......
...@@ -158,7 +158,9 @@ export class KoishiMetascanService { ...@@ -158,7 +158,9 @@ export class KoishiMetascanService {
registerContext(ctx: Context) { registerContext(ctx: Context) {
return this.runForEachProvider(ctx, (providerCtx, instance) => { return this.runForEachProvider(ctx, (providerCtx, instance) => {
this.scanInstanceForProvidingContextService(providerCtx, instance); this.scanInstanceForProvidingContextService(providerCtx, instance);
new Registrar(instance) const registrar = new Registrar(instance);
registrar.performTopActions(providerCtx);
registrar
.getAllFieldsToRegister() .getAllFieldsToRegister()
.forEach((methodKey: string) => .forEach((methodKey: string) =>
this.handleInstanceRegistration(providerCtx, instance, methodKey), this.handleInstanceRegistration(providerCtx, instance, methodKey),
......
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