upgrade dep

This commit is contained in:
undefined committed 2021-03-31 22:37:59 +08:00
1 parent 96006d88b1
commit 1e0f651dea
8 files changed
+27 -61

No files matched your search

+5 -9
View File
@@ -11,7 +11,7 @@
"node": ">=14"
},
"dependencies": {
"adm-zip": "^0.5.4",
"adm-zip": "^0.5.5",
"ansi_up": "^5.0.0",
"cookies": "^0.8.0",
"detect-browser": "^5.1.1",
@@ -34,12 +34,12 @@
"serialize-javascript": "^5.0.1",
"sockjs": "^0.3.20",
"superagent": "^6.1.0",
"systeminformation": "5.6.8",
"systeminformation": "5.6.10",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/adm-zip": "^0.4.33",
"@types/fs-extra": "^9.0.8",
"@types/fs-extra": "^9.0.9",
"@types/inquirer": "^7.3.1",
"@types/js-yaml": "^4.0.0",
"@types/koa": "^2.13.1",
@@ -47,16 +47,12 @@
"@types/koa-static-cache": "^5.1.0",
"@types/lodash": "^4.14.168",
"@types/minio": "^7.0.7",
"@types/mongodb": "^3.6.10",
"@types/mongodb": "^3.6.11",
"@types/nodemailer": "^6.4.1",
"@types/serialize-javascript": "^5.0.0",
"@types/sockjs": "^0.3.32",
"@types/superagent": "^4.1.8",
"@types/yargs": "^16.0.0",
"@types/yargs": "^16.0.1",
"formidable": "^1.2.2"
},
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch"
}
}
+7 -7
View File
@@ -198,15 +198,15 @@ class RecordDetailConnectionHandler extends contest.ContestHandlerMixin(Connecti
this.onRecordChange(rdoc);
}
// eslint-disable-next-line
async onRecordChange(rdoc: Rdoc, $set?: any, $push?: any) {
if (rdoc._id.toString() !== this.rid) return;
if ($set) this.send({ $set, $push });
else {
this.send({
status_html: await this.renderHTML('record_detail_status.html', { rdoc }),
summary_html: await this.renderHTML('record_detail_summary.html', { rdoc }),
});
}
// TODO: frontend doesn't support incremental update
// if ($set) this.send({ $set, $push });
this.send({
status_html: await this.renderHTML('record_detail_status.html', { rdoc }),
summary_html: await this.renderHTML('record_detail_summary.html', { rdoc }),
});
}
async cleanup() {