From a24fec2e7ceecb6c720c94adbfbb8058a6da77da Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 27 Nov 2022 03:06:50 +0800 Subject: [PATCH] bump version --- build/{utils.js => utils.ts} | 17 +++++++---------- package.json | 2 +- packages/center/package.json | 2 +- packages/fps-importer/package.json | 2 +- packages/hydrojudge/package.json | 6 +++--- packages/hydrooj/package.json | 16 ++++++++-------- packages/migrate/package.json | 2 +- packages/prom-client/package.json | 2 +- packages/ui-default/package.json | 4 ++-- packages/utils/package.json | 2 +- packages/vjudge/package.json | 4 ++-- 11 files changed, 28 insertions(+), 31 deletions(-) rename build/{utils.js => utils.ts} (60%) diff --git a/build/utils.js b/build/utils.ts similarity index 60% rename from build/utils.js rename to build/utils.ts index ed8afce7..3e387525 100644 --- a/build/utils.js +++ b/build/utils.ts @@ -1,9 +1,10 @@ -const globby = require('globby'); -const spawn = require('cross-spawn'); +import { SpawnOptions } from 'child_process'; +import spawn from 'cross-spawn'; +import { globby } from 'globby'; -const cwd = process.cwd(); +export const cwd = process.cwd(); -function getWorkspaces() { +export function getWorkspaces() { return globby(require('../package.json').workspaces, { cwd, deep: 0, @@ -12,9 +13,9 @@ function getWorkspaces() { }); } -function spawnAsync(command, path) { +export function spawnAsync(command, path) { const args = command.split(/\s+/); - const options = { stdio: 'inherit' }; + const options: SpawnOptions = { stdio: 'inherit' }; if (path) options.cwd = path; const child = spawn(args[0], args.slice(1), options); return new Promise((resolve, reject) => { @@ -22,7 +23,3 @@ function spawnAsync(command, path) { child.on('error', reject); }); } - -module.exports = { - cwd, spawnAsync, getWorkspaces, -}; diff --git a/package.json b/package.json index df948e23..9074e04b 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "8.0.0", "fs-extra": "^10.1.0", - "globby": "11.1.0", + "globby": "13.1.2", "latest-version": "7.0.0", "mocha": "^10.1.0", "mongodb": "^3.7.3", diff --git a/packages/center/package.json b/packages/center/package.json index d1dc42bf..ec1eb0c6 100644 --- a/packages/center/package.json +++ b/packages/center/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/center", - "version": "0.2.1", + "version": "0.2.2", "main": "index.ts", "repository": "https://github.com/hydro-dev/Hydro.git", "author": "undefined ", diff --git a/packages/fps-importer/package.json b/packages/fps-importer/package.json index 02c2de2f..fa6c4a65 100644 --- a/packages/fps-importer/package.json +++ b/packages/fps-importer/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/fps-importer", - "version": "1.5.1", + "version": "1.5.2", "description": "Import FPS problems", "main": "index.ts", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 85f48df0..81f0a5f9 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "3.1.8", + "version": "3.1.9", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", @@ -15,7 +15,7 @@ "p-queue": "^7.3.0", "schemastery": "^3.5.4", "shell-quote": "^1.7.4", - "superagent": "^8.0.3", + "superagent": "^8.0.4", "ws": "^8.11.0" }, "preferUnplugged": true, @@ -23,7 +23,7 @@ "devDependencies": { "@types/fs-extra": "^9.0.13", "@types/js-yaml": "^4.0.5", - "@types/lodash": "^4.14.189", + "@types/lodash": "^4.14.190", "@types/shell-quote": "^1.7.1", "@types/ws": "^8.5.3" } diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 3d0b9676..c015d545 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "4.3.2", + "version": "4.4.0", "bin": "bin/hydrooj.js", "main": "src/plugin-api", "module": "src/plugin-api", @@ -12,11 +12,11 @@ }, "preferUnplugged": true, "dependencies": { - "@aws-sdk/client-s3": "^3.215.0", - "@aws-sdk/lib-storage": "^3.215.0", + "@aws-sdk/client-s3": "^3.216.0", + "@aws-sdk/lib-storage": "^3.216.0", "@aws-sdk/middleware-endpoint": "^3.215.0", - "@aws-sdk/s3-presigned-post": "^3.215.0", - "@aws-sdk/s3-request-presigner": "^3.215.0", + "@aws-sdk/s3-presigned-post": "^3.216.0", + "@aws-sdk/s3-request-presigner": "^3.216.0", "@graphql-tools/schema": "^9.0.10", "@hydrooj/utils": "workspace:*", "adm-zip": "0.5.5", @@ -51,7 +51,7 @@ "schemastery": "^3.5.4", "semver": "^7.3.8", "serialize-javascript": "^6.0.0", - "superagent": "^8.0.3", + "superagent": "^8.0.4", "tar": "^6.1.12", "thirty-two": "^1.0.2", "ws": "^8.11.0" @@ -64,7 +64,7 @@ "@types/koa-compress": "^4.0.3", "@types/koa-router": "^7.4.4", "@types/koa-static-cache": "^5.1.1", - "@types/lodash": "^4.14.189", + "@types/lodash": "^4.14.190", "@types/mime-types": "^2.1.1", "@types/mongodb": "^3.6.20", "@types/nodemailer": "^6.4.6", @@ -72,7 +72,7 @@ "@types/saslprep": "^1.0.1", "@types/semver": "^7.3.13", "@types/serialize-javascript": "^5.0.2", - "@types/superagent": "^4.1.15", + "@types/superagent": "^4.1.16", "@types/tar": "^6.1.3", "moment": "^2.29.4" } diff --git a/packages/migrate/package.json b/packages/migrate/package.json index 626ce15d..ba1975c0 100644 --- a/packages/migrate/package.json +++ b/packages/migrate/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/migrate", - "version": "0.2.1", + "version": "0.2.2", "main": "index.ts", "repository": "git@github.com:hydro-dev/Hydro.git", "author": "undefined ", diff --git a/packages/prom-client/package.json b/packages/prom-client/package.json index fd9df0c2..c74e9fda 100644 --- a/packages/prom-client/package.json +++ b/packages/prom-client/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/prom-client", - "version": "0.1.3", + "version": "0.1.4", "main": "index.ts", "dependencies": { "prom-client": "^14.1.0" diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index 372547f9..543927a2 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.42.18", + "version": "4.42.19", "author": "undefined ", "license": "AGPL-3.0", "main": "index.ts", @@ -52,7 +52,7 @@ "fancy-log": "^2.0.0", "flatpickr": "^4.6.13", "friendly-errors-webpack-plugin": "^1.7.0", - "graphiql": "2.1.0", + "graphiql": "2.2.0", "gulp": "^4.0.2", "gulp-iconfont": "^11.0.1", "gulp-if": "^3.0.0", diff --git a/packages/utils/package.json b/packages/utils/package.json index 9dbfb6fc..cab2fb84 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -14,7 +14,7 @@ "js-yaml": "^4.1.0", "moment-timezone": "^0.5.39", "mongodb": "^3.7.3", - "reggol": "^1.3.1", + "reggol": "^1.3.2", "source-map-support": "^0.5.21", "systeminformation": "^5.14.4" }, diff --git a/packages/vjudge/package.json b/packages/vjudge/package.json index 34028c46..b6c51e48 100644 --- a/packages/vjudge/package.json +++ b/packages/vjudge/package.json @@ -15,12 +15,12 @@ "puppeteer-extra": "3.3.0", "puppeteer-extra-plugin-portal": "3.1.0", "puppeteer-extra-plugin-stealth": "2.10.1", - "superagent": "^8.0.3", + "superagent": "^8.0.4", "superagent-proxy": "^3.0.0" }, "devDependencies": { "@types/jsdom": "^20.0.1", - "@types/superagent": "^4.1.15", + "@types/superagent": "^4.1.16", "@types/superagent-proxy": "^3.0.0" } }