mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix some bugs, bump ver(2.15.0), update install
This commit is contained in:
1 parent
4d031eb9ab
commit
bd8ff05387
29 files changed
+226
-162
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.1.34",
|
||||
"version": "2.2.0",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
@@ -14,12 +14,11 @@
|
||||
"lodash": "^4.17.20",
|
||||
"p-queue": "^6.6.1",
|
||||
"shell-quote": "^1.7.2",
|
||||
"supports-color": "^8.0.0",
|
||||
"systeminformation": "^4.31.1",
|
||||
"systeminformation": "^4.32.0",
|
||||
"yargs": "^16.2.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"hydrooj": "^2.13.3"
|
||||
"hydrooj": "^2.15.0"
|
||||
},
|
||||
"license": "AGPL-3.0-only",
|
||||
"devDependencies": {
|
||||
@@ -32,4 +31,4 @@
|
||||
"build": "tsc",
|
||||
"lint": "eslint . --ext ts --fix"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
import { inspect, InspectOptions, format } from 'util';
|
||||
import { argv } from 'yargs';
|
||||
import { stderr } from 'supports-color';
|
||||
|
||||
namespace Time {
|
||||
export const second = 1000;
|
||||
@@ -23,7 +22,7 @@ namespace Time {
|
||||
}
|
||||
}
|
||||
|
||||
const colors = stderr.level < 2 ? [6, 2, 3, 4, 5, 1] : [
|
||||
const colors = [
|
||||
20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62,
|
||||
63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113,
|
||||
129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168,
|
||||
@@ -59,7 +58,7 @@ export class Logger {
|
||||
static lastTime = 0
|
||||
|
||||
static options: InspectOptions = {
|
||||
colors: stderr.hasBasic,
|
||||
colors: process.stderr.isTTY,
|
||||
}
|
||||
|
||||
static formatters: Record<string, (this: Logger, value: any) => string> = {
|
||||
|
||||
Reference in new issue
Block a user