mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
bump beta.10
This commit is contained in:
27 files changed
+143
-112
No files matched your search
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"name": "@hydrooj/eslint-config",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.2",
|
||||
"license": "MIT",
|
||||
"main": "base.mjs",
|
||||
"repository": "https://github.com/hydro-dev/Hydro",
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^5.3.0",
|
||||
"@eslint-react/eslint-plugin": "^1.53.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
||||
"@typescript-eslint/parser": "^8.43.0",
|
||||
"eslint-plugin-de-morgan": "^1.3.1",
|
||||
"@antfu/eslint-config": "^6.0.0",
|
||||
"@eslint-react/eslint-plugin": "^2.2.2",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
||||
"@typescript-eslint/parser": "^8.46.1",
|
||||
"eslint-plugin-de-morgan": "^2.0.0",
|
||||
"eslint-plugin-github": "^6.0.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.20",
|
||||
"eslint-plugin-react-hooks": "^7.0.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.24",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||
"globals": "^16.4.0"
|
||||
},
|
||||
|
||||
@@ -130,6 +130,17 @@ export class ApiService extends Service {
|
||||
});
|
||||
}
|
||||
|
||||
serialize() {
|
||||
const result = {};
|
||||
for (const key in APIS) {
|
||||
result[key] = {
|
||||
type: APIS[key].type,
|
||||
input: APIS[key].input.toJSON(),
|
||||
};
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
async execute(
|
||||
context: ApiExecutionContext, callOrName: ApiCall<ApiType, any, any> | string,
|
||||
rawArgs: any, emitHook?: any, project?: any, sendPayload?: (payload: any) => void,
|
||||
@@ -255,9 +266,9 @@ export class ApiConnectionHandler<C extends Context> extends ConnectionHandler<C
|
||||
}
|
||||
}
|
||||
|
||||
export function applyApiHandler(ctx: Context, name: string, path: string) {
|
||||
export async function applyApiHandler(ctx: Context, name: string, path: string) {
|
||||
ctx.plugin(ApiService);
|
||||
ctx.inject(['server', 'api'], ({ Route, Connection }) => {
|
||||
await ctx.inject(['server', 'api'], ({ Route, Connection }) => {
|
||||
Route(name, path, ApiHandler);
|
||||
Connection(`${name}_conn`, `${path}/conn`, ApiConnectionHandler);
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/framework",
|
||||
"version": "0.2.3",
|
||||
"version": "0.2.4",
|
||||
"main": "index.ts",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/hydro-dev/Hydro",
|
||||
@@ -10,15 +10,15 @@
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@koa/router": "^14.0.0",
|
||||
"emoji-regex": "^10.5.0",
|
||||
"fs-extra": "^11.3.1",
|
||||
"koa": "^3.0.1",
|
||||
"emoji-regex": "^10.6.0",
|
||||
"fs-extra": "^11.3.2",
|
||||
"koa": "^3.0.3",
|
||||
"koa-body": "^6.0.1",
|
||||
"koa-compress": "^5.1.1",
|
||||
"path-to-regexp": "^8.3.0",
|
||||
"sanitize-filename": "^1.6.3",
|
||||
"saslprep": "^1.0.3",
|
||||
"schemastery": "^3.17.0",
|
||||
"schemastery": "^3.17.1",
|
||||
"shorty.js": "^1.0.1",
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/utils",
|
||||
"version": "1.4.36",
|
||||
"version": "1.4.37",
|
||||
"description": "hydrooj utils",
|
||||
"main": "lib/utils.ts",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
@@ -14,11 +14,11 @@
|
||||
"dependencies": {
|
||||
"@hydrooj/register": "workspace:^",
|
||||
"cac": "^6.7.14",
|
||||
"fs-extra": "^11.3.1",
|
||||
"fs-extra": "^11.3.2",
|
||||
"js-yaml": "^4.1.0",
|
||||
"reggol": "^2.1.0",
|
||||
"search-query-parser": "^1.6.0",
|
||||
"systeminformation": "^5.27.8"
|
||||
"systeminformation": "^5.27.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.4"
|
||||
|
||||
Reference in new issue
Block a user