使用 @param 验证接口

This commit is contained in:
undefined committed 2020-07-10 22:54:26 +08:00
1 parent 4e85b696c0
commit 19cf1a5304
22 files changed
+657 -393

No files matched your search

+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.6.0",
"version": "2.7.0",
"main": "hydro/loader.js",
"repository": "https://github.com/hydro-dev/Hydro.git",
"author": "masnn",
@@ -16,7 +16,7 @@
"koa-morgan": "^1.0.1",
"koa-router": "^8.0.8",
"koa-static-cache": "^5.1.3",
"lodash": "^4.17.15",
"lodash": "^4.17.19",
"markdown-it": "^11.0.0",
"markdown-it-anchor": "^5.3.0",
"markdown-it-container": "^3.0.0",
@@ -29,6 +29,7 @@
"nodemailer": "^6.4.10",
"nunjucks": "^3.2.1",
"prismjs": "^1.20.0",
"saslprep": "^1.0.3",
"sockjs": "^0.3.20",
"superagent": "^5.2.2",
"superagent-proxy": "^2.0.0",
@@ -44,7 +45,7 @@
"@types/lodash": "^4.14.157",
"@types/markdown-it": "^10.0.1",
"@types/mongodb": "^3.5.25",
"@types/node": "^14.0.18",
"@types/node": "^14.0.21",
"@types/nodemailer": "^6.4.0",
"@types/nunjucks": "^3.1.3",
"@types/prismjs": "^1.16.1",
@@ -66,11 +67,10 @@
"webpack": "^4.42.1"
},
"scripts": {
"tsc": "tsc",
"build": "tsc && cp -r hydro/script dist",
"pack:development": "node build/development.js",
"pack:production": "node build/production.js",
"build:all": "cd ui && yarn && yarn build:production && cd .. && yarn && yarn build && yarn pack:production",
"build": "tsc && node build/development.js",
"build:development": "tsc && node build/development.js",
"build:production": "tsc && node build/production.js",
"build:all": "cd ui && yarn && yarn build:production && cd .. && yarn && yarn build:production",
"start": "ts-node hydro/loader.ts",
"pkg": "pkg .",
"lint": "eslint build hydro module tool --ext ts,js --fix",