w: dep: lock adm-zip to 0.5.5

This commit is contained in:
undefined committed 2021-12-21 20:41:22 +08:00
1 parent 00972003fe
commit 40c90c0574
6 files changed
+9 -10

No files matched your search

+1 -2
View File
@@ -66,7 +66,6 @@ const mirrors = {
official: 'https://repo.mongodb.org/apt/ubuntu', official: 'https://repo.mongodb.org/apt/ubuntu',
}, },
minio: { minio: {
china: 'http://dl.minio.org.cn/server/minio/release/linux-amd64/minio',
undefined: 'https://s3.undefined.moe/public/minio', undefined: 'https://s3.undefined.moe/public/minio',
official: 'https://dl.min.io/server/minio/release/linux-amd64/minio', official: 'https://dl.min.io/server/minio/release/linux-amd64/minio',
}, },
@@ -245,7 +244,7 @@ apt-get -qq update && apt-get -q install -y mongodb-org`, { retry: true }],
}, },
{ {
init: 'install.minio', init: 'install.minio',
skip: () => fs.exist('/root/.hydro/env'), skip: () => __env.SKIP_MINIO || fs.exist('/root/.hydro/env'),
operations: [ operations: [
[`curl -fSL ${getMirror('minio')} -o /usr/bin/minio`, { retry: true }], [`curl -fSL ${getMirror('minio')} -o /usr/bin/minio`, { retry: true }],
'chmod +x /usr/bin/minio', 'chmod +x /usr/bin/minio',
+1 -1
View File
@@ -123,7 +123,7 @@ class FpsProblemImportHandler extends Handler {
} catch { } } catch { }
} }
} }
if (!tasks.length) throw new ValidationError('file'); if (!tasks.length) throw new ValidationError('file', null, 'No valid fps format file found');
for (const task of tasks) await this.run(domainId, task); for (const task of tasks) await this.run(domainId, task);
this.response.redirect = this.url('problem_main'); this.response.redirect = this.url('problem_main');
} }
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/fps-importer", "name": "@hydrooj/fps-importer",
"version": "1.3.2", "version": "1.3.3",
"description": "Import FPS problems", "description": "Import FPS problems",
"main": "package.json", "main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
@@ -8,7 +8,7 @@
"license": "SEE LICENSE IN LICENSE", "license": "SEE LICENSE IN LICENSE",
"preferUnplugged": true, "preferUnplugged": true,
"dependencies": { "dependencies": {
"adm-zip": "0.5.9", "adm-zip": "0.5.5",
"decode-html": "^2.0.0", "decode-html": "^2.0.0",
"fs-extra": "^10.0.0", "fs-extra": "^10.0.0",
"mongodb": "^3.7.3", "mongodb": "^3.7.3",
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "3.2.25", "version": "3.2.26",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/loader", "main": "src/loader",
"module": "src/loader", "module": "src/loader",
@@ -14,7 +14,7 @@
"dependencies": { "dependencies": {
"@graphql-tools/schema": "^8.3.1", "@graphql-tools/schema": "^8.3.1",
"@hydrooj/utils": "workspace:*", "@hydrooj/utils": "workspace:*",
"adm-zip": "0.5.9", "adm-zip": "0.5.5",
"ansi_up": "^5.1.0", "ansi_up": "^5.1.0",
"cac": "^6.7.12", "cac": "^6.7.12",
"cookies": "^0.8.0", "cookies": "^0.8.0",
+1 -1
View File
@@ -71,7 +71,7 @@ export interface EventMap extends Record<string, any> {
'handler/after': (thisArg: Handler) => VoidReturn 'handler/after': (thisArg: Handler) => VoidReturn
'handler/finish/UserRegister': (thisArg: UserRegisterHandler) => VoidReturn 'handler/finish/UserRegister': (thisArg: UserRegisterHandler) => VoidReturn
'handler/finish': (thisArg: Handler) => VoidReturn 'handler/finish': (thisArg: Handler) => VoidReturn
'handler/error': (thisArg: Handler) => VoidReturn 'handler/error': (thisArg: Handler, e: Error) => VoidReturn
'handler/solution/get': (thisArg: ProblemSolutionHandler) => VoidReturn 'handler/solution/get': (thisArg: ProblemSolutionHandler) => VoidReturn
'discussion/before-add': (payload: Partial<DiscussionDoc>) => VoidReturn 'discussion/before-add': (payload: Partial<DiscussionDoc>) => VoidReturn
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/import-qduoj", "name": "@hydrooj/import-qduoj",
"version": "1.3.1", "version": "1.3.2",
"description": "Import QDUOJ problem export", "description": "Import QDUOJ problem export",
"main": "package.json", "main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
@@ -8,7 +8,7 @@
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"preferUnplugged": true, "preferUnplugged": true,
"dependencies": { "dependencies": {
"adm-zip": "0.5.9", "adm-zip": "0.5.5",
"decode-html": "^2.0.0", "decode-html": "^2.0.0",
"fs-extra": "^10.0.0" "fs-extra": "^10.0.0"
} }