From 002882776184d8661033f6bca8cacb4d789b4d99 Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 7 Jan 2022 23:00:14 +0800 Subject: [PATCH] bump version --- package.json | 10 +++++----- packages/geoip/package.json | 4 ++-- packages/hydrojudge/package.json | 4 ++-- packages/hydrooj/package.json | 8 ++++---- packages/hydrooj/src/handler/problem.ts | 4 ++-- packages/hydrooj/src/model/record.ts | 4 ++-- packages/login-with-github/package.json | 2 +- packages/login-with-google/package.json | 2 +- packages/login-with-osu/package.json | 2 +- packages/login-with-qq/package.json | 2 +- packages/migrate-hustoj/package.json | 2 +- packages/ui-default/package.json | 18 +++++++++--------- packages/vjudge/package.json | 4 ++-- 13 files changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index a0b14377d..95518e417 100644 --- a/package.json +++ b/package.json @@ -28,18 +28,18 @@ "license": "AGPL-3.0-only", "devDependencies": { "@types/cross-spawn": "^6.0.2", - "@types/node": "^16.11.13", + "@types/node": "^16.11.19", "@types/semver": "^7.3.9", - "@typescript-eslint/eslint-plugin": "5.7.0", - "@typescript-eslint/parser": "5.7.0", + "@typescript-eslint/eslint-plugin": "5.9.0", + "@typescript-eslint/parser": "5.9.0", "cac": "^6.7.12", "cross-env": "^7.0.3", "cross-spawn": "^7.0.3", "esbuild": "0.14.3", - "eslint": "8.4.1", + "eslint": "^8.6.0", "eslint-config-airbnb-typescript": "12.3.1", "eslint-import-resolver-typescript": "2.5.0", - "eslint-plugin-import": "2.25.3", + "eslint-plugin-import": "2.25.4", "eslint-plugin-simple-import-sort": "7.0.0", "fs-extra": "^10.0.0", "globby": "11.0.4", diff --git a/packages/geoip/package.json b/packages/geoip/package.json index 8b7675950..ea047e576 100644 --- a/packages/geoip/package.json +++ b/packages/geoip/package.json @@ -1,12 +1,12 @@ { "name": "@hydrooj/geoip", - "version": "1.2.1", + "version": "1.2.2", "main": "package.json", "repository": "git@github.com:hydro-dev/Hydro.git", "author": "undefined ", "license": "AGPL-3.0-or-later", "dependencies": { - "maxmind": "^4.3.2" + "maxmind": "^4.3.4" }, "preferUnplugged": true, "scripts": { diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 6f396c0f8..80615ebdf 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.12.14", + "version": "2.12.15", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", @@ -16,7 +16,7 @@ "mongodb": "^3.7.3", "p-queue": "^7.1.0", "shell-quote": "^1.7.3", - "ws": "^8.3.0" + "ws": "^8.4.0" }, "preferUnplugged": true, "license": "AGPL-3.0-or-later", diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index ff82c2d72..f5817bb2d 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "3.3.3", + "version": "3.3.4", "bin": "bin/hydrooj.js", "main": "src/loader", "module": "src/loader", @@ -21,7 +21,7 @@ "detect-browser": "^5.3.0", "esbuild": "0.14.3", "fs-extra": "^10.0.0", - "graphql": "^16.1.0", + "graphql": "^16.2.0", "graphql-scalars": "1.14.1", "js-yaml": "^4.1.0", "koa": "^2.13.4", @@ -64,10 +64,10 @@ "@types/mongodb": "^3.6.20", "@types/nodemailer": "^6.4.4", "@types/notp": "^2.0.1", - "@types/serialize-javascript": "^5.0.1", + "@types/serialize-javascript": "^5.0.2", "@types/sockjs": "^0.3.33", "@types/source-map-support": "^0.5.4", - "@types/superagent": "^4.1.13", + "@types/superagent": "^4.1.14", "moment": "^2.29.1", "pm2": "^5.1.2" }, diff --git a/packages/hydrooj/src/handler/problem.ts b/packages/hydrooj/src/handler/problem.ts index 73f354b5d..4ba30d694 100644 --- a/packages/hydrooj/src/handler/problem.ts +++ b/packages/hydrooj/src/handler/problem.ts @@ -485,7 +485,7 @@ export class ProblemEditHandler extends ProblemManageHandler { @post('hidden', Types.Boolean) @post('tag', Types.Content, true, null, parseCategory) @post('difficulty', Types.PositiveInt, (i) => +i <= 10, true) - @post('assign', Types.CommaSeperatedArray) + @post('assign', Types.CommaSeperatedArray, true) async post( domainId: string, pid: string | number, title: string, content: string, newPid: string = '', hidden = false, tag: string[] = [], difficulty = 0, assign: string[] = [], @@ -789,7 +789,7 @@ export class ProblemCreateHandler extends Handler { @post('hidden', Types.Boolean) @post('difficulty', Types.PositiveInt, (i) => +i <= 10, true) @post('tag', Types.Content, true, null, parseCategory) - @post('assign', Types.CommaSeperatedArray) + @post('assign', Types.CommaSeperatedArray, true) async post( domainId: string, title: string, content: string, pid: string, hidden = false, difficulty = 0, tag: string[] = [], assign: string[] = [], diff --git a/packages/hydrooj/src/model/record.ts b/packages/hydrooj/src/model/record.ts index 933f5830a..f57e48607 100644 --- a/packages/hydrooj/src/model/record.ts +++ b/packages/hydrooj/src/model/record.ts @@ -33,8 +33,8 @@ class RecordModel { return base - ((pending * 1000 + 1) * (sum(timeRecent.map((i) => i.time || 0)) / 10000)); } - static async get(_id: ObjectID): Promise - static async get(domainId: string, _id: ObjectID): Promise + static async get(_id: ObjectID): Promise; + static async get(domainId: string, _id: ObjectID): Promise; static async get(arg0: string | ObjectID, arg1?: any) { const _id = arg1 || arg0; const domainId = arg1 ? arg0 : null; diff --git a/packages/login-with-github/package.json b/packages/login-with-github/package.json index bcbfb6682..fa2344ce8 100644 --- a/packages/login-with-github/package.json +++ b/packages/login-with-github/package.json @@ -7,7 +7,7 @@ "license": "AGPL-3.0-or-later", "preferUnplugged": true, "devDependencies": { - "@types/superagent": "^4.1.13" + "@types/superagent": "^4.1.14" }, "peerDependencies": { "hydrooj": "*" diff --git a/packages/login-with-google/package.json b/packages/login-with-google/package.json index f147bc08c..878784ce0 100644 --- a/packages/login-with-google/package.json +++ b/packages/login-with-google/package.json @@ -7,7 +7,7 @@ "license": "AGPL-3.0-or-later", "preferUnplugged": true, "devDependencies": { - "@types/superagent": "^4.1.13" + "@types/superagent": "^4.1.14" }, "peerDependencies": { "hydrooj": "*" diff --git a/packages/login-with-osu/package.json b/packages/login-with-osu/package.json index bd0387f6f..66b1d4289 100644 --- a/packages/login-with-osu/package.json +++ b/packages/login-with-osu/package.json @@ -7,7 +7,7 @@ "license": "AGPL-3.0-or-later", "preferUnplugged": true, "devDependencies": { - "@types/superagent": "^4.1.13" + "@types/superagent": "^4.1.14" }, "peerDependencies": { "hydrooj": "*" diff --git a/packages/login-with-qq/package.json b/packages/login-with-qq/package.json index b1ec8ab72..97ca730f9 100644 --- a/packages/login-with-qq/package.json +++ b/packages/login-with-qq/package.json @@ -7,7 +7,7 @@ "license": "AGPL-3.0-or-later", "preferUnplugged": true, "dependencies": { - "ws": "^8.3.0" + "ws": "^8.4.0" }, "devDependencies": { "@types/ws": "^8.2.2" diff --git a/packages/migrate-hustoj/package.json b/packages/migrate-hustoj/package.json index f26308d89..f04305347 100644 --- a/packages/migrate-hustoj/package.json +++ b/packages/migrate-hustoj/package.json @@ -11,7 +11,7 @@ "build": "tsc" }, "devDependencies": { - "@types/mysql": "^2.15.19" + "@types/mysql": "^2.15.20" }, "dependencies": { "@hydrooj/utils": "workspace:*", diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 5f87d1f2f..6fc598946 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.27.18", + "version": "4.28.0", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js", @@ -13,10 +13,10 @@ "@blueprintjs/core": "^3.52.0", "@hydrooj/utils": "workspace:*", "@types/gulp-if": "^0.0.34", - "@types/jquery": "^3.5.10", + "@types/jquery": "^3.5.11", "@types/json-schema": "^7.0.9", "@types/katex": "^0.11.1", - "@types/qrcode": "^1.4.1", + "@types/qrcode": "^1.4.2", "@types/sockjs-client": "^1.5.1", "@undefined-moe/monaco-yaml": "^2.5.0", "ansi_up": "^5.1.0", @@ -32,12 +32,12 @@ "emojis-keywords": "2.0.0", "emojis-list": "2.1.0", "esbuild-loader": "^2.17.0", - "eslint": "^8.4.1", + "eslint": "^8.6.0", "eslint-config-airbnb": "^18.2.1", "eslint-import-resolver-webpack": "^0.13.2", - "eslint-plugin-import": "^2.25.3", + "eslint-plugin-import": "^2.25.4", "eslint-plugin-jsx-a11y": "^6.5.1", - "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react": "^7.28.0", "fancy-log": "^1.3.3", "file-loader": "^6.2.0", "friendly-errors-webpack-plugin": "^1.7.0", @@ -64,8 +64,8 @@ "plugin-error": "^1.0.1", "postcss-loader": "^3.0.0", "prism-themes": "^1.9.0", - "prismjs": "^1.25.0", - "prop-types": "^15.7.2", + "prismjs": "^1.26.0", + "prop-types": "^15.8.1", "qrcode": "^1.5.0", "raw-loader": "^4.0.2", "react": "^17.0.2", @@ -90,7 +90,7 @@ "through2": "^4.0.2", "timeago-react": "^3.0.4", "timeago.js": "^4.0.2", - "vditor": "^3.8.8", + "vditor": "^3.8.10", "vinyl-buffer": "^1.0.1", "wastyle": "^0.0.5", "web-streams-polyfill": "^3.2.0", diff --git a/packages/vjudge/package.json b/packages/vjudge/package.json index 8bec6409a..5666c0cd9 100644 --- a/packages/vjudge/package.json +++ b/packages/vjudge/package.json @@ -15,9 +15,9 @@ "superagent-proxy": "^2.1.0" }, "devDependencies": { - "@types/jsdom": "^16.2.13", + "@types/jsdom": "^16.2.14", "@types/lodash": "^4.14.178", - "@types/superagent": "^4.1.13", + "@types/superagent": "^4.1.14", "@types/superagent-proxy": "^2.0.1" } }