Commit 6bf375bb authored by nanahira's avatar nanahira

enhance CommandLocaleDef

parent 040b7462
......@@ -16,8 +16,7 @@
"typed-reflector": "^1.0.10"
},
"devDependencies": {
"@koishijs/plugin-adapter-onebot": "^4.0.0",
"@koishijs/plugin-mock": "^1.0.0",
"@koishijs/plugin-adapter-onebot": "^4.1.5",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.178",
"@types/node": "^17.0.10",
......@@ -35,7 +34,7 @@
"typescript": "^4.5.5"
},
"peerDependencies": {
"koishi": "^4.4.2"
"koishi": "^4.5.0"
}
},
"node_modules/@babel/code-frame": {
......@@ -998,11 +997,12 @@
}
},
"node_modules/@koishijs/core": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.4.2.tgz",
"integrity": "sha512-fLJIFQ52qjxJeKz8rpIL7ZIB46sOGu7DbXY++umVEQdn4PVdb6uVg87jdySW/VCx3VNv0gI2oFndE47fCattHg==",
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.5.0.tgz",
"integrity": "sha512-+kppTq/FcJcZf0bESunfxCAcP3xyLUK2lNaHUzP/oKJCD5L2oyGRFjl1JskRJnwwSSscUKYv409ZWCHPqJ4plA==",
"peer": true,
"dependencies": {
"@koishijs/orm": "^1.0.0",
"@koishijs/utils": "^5.2.1",
"fastest-levenshtein": "^1.0.12"
},
......@@ -1010,23 +1010,35 @@
"node": ">=12.0.0"
}
},
"node_modules/@koishijs/orm": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/orm/-/orm-1.0.0.tgz",
"integrity": "sha512-uWSOVCF2THR/S4PPS5FsvsYNhWcPIHO6pXVlSckV5GmJMDQ4zAppSi4s6MwvBHPRX5CMjicK/T2huUlEA/srOQ==",
"peer": true,
"dependencies": {
"@koishijs/utils": "^5.2.1"
},
"engines": {
"node": ">=12.0.0"
}
},
"node_modules/@koishijs/plugin-adapter-onebot": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.0.0.tgz",
"integrity": "sha512-xFEBXk9mWgIL1jxdWmbdDc3Y3sB0642vuffWw1tHUh3hz9/aDPRKpONgk94lAfEaCpLB4KMl2V5355Wufu/1Jw==",
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.1.5.tgz",
"integrity": "sha512-6Lb2ifqbY/hTxnbaSLopDHyVbPUBBfnxdDS7FWDapJ7Z0UeXHCNeIyLSSreuEG93UCn3GDzl43ZCVvOhGQUCHg==",
"dev": true,
"dependencies": {
"qface": "^1.2.0",
"ws": "^8.2.1"
"ws": "^8.5.0"
},
"peerDependencies": {
"koishi": "^4.0.0"
"koishi": "^4.4.2"
}
},
"node_modules/@koishijs/plugin-adapter-onebot/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==",
"dev": true,
"engines": {
"node": ">=10.0.0"
......@@ -1044,15 +1056,6 @@
}
}
},
"node_modules/@koishijs/plugin-mock": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/plugin-mock/-/plugin-mock-1.0.0.tgz",
"integrity": "sha512-rDVdqaY65f/EPvdZ98htkpiFuA0+d4Iprrfo9UG14jj563dkVYTqCpgRmEiwaYZcPbIkA7LZkdakFQfK31L2nA==",
"dev": true,
"peerDependencies": {
"koishi": "^4.0.0-rc.3"
}
},
"node_modules/@koishijs/segment": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@koishijs/segment/-/segment-1.1.1.tgz",
......@@ -4737,13 +4740,13 @@
}
},
"node_modules/koishi": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.4.2.tgz",
"integrity": "sha512-zFLRGCeLT5Jy7KSw8iSlf7S/vz2mLJ/DIlqZv4TeoE5TjSkdTkTRqBMM+2XwrHXGdKHMbQ124rMr5CGFiNSXPA==",
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.5.0.tgz",
"integrity": "sha512-1VI3Hpm304myRjx7PoV21t8E5ckB4IYFhaE6uUKVIpBBOK25zWCI1X/RwXhxqRGflL8BEpegIP0Y7Be208J+kw==",
"peer": true,
"dependencies": {
"@koa/router": "^10.1.1",
"@koishijs/core": "^4.4.2",
"@koishijs/core": "^4.5.0",
"@koishijs/utils": "^5.2.1",
"@types/koa": "*",
"@types/koa__router": "*",
......@@ -7534,41 +7537,44 @@
}
},
"@koishijs/core": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.4.2.tgz",
"integrity": "sha512-fLJIFQ52qjxJeKz8rpIL7ZIB46sOGu7DbXY++umVEQdn4PVdb6uVg87jdySW/VCx3VNv0gI2oFndE47fCattHg==",
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.5.0.tgz",
"integrity": "sha512-+kppTq/FcJcZf0bESunfxCAcP3xyLUK2lNaHUzP/oKJCD5L2oyGRFjl1JskRJnwwSSscUKYv409ZWCHPqJ4plA==",
"peer": true,
"requires": {
"@koishijs/orm": "^1.0.0",
"@koishijs/utils": "^5.2.1",
"fastest-levenshtein": "^1.0.12"
}
},
"@koishijs/orm": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/orm/-/orm-1.0.0.tgz",
"integrity": "sha512-uWSOVCF2THR/S4PPS5FsvsYNhWcPIHO6pXVlSckV5GmJMDQ4zAppSi4s6MwvBHPRX5CMjicK/T2huUlEA/srOQ==",
"peer": true,
"requires": {
"@koishijs/utils": "^5.2.1"
}
},
"@koishijs/plugin-adapter-onebot": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.0.0.tgz",
"integrity": "sha512-xFEBXk9mWgIL1jxdWmbdDc3Y3sB0642vuffWw1tHUh3hz9/aDPRKpONgk94lAfEaCpLB4KMl2V5355Wufu/1Jw==",
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/@koishijs/plugin-adapter-onebot/-/plugin-adapter-onebot-4.1.5.tgz",
"integrity": "sha512-6Lb2ifqbY/hTxnbaSLopDHyVbPUBBfnxdDS7FWDapJ7Z0UeXHCNeIyLSSreuEG93UCn3GDzl43ZCVvOhGQUCHg==",
"dev": true,
"requires": {
"qface": "^1.2.0",
"ws": "^8.2.1"
"ws": "^8.5.0"
},
"dependencies": {
"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==",
"dev": true,
"requires": {}
}
}
},
"@koishijs/plugin-mock": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/plugin-mock/-/plugin-mock-1.0.0.tgz",
"integrity": "sha512-rDVdqaY65f/EPvdZ98htkpiFuA0+d4Iprrfo9UG14jj563dkVYTqCpgRmEiwaYZcPbIkA7LZkdakFQfK31L2nA==",
"dev": true,
"requires": {}
},
"@koishijs/segment": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@koishijs/segment/-/segment-1.1.1.tgz",
......@@ -10406,13 +10412,13 @@
}
},
"koishi": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.4.2.tgz",
"integrity": "sha512-zFLRGCeLT5Jy7KSw8iSlf7S/vz2mLJ/DIlqZv4TeoE5TjSkdTkTRqBMM+2XwrHXGdKHMbQ124rMr5CGFiNSXPA==",
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.5.0.tgz",
"integrity": "sha512-1VI3Hpm304myRjx7PoV21t8E5ckB4IYFhaE6uUKVIpBBOK25zWCI1X/RwXhxqRGflL8BEpegIP0Y7Be208J+kw==",
"peer": true,
"requires": {
"@koa/router": "^10.1.1",
"@koishijs/core": "^4.4.2",
"@koishijs/core": "^4.5.0",
"@koishijs/utils": "^5.2.1",
"@types/koa": "*",
"@types/koa__router": "*",
......
......@@ -39,8 +39,7 @@
"testEnvironment": "node"
},
"devDependencies": {
"@koishijs/plugin-adapter-onebot": "^4.0.0",
"@koishijs/plugin-mock": "^1.0.0",
"@koishijs/plugin-adapter-onebot": "^4.1.5",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.178",
"@types/node": "^17.0.10",
......@@ -65,6 +64,6 @@
"typed-reflector": "^1.0.10"
},
"peerDependencies": {
"koishi": "^4.4.2"
"koishi": "^4.5.0"
}
}
......@@ -157,6 +157,8 @@ export interface CommandOptionConfigWithDescription extends Argv.OptionConfig {
export interface CommandLocaleDef extends I18n.Store {
description?: string;
options?: Dict<string>;
usage?: string;
examples?: string;
messages?: I18n.Store;
}
......
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