Commit 7b363a8c authored by nanahira's avatar nanahira

remove @Preset

parent 88e27075
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"ws": "^8.12.0" "ws": "^8.12.0"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.12.1" "koishi": "^4.13.0"
} }
}, },
"node_modules/@ampproject/remapping": { "node_modules/@ampproject/remapping": {
...@@ -1109,23 +1109,33 @@ ...@@ -1109,23 +1109,33 @@
} }
}, },
"node_modules/@koishijs/core": { "node_modules/@koishijs/core": {
"version": "4.12.1", "version": "4.13.0",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.12.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.13.0.tgz",
"integrity": "sha512-y8Pmfnzd4a+p6+cyMWUxPrMCf6rrzS/tbWAsabf3EMH2O09xPcY+BYXhBxsymvtVP6Hhcb/OUDS99h+pvaXoTQ==", "integrity": "sha512-oUhKPB0vB31zcF1szHzttz5A91qWv/kPIk7FM4TdsEjX6JYsOf8gQfsWn/M6nhw3VhAzZ76DpuInHoloe138mQ==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koishijs/utils": "^7.0.1", "@koishijs/i18n-utils": "^1.0.0",
"@koishijs/utils": "^7.0.2",
"@minatojs/core": "^2.3.1", "@minatojs/core": "^2.3.1",
"@satorijs/core": "^2.2.2", "@satorijs/core": "^2.3.7",
"cordis": "^2.7.4", "cordis": "^2.8.0",
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"fastest-levenshtein": "^1.0.16" "fastest-levenshtein": "^1.0.16"
} }
}, },
"node_modules/@koishijs/i18n-utils": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/i18n-utils/-/i18n-utils-1.0.0.tgz",
"integrity": "sha512-eCGDBg7KQLJ76G+h8NJ8QePDLyliQ9DDoM89g3xeEInLLv+Gh6VWHqpgCw2XkxFwI7zJfmG5nyJAS7H31rS/TQ==",
"peer": true,
"dependencies": {
"cosmokit": "^1.4.2"
}
},
"node_modules/@koishijs/loader": { "node_modules/@koishijs/loader": {
"version": "3.1.1", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@koishijs/loader/-/loader-3.1.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/loader/-/loader-3.2.0.tgz",
"integrity": "sha512-Vcrw0OaDC5Z5fr8C/gPy/TT2Ajs0DM6Wk3K9WqEe0eto/Dspn7uLv83347pWoNTAGIsjIMWW9VFZtrsn1gbuKw==", "integrity": "sha512-CamSk3PB8HSUpHGwgvfKdlHbh0hB7RWS9J9FZlJtoTtz4OY5ZymvwID9z7jK+lkA8GEVUQ09LPYozM9vh8OOSw==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"dotenv": "^16.0.3", "dotenv": "^16.0.3",
...@@ -1133,7 +1143,7 @@ ...@@ -1133,7 +1143,7 @@
"ns-require": "^1.1.4" "ns-require": "^1.1.4"
}, },
"peerDependencies": { "peerDependencies": {
"@koishijs/core": "4.12.1" "@koishijs/core": "4.13.0"
} }
}, },
"node_modules/@koishijs/loader/node_modules/argparse": { "node_modules/@koishijs/loader/node_modules/argparse": {
...@@ -1168,12 +1178,12 @@ ...@@ -1168,12 +1178,12 @@
} }
}, },
"node_modules/@koishijs/utils": { "node_modules/@koishijs/utils": {
"version": "7.0.1", "version": "7.0.2",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-7.0.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-7.0.2.tgz",
"integrity": "sha512-in0vSfgmsjURf8aw+Wagve5thVXGpZRawYZiN9/w0AElPZ0Y/nQtGDvI0UMRcjubizb/mZgO7j0FcdYMm24dqg==", "integrity": "sha512-IX6f6WjH3UvVKJ8dOppekEihnHbAPXuAwG8ZeiVGyh2nj7NuVm2Vzfwr4YtXzf5Xj6qZecjFuWchi262BTAg2A==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"inaba": "^1.1.1" "inaba": "^1.1.1"
} }
}, },
...@@ -1221,50 +1231,49 @@ ...@@ -1221,50 +1231,49 @@
} }
}, },
"node_modules/@satorijs/core": { "node_modules/@satorijs/core": {
"version": "2.2.2", "version": "2.3.7",
"resolved": "https://registry.npmjs.org/@satorijs/core/-/core-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@satorijs/core/-/core-2.3.7.tgz",
"integrity": "sha512-RmQcEZEdk3x2hprAcRFj88hSFdwH8QjQCJlzDGrkBPnr1IKjlWyDBLRXIiuLIdR0oxzBEK1cG5ZyX5c6N5CFkQ==", "integrity": "sha512-S73/8tf3z5d3iyJhhnaErm/ycLsi41PAcxnXbENdNsVGOzzTk14k4szTHiP0kgNH048eWaXrccn0+OrXt6tKFg==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@satorijs/element": "^2.3.5", "@satorijs/element": "^2.4.2",
"cordis": "^2.7.4", "cordis": "^2.8.0",
"cordis-axios": "^3.0.2", "cordis-axios": "^3.1.2",
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"reggol": "^1.3.5", "reggol": "^1.3.5",
"schemastery": "^3.7.2", "schemastery": "^3.8.1",
"ws": "^8.12.1" "ws": "^8.13.0"
} }
}, },
"node_modules/@satorijs/element": { "node_modules/@satorijs/element": {
"version": "2.3.5", "version": "2.4.2",
"resolved": "https://registry.npmjs.org/@satorijs/element/-/element-2.3.5.tgz", "resolved": "https://registry.npmjs.org/@satorijs/element/-/element-2.4.2.tgz",
"integrity": "sha512-ygmDFJQKCDKj8H4ViQxuUTNvTIluoXv//cocCsSSx+MLVl+oqsD0wdg1qcZgXe+zj7QpE8N4jKcIGbynT625+A==", "integrity": "sha512-IApzusrRuKNVMldyeiv0DIEXf885LFCgfATBdK5lTs4M92MBzhskwkPvfggGj9tza4F32CKv86z6P+h3i/x2qw==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.4.1" "cosmokit": "^1.4.2"
} }
}, },
"node_modules/@satorijs/satori": { "node_modules/@satorijs/satori": {
"version": "2.2.2", "version": "2.3.7",
"resolved": "https://registry.npmjs.org/@satorijs/satori/-/satori-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@satorijs/satori/-/satori-2.3.7.tgz",
"integrity": "sha512-VD5UqCG318OJ1i+KY/1tGjngF076NOsMP3a57pu2La0CJnIhls+h/CaQOJr3xy8tbR4MoAnjTPFoeteO2tXP8g==", "integrity": "sha512-6iSlenin+q08IJVUSP4mCsYW0LKfje44P2PR+2U6E+CczXXU1HwvXRS0m+D5dPe0PhH6y3dL84iuVD/VJQx90Q==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@satorijs/core": "2.2.2", "@satorijs/core": "2.3.7",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
"@types/ws": "^8.5.4", "@types/ws": "^8.5.4",
"agent-base": "^6.0.2",
"file-type": "^16.5.4", "file-type": "^16.5.4",
"http-proxy-agent": "^5.0.0", "http-proxy-agent": "^5.0.0",
"https-proxy-agent": "^5.0.1", "https-proxy-agent": "^5.0.1",
"koa": "^2.14.1", "koa": "^2.14.2",
"koa-bodyparser": "^4.3.0", "koa-bodyparser": "^4.4.0",
"parseurl": "^1.3.3", "parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1", "path-to-regexp": "^6.2.1",
"socks-proxy-agent": "^5.0.1", "socks-proxy-agent": "^5.0.1",
"ws": "^8.12.1" "ws": "^8.13.0"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
...@@ -2419,22 +2428,22 @@ ...@@ -2419,22 +2428,22 @@
"peer": true "peer": true
}, },
"node_modules/cordis": { "node_modules/cordis": {
"version": "2.7.4", "version": "2.8.0",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-2.7.4.tgz", "resolved": "https://registry.npmjs.org/cordis/-/cordis-2.8.0.tgz",
"integrity": "sha512-SNP9JAhSjVHtozfmvU8HvREjsVSWTsQLuyHBH8PVnLZDJExe7l3srqNWs7vkKCrKWCqw8JH1Zj7kDF1bCbpwzw==", "integrity": "sha512-j1LTUayWF0ZYnVlgsuZD0AgVIEvfhKIzsDLsOMLtV9GoVIahV0k/1PzRZXuCSEOdA1/ZBcD3AUngaLlgL60dJQ==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.4.1" "cosmokit": "^1.4.2"
} }
}, },
"node_modules/cordis-axios": { "node_modules/cordis-axios": {
"version": "3.0.2", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/cordis-axios/-/cordis-axios-3.0.2.tgz", "resolved": "https://registry.npmjs.org/cordis-axios/-/cordis-axios-3.1.2.tgz",
"integrity": "sha512-dwG53efQ3MfdVOxB/oOS52hsct3fP3nOHLEOJFy6i8efjiKMk9WqrdFGRcH2pID/QmMNiTmMcqV61MGtCgYTbw==", "integrity": "sha512-Q0BfECvKxGW9JupvQnkpgczPOB+3bsvvbwlWcVt/M+O+gTurryo6FDv7hn4M+CjZLzYevvR0P+pXXRuk9naY0A==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"axios": "~1.1.3", "axios": "~1.1.3",
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"mime-db": "^1.52.0" "mime-db": "^1.52.0"
}, },
"engines": { "engines": {
...@@ -2470,9 +2479,9 @@ ...@@ -2470,9 +2479,9 @@
} }
}, },
"node_modules/cosmokit": { "node_modules/cosmokit": {
"version": "1.4.1", "version": "1.4.2",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.4.1.tgz", "resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.4.2.tgz",
"integrity": "sha512-d3ZRpKFahJRvLbo1T4y0ELCudjk9AeDUsfgKm+iAti6yPCeoPLGNUGT4expTWsNkrSA1uk7CKhtBPiizFYvDgA==" "integrity": "sha512-sUf9VhXySAHqH/CvTb8ATDDQWiMs115DKz+SLTdcjY4h9txWUhbRvUUrtgr8dhmWJdLN6o+Ow7UvvtBdvbaH2g=="
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
...@@ -4533,9 +4542,9 @@ ...@@ -4533,9 +4542,9 @@
} }
}, },
"node_modules/koa": { "node_modules/koa": {
"version": "2.14.1", "version": "2.14.2",
"resolved": "https://registry.npmjs.org/koa/-/koa-2.14.1.tgz", "resolved": "https://registry.npmjs.org/koa/-/koa-2.14.2.tgz",
"integrity": "sha512-USJFyZgi2l0wDgqkfD27gL4YGno7TfUkcmOe6UOLFOVuN+J7FwnNu4Dydl4CUQzraM1lBAiGed0M9OVJoT0Kqw==", "integrity": "sha512-VFI2bpJaodz6P7x2uyLiX6RLYpZmOJqNmoCst/Yyd7hQlszyPwG/I9CQJ63nOtKSxpt5M7NH67V6nJL2BwCl7g==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"accepts": "^1.3.5", "accepts": "^1.3.5",
...@@ -4608,21 +4617,21 @@ ...@@ -4608,21 +4617,21 @@
} }
}, },
"node_modules/koishi": { "node_modules/koishi": {
"version": "4.12.1", "version": "4.13.0",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.12.1.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.13.0.tgz",
"integrity": "sha512-rv8IgF1tGFsLECabLMzWn01p9HG7CCvpPFww23f4RHmo+V8r9ZneHsyPO4/nymV79Xhy9o+7pLpn9HQuhQzu/Q==", "integrity": "sha512-IW+VQ4hcH2QvThhVAfSIP1GZYi59rXkQgROzqG6J+m1O593Qt39p0RpexiofGMkJtn/JYGtZ2/ugUr1f4gjf8Q==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koishijs/core": "4.12.1", "@koishijs/core": "4.13.0",
"@koishijs/loader": "3.1.1", "@koishijs/loader": "3.2.0",
"@koishijs/utils": "^7.0.1", "@koishijs/utils": "^7.0.2",
"@satorijs/satori": "^2.2.2", "@satorijs/satori": "^2.3.7",
"cac": "^6.7.14", "cac": "^6.7.14",
"kleur": "^4.1.5", "kleur": "^4.1.5",
"ns-require": "^1.1.4" "ns-require": "^1.1.4"
}, },
"bin": { "bin": {
"koishi": "lib/cli/index.js" "koishi": "bin.js"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
...@@ -5573,12 +5582,12 @@ ...@@ -5573,12 +5582,12 @@
"peer": true "peer": true
}, },
"node_modules/schemastery": { "node_modules/schemastery": {
"version": "3.7.2", "version": "3.8.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.7.2.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.8.1.tgz",
"integrity": "sha512-CiDDwMQeNq7eusS4TSuo5bMfi/RORPXbBNMpd1s8a5I2ukD5NOpExNKfgHJSK6Sy4PcjY35luIw7bVo84dkPHw==", "integrity": "sha512-2y3HVoDtZncx+0GCPdDOQrDbwHMloykB+2s/sl4kXxVZyoZ+/U1fkS/FlbShRQt9UgwQ1f+iRlcsCChQBfkDwQ==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.4.1" "cosmokit": "^1.4.2"
} }
}, },
"node_modules/schemastery-gen": { "node_modules/schemastery-gen": {
...@@ -7270,23 +7279,33 @@ ...@@ -7270,23 +7279,33 @@
} }
}, },
"@koishijs/core": { "@koishijs/core": {
"version": "4.12.1", "version": "4.13.0",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.12.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.13.0.tgz",
"integrity": "sha512-y8Pmfnzd4a+p6+cyMWUxPrMCf6rrzS/tbWAsabf3EMH2O09xPcY+BYXhBxsymvtVP6Hhcb/OUDS99h+pvaXoTQ==", "integrity": "sha512-oUhKPB0vB31zcF1szHzttz5A91qWv/kPIk7FM4TdsEjX6JYsOf8gQfsWn/M6nhw3VhAzZ76DpuInHoloe138mQ==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koishijs/utils": "^7.0.1", "@koishijs/i18n-utils": "^1.0.0",
"@koishijs/utils": "^7.0.2",
"@minatojs/core": "^2.3.1", "@minatojs/core": "^2.3.1",
"@satorijs/core": "^2.2.2", "@satorijs/core": "^2.3.7",
"cordis": "^2.7.4", "cordis": "^2.8.0",
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"fastest-levenshtein": "^1.0.16" "fastest-levenshtein": "^1.0.16"
} }
}, },
"@koishijs/i18n-utils": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@koishijs/i18n-utils/-/i18n-utils-1.0.0.tgz",
"integrity": "sha512-eCGDBg7KQLJ76G+h8NJ8QePDLyliQ9DDoM89g3xeEInLLv+Gh6VWHqpgCw2XkxFwI7zJfmG5nyJAS7H31rS/TQ==",
"peer": true,
"requires": {
"cosmokit": "^1.4.2"
}
},
"@koishijs/loader": { "@koishijs/loader": {
"version": "3.1.1", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/@koishijs/loader/-/loader-3.1.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/loader/-/loader-3.2.0.tgz",
"integrity": "sha512-Vcrw0OaDC5Z5fr8C/gPy/TT2Ajs0DM6Wk3K9WqEe0eto/Dspn7uLv83347pWoNTAGIsjIMWW9VFZtrsn1gbuKw==", "integrity": "sha512-CamSk3PB8HSUpHGwgvfKdlHbh0hB7RWS9J9FZlJtoTtz4OY5ZymvwID9z7jK+lkA8GEVUQ09LPYozM9vh8OOSw==",
"peer": true, "peer": true,
"requires": { "requires": {
"dotenv": "^16.0.3", "dotenv": "^16.0.3",
...@@ -7322,12 +7341,12 @@ ...@@ -7322,12 +7341,12 @@
} }
}, },
"@koishijs/utils": { "@koishijs/utils": {
"version": "7.0.1", "version": "7.0.2",
"resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-7.0.1.tgz", "resolved": "https://registry.npmjs.org/@koishijs/utils/-/utils-7.0.2.tgz",
"integrity": "sha512-in0vSfgmsjURf8aw+Wagve5thVXGpZRawYZiN9/w0AElPZ0Y/nQtGDvI0UMRcjubizb/mZgO7j0FcdYMm24dqg==", "integrity": "sha512-IX6f6WjH3UvVKJ8dOppekEihnHbAPXuAwG8ZeiVGyh2nj7NuVm2Vzfwr4YtXzf5Xj6qZecjFuWchi262BTAg2A==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"inaba": "^1.1.1" "inaba": "^1.1.1"
} }
}, },
...@@ -7366,50 +7385,49 @@ ...@@ -7366,50 +7385,49 @@
} }
}, },
"@satorijs/core": { "@satorijs/core": {
"version": "2.2.2", "version": "2.3.7",
"resolved": "https://registry.npmjs.org/@satorijs/core/-/core-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@satorijs/core/-/core-2.3.7.tgz",
"integrity": "sha512-RmQcEZEdk3x2hprAcRFj88hSFdwH8QjQCJlzDGrkBPnr1IKjlWyDBLRXIiuLIdR0oxzBEK1cG5ZyX5c6N5CFkQ==", "integrity": "sha512-S73/8tf3z5d3iyJhhnaErm/ycLsi41PAcxnXbENdNsVGOzzTk14k4szTHiP0kgNH048eWaXrccn0+OrXt6tKFg==",
"peer": true, "peer": true,
"requires": { "requires": {
"@satorijs/element": "^2.3.5", "@satorijs/element": "^2.4.2",
"cordis": "^2.7.4", "cordis": "^2.8.0",
"cordis-axios": "^3.0.2", "cordis-axios": "^3.1.2",
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"reggol": "^1.3.5", "reggol": "^1.3.5",
"schemastery": "^3.7.2", "schemastery": "^3.8.1",
"ws": "^8.12.1" "ws": "^8.13.0"
} }
}, },
"@satorijs/element": { "@satorijs/element": {
"version": "2.3.5", "version": "2.4.2",
"resolved": "https://registry.npmjs.org/@satorijs/element/-/element-2.3.5.tgz", "resolved": "https://registry.npmjs.org/@satorijs/element/-/element-2.4.2.tgz",
"integrity": "sha512-ygmDFJQKCDKj8H4ViQxuUTNvTIluoXv//cocCsSSx+MLVl+oqsD0wdg1qcZgXe+zj7QpE8N4jKcIGbynT625+A==", "integrity": "sha512-IApzusrRuKNVMldyeiv0DIEXf885LFCgfATBdK5lTs4M92MBzhskwkPvfggGj9tza4F32CKv86z6P+h3i/x2qw==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.4.1" "cosmokit": "^1.4.2"
} }
}, },
"@satorijs/satori": { "@satorijs/satori": {
"version": "2.2.2", "version": "2.3.7",
"resolved": "https://registry.npmjs.org/@satorijs/satori/-/satori-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@satorijs/satori/-/satori-2.3.7.tgz",
"integrity": "sha512-VD5UqCG318OJ1i+KY/1tGjngF076NOsMP3a57pu2La0CJnIhls+h/CaQOJr3xy8tbR4MoAnjTPFoeteO2tXP8g==", "integrity": "sha512-6iSlenin+q08IJVUSP4mCsYW0LKfje44P2PR+2U6E+CczXXU1HwvXRS0m+D5dPe0PhH6y3dL84iuVD/VJQx90Q==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@satorijs/core": "2.2.2", "@satorijs/core": "2.3.7",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
"@types/ws": "^8.5.4", "@types/ws": "^8.5.4",
"agent-base": "^6.0.2",
"file-type": "^16.5.4", "file-type": "^16.5.4",
"http-proxy-agent": "^5.0.0", "http-proxy-agent": "^5.0.0",
"https-proxy-agent": "^5.0.1", "https-proxy-agent": "^5.0.1",
"koa": "^2.14.1", "koa": "^2.14.2",
"koa-bodyparser": "^4.3.0", "koa-bodyparser": "^4.4.0",
"parseurl": "^1.3.3", "parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1", "path-to-regexp": "^6.2.1",
"socks-proxy-agent": "^5.0.1", "socks-proxy-agent": "^5.0.1",
"ws": "^8.12.1" "ws": "^8.13.0"
} }
}, },
"@sinclair/typebox": { "@sinclair/typebox": {
...@@ -8312,22 +8330,22 @@ ...@@ -8312,22 +8330,22 @@
"peer": true "peer": true
}, },
"cordis": { "cordis": {
"version": "2.7.4", "version": "2.8.0",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-2.7.4.tgz", "resolved": "https://registry.npmjs.org/cordis/-/cordis-2.8.0.tgz",
"integrity": "sha512-SNP9JAhSjVHtozfmvU8HvREjsVSWTsQLuyHBH8PVnLZDJExe7l3srqNWs7vkKCrKWCqw8JH1Zj7kDF1bCbpwzw==", "integrity": "sha512-j1LTUayWF0ZYnVlgsuZD0AgVIEvfhKIzsDLsOMLtV9GoVIahV0k/1PzRZXuCSEOdA1/ZBcD3AUngaLlgL60dJQ==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.4.1" "cosmokit": "^1.4.2"
} }
}, },
"cordis-axios": { "cordis-axios": {
"version": "3.0.2", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/cordis-axios/-/cordis-axios-3.0.2.tgz", "resolved": "https://registry.npmjs.org/cordis-axios/-/cordis-axios-3.1.2.tgz",
"integrity": "sha512-dwG53efQ3MfdVOxB/oOS52hsct3fP3nOHLEOJFy6i8efjiKMk9WqrdFGRcH2pID/QmMNiTmMcqV61MGtCgYTbw==", "integrity": "sha512-Q0BfECvKxGW9JupvQnkpgczPOB+3bsvvbwlWcVt/M+O+gTurryo6FDv7hn4M+CjZLzYevvR0P+pXXRuk9naY0A==",
"peer": true, "peer": true,
"requires": { "requires": {
"axios": "~1.1.3", "axios": "~1.1.3",
"cosmokit": "^1.4.1", "cosmokit": "^1.4.2",
"mime-db": "^1.52.0" "mime-db": "^1.52.0"
}, },
"dependencies": { "dependencies": {
...@@ -8352,9 +8370,9 @@ ...@@ -8352,9 +8370,9 @@
} }
}, },
"cosmokit": { "cosmokit": {
"version": "1.4.1", "version": "1.4.2",
"resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.4.1.tgz", "resolved": "https://registry.npmjs.org/cosmokit/-/cosmokit-1.4.2.tgz",
"integrity": "sha512-d3ZRpKFahJRvLbo1T4y0ELCudjk9AeDUsfgKm+iAti6yPCeoPLGNUGT4expTWsNkrSA1uk7CKhtBPiizFYvDgA==" "integrity": "sha512-sUf9VhXySAHqH/CvTb8ATDDQWiMs115DKz+SLTdcjY4h9txWUhbRvUUrtgr8dhmWJdLN6o+Ow7UvvtBdvbaH2g=="
}, },
"cross-spawn": { "cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
...@@ -9889,9 +9907,9 @@ ...@@ -9889,9 +9907,9 @@
"dev": true "dev": true
}, },
"koa": { "koa": {
"version": "2.14.1", "version": "2.14.2",
"resolved": "https://registry.npmjs.org/koa/-/koa-2.14.1.tgz", "resolved": "https://registry.npmjs.org/koa/-/koa-2.14.2.tgz",
"integrity": "sha512-USJFyZgi2l0wDgqkfD27gL4YGno7TfUkcmOe6UOLFOVuN+J7FwnNu4Dydl4CUQzraM1lBAiGed0M9OVJoT0Kqw==", "integrity": "sha512-VFI2bpJaodz6P7x2uyLiX6RLYpZmOJqNmoCst/Yyd7hQlszyPwG/I9CQJ63nOtKSxpt5M7NH67V6nJL2BwCl7g==",
"peer": true, "peer": true,
"requires": { "requires": {
"accepts": "^1.3.5", "accepts": "^1.3.5",
...@@ -9954,15 +9972,15 @@ ...@@ -9954,15 +9972,15 @@
} }
}, },
"koishi": { "koishi": {
"version": "4.12.1", "version": "4.13.0",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.12.1.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.13.0.tgz",
"integrity": "sha512-rv8IgF1tGFsLECabLMzWn01p9HG7CCvpPFww23f4RHmo+V8r9ZneHsyPO4/nymV79Xhy9o+7pLpn9HQuhQzu/Q==", "integrity": "sha512-IW+VQ4hcH2QvThhVAfSIP1GZYi59rXkQgROzqG6J+m1O593Qt39p0RpexiofGMkJtn/JYGtZ2/ugUr1f4gjf8Q==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koishijs/core": "4.12.1", "@koishijs/core": "4.13.0",
"@koishijs/loader": "3.1.1", "@koishijs/loader": "3.2.0",
"@koishijs/utils": "^7.0.1", "@koishijs/utils": "^7.0.2",
"@satorijs/satori": "^2.2.2", "@satorijs/satori": "^2.3.7",
"cac": "^6.7.14", "cac": "^6.7.14",
"kleur": "^4.1.5", "kleur": "^4.1.5",
"ns-require": "^1.1.4" "ns-require": "^1.1.4"
...@@ -10659,12 +10677,12 @@ ...@@ -10659,12 +10677,12 @@
"peer": true "peer": true
}, },
"schemastery": { "schemastery": {
"version": "3.7.2", "version": "3.8.1",
"resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.7.2.tgz", "resolved": "https://registry.npmjs.org/schemastery/-/schemastery-3.8.1.tgz",
"integrity": "sha512-CiDDwMQeNq7eusS4TSuo5bMfi/RORPXbBNMpd1s8a5I2ukD5NOpExNKfgHJSK6Sy4PcjY35luIw7bVo84dkPHw==", "integrity": "sha512-2y3HVoDtZncx+0GCPdDOQrDbwHMloykB+2s/sl4kXxVZyoZ+/U1fkS/FlbShRQt9UgwQ1f+iRlcsCChQBfkDwQ==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.4.1" "cosmokit": "^1.4.2"
} }
}, },
"schemastery-gen": { "schemastery-gen": {
......
...@@ -72,6 +72,6 @@ ...@@ -72,6 +72,6 @@
"testEnvironment": "node" "testEnvironment": "node"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.12.1" "koishi": "^4.13.0"
} }
} }
...@@ -37,7 +37,6 @@ export const { ...@@ -37,7 +37,6 @@ export const {
UseEvent, UseEvent,
UseBeforeEvent, UseBeforeEvent,
UseMiddleware, UseMiddleware,
UsePreset,
UseInterval, UseInterval,
UseComponent, UseComponent,
} = methodDecorators; } = methodDecorators;
......
...@@ -203,7 +203,6 @@ export class KoishiRegistrar extends Registrar<Context> { ...@@ -203,7 +203,6 @@ export class KoishiRegistrar extends Registrar<Context> {
UsePreset: this.decorateMethod( UsePreset: this.decorateMethod(
'preset', 'preset',
({ ctx }, fun: I18n.Renderer, name: string) => { ({ ctx }, fun: I18n.Renderer, name: string) => {
ctx.i18n.preset(name, fun);
ctx.on('dispose', () => { ctx.on('dispose', () => {
delete ctx.i18n._presets[name]; delete ctx.i18n._presets[name];
}); });
......
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