Commit fff35add authored by nanahira's avatar nanahira

bump and template things

parent 53b8484b
......@@ -14,7 +14,7 @@
"@types/ws": "^8.2.0",
"koa": "^2.13.3",
"koa-bodyparser": "^4.3.0",
"koishi-decorators": "^1.1.1",
"koishi-decorators": "^1.2.2",
"lodash": "^4.17.21",
"ws": "^8.2.3"
},
......@@ -35,7 +35,7 @@
"eslint-plugin-prettier": "^3.4.1",
"express": "^4.17.1",
"jest": "^27.4.4",
"koishi": "4.3.1",
"koishi": "4.4.1",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"supertest": "^6.1.6",
......@@ -45,7 +45,7 @@
"peerDependencies": {
"@nestjs/common": "^8.2.6",
"@nestjs/core": "^8.2.6",
"koishi": "^4.3.1",
"koishi": "^4.4.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.5.4"
}
......@@ -1049,13 +1049,13 @@
"integrity": "sha512-f66KywYG6+43afgE/8j/GoiNyygk/bnoCbps++3ErRKsIYkGGupyv07R2Ok5m9i67Iqc+T2g1eAUGUPzWhYTyg=="
},
"node_modules/@koishijs/core": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.3.1.tgz",
"integrity": "sha512-LDjRuhyQNagsk0vaumJRpucAU4AGCmQnRiK+JNsCboojkH1TUN0cRyzBTb0JzNrtqA4Tj6IEdxwa+Q2ruXZD8w==",
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.4.1.tgz",
"integrity": "sha512-nd/QAm9ejk4KQP8BjnyuDCxg4rpyq4fyYtTvFOuafj9G/vN6gHL11YLF5R7g2WimnN1S2sN1txB7WNx8dnGI1A==",
"dependencies": {
"@koishijs/utils": "^5.1.2",
"@koishijs/utils": "^5.2.0",
"fastest-levenshtein": "^1.0.12",
"schemastery": "^2.5.0"
"schemastery": "^3.1.0"
},
"engines": {
"node": ">=12.0.0"
......@@ -1067,9 +1067,9 @@
"integrity": "sha512-HmLRKJiIX++U+ow+RP0BVGwgAFzDRqwHusUzjoZcZdcnG8yudTsvB6MXnzBMnBL7k9LBxUlfB5P8ukkM1roZFQ=="
},
"node_modules/@koishijs/utils": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.1.2.tgz",
"integrity": "sha512-KexHBO3dXR2d5oxPgbVGQ5sFnApjo7iiUfK1+cv5o2dztsKxaI2E//7e26tYQqPoBzImpJpxt5peBu43Mwa5fg==",
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.2.0.tgz",
"integrity": "sha512-KqZS/zK415XkFZn1EQ9BpT4ydaNS0ZFCAS64RT4pR8pzCUWz5eyN81Z8A7AmLKdJWgNDiT6mQ08EyUvMq0l/7Q==",
"dependencies": {
"@koishijs/segment": "^1.1.1",
"supports-color": "^8.1.0"
......@@ -1698,9 +1698,9 @@
}
},
"node_modules/@types/ws": {
"version": "8.2.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
"integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==",
"version": "8.5.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.2.tgz",
"integrity": "sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw==",
"dependencies": {
"@types/node": "*"
}
......@@ -5522,16 +5522,16 @@
}
},
"node_modules/koishi": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.3.1.tgz",
"integrity": "sha512-7+DAGta5jwXr/WvJIKUJjzMI8+FlSvFB8btKKNQ3ghSvfm65Ql++4O1EfDQBqdbGzBYMHg5CBkjEj/43TjObMA==",
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.4.1.tgz",
"integrity": "sha512-yTJlAwsbF7ecjqRGUX5l2LT8HROusAZj1UjzxEevXGWklRrzABWTifIXDEKd9H+oC5xq4hJQeXRCQCogiPe+SQ==",
"dependencies": {
"@koa/router": "^10.1.1",
"@koishijs/core": "^4.3.1",
"@koishijs/utils": "^5.1.2",
"@koishijs/core": "^4.4.1",
"@koishijs/utils": "^5.2.0",
"@types/koa": "*",
"@types/koa__router": "*",
"@types/ws": "^8.2.2",
"@types/ws": "^8.5.2",
"axios": "^0.24.0",
"file-type": "^16.5.3",
"koa": "^2.13.4",
......@@ -5539,16 +5539,16 @@
"parseurl": "^1.3.3",
"path-to-regexp": "^6.2.0",
"proxy-agent": "^5.0.0",
"ws": "^8.4.2"
"ws": "^8.5.0"
},
"engines": {
"node": ">=12.0.0"
}
},
"node_modules/koishi-decorators": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.1.1.tgz",
"integrity": "sha512-AaumjnVTT8N7jJ67w16blSez9z+Pi+duuJusheIq3Hmkvx+iRxkpp3w0IvlU69gHqdQRK3Z4qNNC+KrMPDORUg==",
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.2.2.tgz",
"integrity": "sha512-uRJjgxS+CIqyQwPgvdZxiA308VDfq5Rmhb4+xvs30w5cQgxy5Sr3RPQsMR05Iuy+2BBPlU40z7glOhYOfv2ffw==",
"dependencies": {
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
......@@ -5557,7 +5557,7 @@
"typed-reflector": "^1.0.9"
},
"peerDependencies": {
"koishi": "^4.2.1"
"koishi": "^4.4.1"
}
},
"node_modules/koishi/node_modules/path-to-regexp": {
......@@ -6764,9 +6764,9 @@
}
},
"node_modules/schemastery": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-2.5.0.tgz",
"integrity": "sha512-SVUAoEeAF4TlzdUHizcZCU1uYHLM0EEmkYbK0ZRp3EeeU0lzxNVElCkH3fFWYPhqyXDEk6rXYTeE6Dmdl/9KcA=="
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.1.0.tgz",
"integrity": "sha512-I1KaYmKfB+buINqBXydV8bC7N+BaC8y/V+609oSJNDO3mP3DY0zoNcDCIaY95KR0a5Cr9+CxgKl5BLEgFoikzw=="
},
"node_modules/secure-json-parse": {
"version": "2.4.0",
......@@ -7815,9 +7815,9 @@
}
},
"node_modules/ws": {
"version": "8.4.2",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz",
"integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==",
"version": "8.5.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",
"integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",
"engines": {
"node": ">=10.0.0"
},
......@@ -8699,13 +8699,13 @@
}
},
"@koishijs/core": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.3.1.tgz",
"integrity": "sha512-LDjRuhyQNagsk0vaumJRpucAU4AGCmQnRiK+JNsCboojkH1TUN0cRyzBTb0JzNrtqA4Tj6IEdxwa+Q2ruXZD8w==",
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.4.1.tgz",
"integrity": "sha512-nd/QAm9ejk4KQP8BjnyuDCxg4rpyq4fyYtTvFOuafj9G/vN6gHL11YLF5R7g2WimnN1S2sN1txB7WNx8dnGI1A==",
"requires": {
"@koishijs/utils": "^5.1.2",
"@koishijs/utils": "^5.2.0",
"fastest-levenshtein": "^1.0.12",
"schemastery": "^2.5.0"
"schemastery": "^3.1.0"
}
},
"@koishijs/segment": {
......@@ -8714,9 +8714,9 @@
"integrity": "sha512-HmLRKJiIX++U+ow+RP0BVGwgAFzDRqwHusUzjoZcZdcnG8yudTsvB6MXnzBMnBL7k9LBxUlfB5P8ukkM1roZFQ=="
},
"@koishijs/utils": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.1.2.tgz",
"integrity": "sha512-KexHBO3dXR2d5oxPgbVGQ5sFnApjo7iiUfK1+cv5o2dztsKxaI2E//7e26tYQqPoBzImpJpxt5peBu43Mwa5fg==",
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-5.2.0.tgz",
"integrity": "sha512-KqZS/zK415XkFZn1EQ9BpT4ydaNS0ZFCAS64RT4pR8pzCUWz5eyN81Z8A7AmLKdJWgNDiT6mQ08EyUvMq0l/7Q==",
"requires": {
"@koishijs/segment": "^1.1.1",
"supports-color": "^8.1.0"
......@@ -9221,9 +9221,9 @@
}
},
"@types/ws": {
"version": "8.2.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
"integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==",
"version": "8.5.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.2.tgz",
"integrity": "sha512-VXI82ykONr5tacHEojnErTQk+KQSoYbW1NB6iz6wUwrNd+BqfkfggQNoNdCqhJSzbNumShPERbM+Pc5zpfhlbw==",
"requires": {
"@types/node": "*"
}
......@@ -12142,16 +12142,16 @@
}
},
"koishi": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.3.1.tgz",
"integrity": "sha512-7+DAGta5jwXr/WvJIKUJjzMI8+FlSvFB8btKKNQ3ghSvfm65Ql++4O1EfDQBqdbGzBYMHg5CBkjEj/43TjObMA==",
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.4.1.tgz",
"integrity": "sha512-yTJlAwsbF7ecjqRGUX5l2LT8HROusAZj1UjzxEevXGWklRrzABWTifIXDEKd9H+oC5xq4hJQeXRCQCogiPe+SQ==",
"requires": {
"@koa/router": "^10.1.1",
"@koishijs/core": "^4.3.1",
"@koishijs/utils": "^5.1.2",
"@koishijs/core": "^4.4.1",
"@koishijs/utils": "^5.2.0",
"@types/koa": "*",
"@types/koa__router": "*",
"@types/ws": "^8.2.2",
"@types/ws": "^8.5.2",
"axios": "^0.24.0",
"file-type": "^16.5.3",
"koa": "^2.13.4",
......@@ -12159,7 +12159,7 @@
"parseurl": "^1.3.3",
"path-to-regexp": "^6.2.0",
"proxy-agent": "^5.0.0",
"ws": "^8.4.2"
"ws": "^8.5.0"
},
"dependencies": {
"path-to-regexp": {
......@@ -12170,9 +12170,9 @@
}
},
"koishi-decorators": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.1.1.tgz",
"integrity": "sha512-AaumjnVTT8N7jJ67w16blSez9z+Pi+duuJusheIq3Hmkvx+iRxkpp3w0IvlU69gHqdQRK3Z4qNNC+KrMPDORUg==",
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/koishi-decorators/-/koishi-decorators-1.2.2.tgz",
"integrity": "sha512-uRJjgxS+CIqyQwPgvdZxiA308VDfq5Rmhb4+xvs30w5cQgxy5Sr3RPQsMR05Iuy+2BBPlU40z7glOhYOfv2ffw==",
"requires": {
"@types/koa": "^2.13.4",
"@types/koa__router": "^8.0.11",
......@@ -13094,9 +13094,9 @@
}
},
"schemastery": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-2.5.0.tgz",
"integrity": "sha512-SVUAoEeAF4TlzdUHizcZCU1uYHLM0EEmkYbK0ZRp3EeeU0lzxNVElCkH3fFWYPhqyXDEk6rXYTeE6Dmdl/9KcA=="
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.1.0.tgz",
"integrity": "sha512-I1KaYmKfB+buINqBXydV8bC7N+BaC8y/V+609oSJNDO3mP3DY0zoNcDCIaY95KR0a5Cr9+CxgKl5BLEgFoikzw=="
},
"secure-json-parse": {
"version": "2.4.0",
......@@ -13893,9 +13893,9 @@
}
},
"ws": {
"version": "8.4.2",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.4.2.tgz",
"integrity": "sha512-Kbk4Nxyq7/ZWqr/tarI9yIt/+iNNFOjBXEWgTb4ydaNHBNGgvf2QHbS9fdfsndfjFlFwEd4Al+mw83YkaD10ZA==",
"version": "8.5.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz",
"integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==",
"requires": {}
},
"xml-name-validator": {
......
......@@ -33,7 +33,7 @@
"peerDependencies": {
"@nestjs/common": "^8.2.6",
"@nestjs/core": "^8.2.6",
"koishi": "^4.3.1",
"koishi": "^4.4.1",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.5.4"
},
......@@ -54,7 +54,7 @@
"eslint-plugin-prettier": "^3.4.1",
"express": "^4.17.1",
"jest": "^27.4.4",
"koishi": "4.3.1",
"koishi": "4.4.1",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"supertest": "^6.1.6",
......@@ -67,7 +67,7 @@
"@types/ws": "^8.2.0",
"koa": "^2.13.3",
"koa-bodyparser": "^4.3.0",
"koishi-decorators": "^1.1.1",
"koishi-decorators": "^1.2.2",
"lodash": "^4.17.21",
"ws": "^8.2.3"
},
......
......@@ -158,7 +158,9 @@ export class KoishiMetascanService {
registerContext(ctx: Context) {
return this.runForEachProvider(ctx, (providerCtx, instance) => {
this.scanInstanceForProvidingContextService(providerCtx, instance);
new Registrar(instance)
const registrar = new Registrar(instance);
registrar.performTopActions(providerCtx);
registrar
.getAllFieldsToRegister()
.forEach((methodKey: string) =>
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