Commit fff35add authored by nanahira's avatar nanahira

bump and template things

parent 53b8484b
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,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"
}, },
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,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",
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,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"
} }
...@@ -1049,13 +1049,13 @@ ...@@ -1049,13 +1049,13 @@
"integrity": "sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg==" "integrity": "sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg=="
}, },
"node_modules/@koishijs/core": { "node_modules/@koishijs/core": {
"version": "4.3.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.3.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.4.1.tgz",
"integrity": "sha512-LDjRuhyQNagsk0vaumJRpucAU4AGCmQnRiK+JNsCboojkH1TUN0cRyzBTb0JzNrtqA4Tj6IEdxwa+Q2ruXZD8w==", "integrity": "sha512-nd/QAm9ejk4KQP8BjnyuDCxg4rpyq4fyYtTvFOuafj9G/vN6gHL11YLF5R7g2WimnN1S2sN1txB7WNx8dnGI1A==",
"dependencies": { "dependencies": {
"@koishijs/utils": "^5.1.2", "@koishijs/utils": "^5.2.0",
"fastest-levenshtein": "^1.0.12", "fastest-levenshtein": "^1.0.12",
"schemastery": "^2.5.0" "schemastery": "^3.1.0"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
...@@ -1067,9 +1067,9 @@ ...@@ -1067,9 +1067,9 @@
"integrity": "sha512-HmLRKJiIX++U+ow+RP0BVGwgAFzDRqwHusUzjoZcZdcnG8yudTsvB6MXnzBMnBL7k9LBxUlfB5P8ukkM1roZFQ==" "integrity": "sha512-HmLRKJiIX++U+ow+RP0BVGwgAFzDRqwHusUzjoZcZdcnG8yudTsvB6MXnzBMnBL7k9LBxUlfB5P8ukkM1roZFQ=="
}, },
"node_modules/@koishijs/utils": { "node_modules/@koishijs/utils": {
"version": "5.1.2", "version": "5.2.0",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.1.2.tgz", "resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.2.0.tgz",
"integrity": "sha512-KexHBO3dXR2d5oxPgbVGQ5sFnApjo7iiUfK1+cv5o2dztsKxaI2E//7e26tYQqPoBzImpJpxt5peBu43Mwa5fg==", "integrity": "sha512-KqZS/zK415XkFZn1EQ9BpT4ydaNS0ZFCAS64RT4pR8pzCUWz5eyN81Z8A7AmLKdJWgNDiT6mQ08EyUvMq0l/7Q==",
"dependencies": { "dependencies": {
"@koishijs/segment": "^1.1.1", "@koishijs/segment": "^1.1.1",
"supports-color": "^8.1.0" "supports-color": "^8.1.0"
...@@ -1698,9 +1698,9 @@ ...@@ -1698,9 +1698,9 @@
} }
}, },
"node_modules/@types/ws": { "node_modules/@types/ws": {
"version": "8.2.2", "version": "8.5.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.2.tgz",
"integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", "integrity": "sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw==",
"dependencies": { "dependencies": {
"@types/node": "*" "@types/node": "*"
} }
...@@ -5522,16 +5522,16 @@ ...@@ -5522,16 +5522,16 @@
} }
}, },
"node_modules/koishi": { "node_modules/koishi": {
"version": "4.3.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.3.1.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.4.1.tgz",
"integrity": "sha512-7+DAGta5jwXr/WvJIKUJjzMI8+FlSvFB8btKKNQ3ghSvfm65Ql++4O1EfDQBqdbGzBYMHg5CBkjEj/43TjObMA==", "integrity": "sha512-yTJlAwsbF7ecjqRGUX5l2LT8HROusAZj1UjzxEevXGWklRrzABWTifIXDEKd9H+oC5xq4hJQeXRCQCogiPe+SQ==",
"dependencies": { "dependencies": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@koishijs/core": "^4.3.1", "@koishijs/core": "^4.4.1",
"@koishijs/utils": "^5.1.2", "@koishijs/utils": "^5.2.0",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
"@types/ws": "^8.2.2", "@types/ws": "^8.5.2",
"axios": "^0.24.0", "axios": "^0.24.0",
"file-type": "^16.5.3", "file-type": "^16.5.3",
"koa": "^2.13.4", "koa": "^2.13.4",
...@@ -5539,16 +5539,16 @@ ...@@ -5539,16 +5539,16 @@
"parseurl": "^1.3.3", "parseurl": "^1.3.3",
"path-to-regexp": "^6.2.0", "path-to-regexp": "^6.2.0",
"proxy-agent": "^5.0.0", "proxy-agent": "^5.0.0",
"ws": "^8.4.2" "ws": "^8.5.0"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
} }
}, },
"node_modules/koishi-decorators": { "node_modules/koishi-decorators": {
"version": "1.1.1", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.1.1.tgz", "resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.2.2.tgz",
"integrity": "sha512-AaumjnVTT8N7jJ67w16blSez9z+Pi+duuJusheIq3Hmkvx+iRxkpp3w0IvlU69gHqdQRK3Z4qNNC+KrMPDORUg==", "integrity": "sha512-uRJjgxS+CIqyQwPgvdZxiA308VDfq5Rmhb4+xvs30w5cQgxy5Sr3RPQsMR05Iuy+2BBPlU40z7glOhYOfv2ffw==",
"dependencies": { "dependencies": {
"@types/koa": "^2.13.4", "@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11", "@types/koa__router": "^8.0.11",
...@@ -5557,7 +5557,7 @@ ...@@ -5557,7 +5557,7 @@
"typed-reflector": "^1.0.9" "typed-reflector": "^1.0.9"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.2.1" "koishi": "^4.4.1"
} }
}, },
"node_modules/koishi/node_modules/path-to-regexp": { "node_modules/koishi/node_modules/path-to-regexp": {
...@@ -6764,9 +6764,9 @@ ...@@ -6764,9 +6764,9 @@
} }
}, },
"node_modules/schemastery": { "node_modules/schemastery": {
"version": "2.5.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-2.5.0.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.1.0.tgz",
"integrity": "sha512-SVUAoEeAF4TlzdUHizcZCU1uYHLM0EEmkYbK0ZRp3EeeU0lzxNVElCkH3fFWYPhqyXDEk6rXYTeE6Dmdl/9KcA==" "integrity": "sha512-I1KaYmKfB+buINqBXydV8bC7N+BaC8y/V+609oSJNDO3mP3DY0zoNcDCIaY95KR0a5Cr9+CxgKl5BLEgFoikzw=="
}, },
"node_modules/secure-json-parse": { "node_modules/secure-json-parse": {
"version": "2.4.0", "version": "2.4.0",
...@@ -7815,9 +7815,9 @@ ...@@ -7815,9 +7815,9 @@
} }
}, },
"node_modules/ws": { "node_modules/ws": {
"version": "8.4.2", "version": "8.5.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",
"integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==", "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"
}, },
...@@ -8699,13 +8699,13 @@ ...@@ -8699,13 +8699,13 @@
} }
}, },
"@koishijs/core": { "@koishijs/core": {
"version": "4.3.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.3.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.4.1.tgz",
"integrity": "sha512-LDjRuhyQNagsk0vaumJRpucAU4AGCmQnRiK+JNsCboojkH1TUN0cRyzBTb0JzNrtqA4Tj6IEdxwa+Q2ruXZD8w==", "integrity": "sha512-nd/QAm9ejk4KQP8BjnyuDCxg4rpyq4fyYtTvFOuafj9G/vN6gHL11YLF5R7g2WimnN1S2sN1txB7WNx8dnGI1A==",
"requires": { "requires": {
"@koishijs/utils": "^5.1.2", "@koishijs/utils": "^5.2.0",
"fastest-levenshtein": "^1.0.12", "fastest-levenshtein": "^1.0.12",
"schemastery": "^2.5.0" "schemastery": "^3.1.0"
} }
}, },
"@koishijs/segment": { "@koishijs/segment": {
...@@ -8714,9 +8714,9 @@ ...@@ -8714,9 +8714,9 @@
"integrity": "sha512-HmLRKJiIX++U+ow+RP0BVGwgAFzDRqwHusUzjoZcZdcnG8yudTsvB6MXnzBMnBL7k9LBxUlfB5P8ukkM1roZFQ==" "integrity": "sha512-HmLRKJiIX++U+ow+RP0BVGwgAFzDRqwHusUzjoZcZdcnG8yudTsvB6MXnzBMnBL7k9LBxUlfB5P8ukkM1roZFQ=="
}, },
"@koishijs/utils": { "@koishijs/utils": {
"version": "5.1.2", "version": "5.2.0",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.1.2.tgz", "resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.2.0.tgz",
"integrity": "sha512-KexHBO3dXR2d5oxPgbVGQ5sFnApjo7iiUfK1+cv5o2dztsKxaI2E//7e26tYQqPoBzImpJpxt5peBu43Mwa5fg==", "integrity": "sha512-KqZS/zK415XkFZn1EQ9BpT4ydaNS0ZFCAS64RT4pR8pzCUWz5eyN81Z8A7AmLKdJWgNDiT6mQ08EyUvMq0l/7Q==",
"requires": { "requires": {
"@koishijs/segment": "^1.1.1", "@koishijs/segment": "^1.1.1",
"supports-color": "^8.1.0" "supports-color": "^8.1.0"
...@@ -9221,9 +9221,9 @@ ...@@ -9221,9 +9221,9 @@
} }
}, },
"@types/ws": { "@types/ws": {
"version": "8.2.2", "version": "8.5.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.2.tgz",
"integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", "integrity": "sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw==",
"requires": { "requires": {
"@types/node": "*" "@types/node": "*"
} }
...@@ -12142,16 +12142,16 @@ ...@@ -12142,16 +12142,16 @@
} }
}, },
"koishi": { "koishi": {
"version": "4.3.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.3.1.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.4.1.tgz",
"integrity": "sha512-7+DAGta5jwXr/WvJIKUJjzMI8+FlSvFB8btKKNQ3ghSvfm65Ql++4O1EfDQBqdbGzBYMHg5CBkjEj/43TjObMA==", "integrity": "sha512-yTJlAwsbF7ecjqRGUX5l2LT8HROusAZj1UjzxEevXGWklRrzABWTifIXDEKd9H+oC5xq4hJQeXRCQCogiPe+SQ==",
"requires": { "requires": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@koishijs/core": "^4.3.1", "@koishijs/core": "^4.4.1",
"@koishijs/utils": "^5.1.2", "@koishijs/utils": "^5.2.0",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
"@types/ws": "^8.2.2", "@types/ws": "^8.5.2",
"axios": "^0.24.0", "axios": "^0.24.0",
"file-type": "^16.5.3", "file-type": "^16.5.3",
"koa": "^2.13.4", "koa": "^2.13.4",
...@@ -12159,7 +12159,7 @@ ...@@ -12159,7 +12159,7 @@
"parseurl": "^1.3.3", "parseurl": "^1.3.3",
"path-to-regexp": "^6.2.0", "path-to-regexp": "^6.2.0",
"proxy-agent": "^5.0.0", "proxy-agent": "^5.0.0",
"ws": "^8.4.2" "ws": "^8.5.0"
}, },
"dependencies": { "dependencies": {
"path-to-regexp": { "path-to-regexp": {
...@@ -12170,9 +12170,9 @@ ...@@ -12170,9 +12170,9 @@
} }
}, },
"koishi-decorators": { "koishi-decorators": {
"version": "1.1.1", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.1.1.tgz", "resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.2.2.tgz",
"integrity": "sha512-AaumjnVTT8N7jJ67w16blSez9z+Pi+duuJusheIq3Hmkvx+iRxkpp3w0IvlU69gHqdQRK3Z4qNNC+KrMPDORUg==", "integrity": "sha512-uRJjgxS+CIqyQwPgvdZxiA308VDfq5Rmhb4+xvs30w5cQgxy5Sr3RPQsMR05Iuy+2BBPlU40z7glOhYOfv2ffw==",
"requires": { "requires": {
"@types/koa": "^2.13.4", "@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11", "@types/koa__router": "^8.0.11",
...@@ -13094,9 +13094,9 @@ ...@@ -13094,9 +13094,9 @@
} }
}, },
"schemastery": { "schemastery": {
"version": "2.5.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-2.5.0.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.1.0.tgz",
"integrity": "sha512-SVUAoEeAF4TlzdUHizcZCU1uYHLM0EEmkYbK0ZRp3EeeU0lzxNVElCkH3fFWYPhqyXDEk6rXYTeE6Dmdl/9KcA==" "integrity": "sha512-I1KaYmKfB+buINqBXydV8bC7N+BaC8y/V+609oSJNDO3mP3DY0zoNcDCIaY95KR0a5Cr9+CxgKl5BLEgFoikzw=="
}, },
"secure-json-parse": { "secure-json-parse": {
"version": "2.4.0", "version": "2.4.0",
...@@ -13893,9 +13893,9 @@ ...@@ -13893,9 +13893,9 @@
} }
}, },
"ws": { "ws": {
"version": "8.4.2", "version": "8.5.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",
"integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==", "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",
"requires": {} "requires": {}
}, },
"xml-name-validator": { "xml-name-validator": {
......
...@@ -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