mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
upgrade deps
This commit is contained in:
16 files changed
+81
-95
No files matched your search
@@ -12,12 +12,12 @@
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.451.0",
|
||||
"@aws-sdk/lib-storage": "3.451.0",
|
||||
"@aws-sdk/client-s3": "3.456.0",
|
||||
"@aws-sdk/lib-storage": "3.456.0",
|
||||
"@aws-sdk/middleware-endpoint": "3.374.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.451.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.451.0",
|
||||
"@graphql-tools/schema": "^10.0.0",
|
||||
"@aws-sdk/s3-presigned-post": "3.456.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.456.0",
|
||||
"@graphql-tools/schema": "^10.0.2",
|
||||
"@hydrooj/utils": "workspace:*",
|
||||
"@simplewebauthn/server": "7.4.0",
|
||||
"adm-zip": "0.5.5",
|
||||
@@ -37,7 +37,7 @@
|
||||
"koa-router": "^12.0.1",
|
||||
"koa-static-cache": "^5.1.4",
|
||||
"lodash": "^4.17.21",
|
||||
"lru-cache": "^10.0.2",
|
||||
"lru-cache": "^10.1.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"moment-timezone": "^0.5.43",
|
||||
"mongodb": "^5.9.1",
|
||||
@@ -60,19 +60,19 @@
|
||||
"@types/adm-zip": "^0.4.34",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/koa": "^2.13.11",
|
||||
"@types/koa": "^2.13.12",
|
||||
"@types/koa-compress": "^4.0.6",
|
||||
"@types/koa-router": "^7.4.7",
|
||||
"@types/koa-router": "^7.4.8",
|
||||
"@types/koa-static-cache": "^5.1.4",
|
||||
"@types/lodash": "^4.14.201",
|
||||
"@types/lodash": "^4.14.202",
|
||||
"@types/mime-types": "^2.1.4",
|
||||
"@types/nodemailer": "^6.4.14",
|
||||
"@types/notp": "^2.0.5",
|
||||
"@types/saslprep": "^1.0.3",
|
||||
"@types/semver": "^7.5.5",
|
||||
"@types/semver": "^7.5.6",
|
||||
"@types/serialize-javascript": "^5.0.4",
|
||||
"@types/superagent": "^4.1.21",
|
||||
"@types/tar": "^6.1.9",
|
||||
"@types/superagent": "^4.1.22",
|
||||
"@types/tar": "^6.1.10",
|
||||
"moment": "^2.29.4"
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,8 @@ class SystemScriptHandler extends SystemHandler {
|
||||
args = global.Hydro.script[id].validate(args);
|
||||
}
|
||||
const rid = await record.add(domainId, -1, this.user._id, '-', id, false, { input: raw, type: 'pretest' });
|
||||
const report = (data) => judge.next({ domainId, rid, ...data });
|
||||
const rdoc = await record.get(rid);
|
||||
const report = (data) => judge.next({ domainId, rid, ...data,rdoc });
|
||||
report({ message: `Running script: ${id} `, status: STATUS.STATUS_JUDGING });
|
||||
const start = Date.now();
|
||||
// Maybe async?
|
||||
@@ -121,6 +122,7 @@ class SystemScriptHandler extends SystemHandler {
|
||||
judger: 1,
|
||||
time,
|
||||
memory: 0,
|
||||
rdoc,
|
||||
});
|
||||
})
|
||||
.catch((err: Error) => {
|
||||
@@ -134,6 +136,7 @@ class SystemScriptHandler extends SystemHandler {
|
||||
judger: 1,
|
||||
time,
|
||||
memory: 0,
|
||||
rdoc,
|
||||
});
|
||||
});
|
||||
this.response.body = { rid };
|
||||
|
||||
Reference in new issue
Block a user