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

+1 -1
View File
@@ -65,7 +65,7 @@ class FpsProblemImportHandler extends Handler {
try {
const file = await fs.stat(this.request.files.file.path);
if (file.size > 64 * 1024 * 1024) throw new FileTooLargeError('64m');
const content = fs.readFile(this.request.files.file.path).toString();
const content = fs.readFileSync(this.request.files.file.path, 'utf-8');
const result = await xml2js.parseStringPromise(content);
tasks.push(result);
} catch (e) {
+2 -6
View File
@@ -1,13 +1,13 @@
{
"name": "@hydrooj/fps-importer",
"version": "1.1.10",
"version": "1.1.11",
"description": "Import FPS problems",
"main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0-only",
"dependencies": {
"adm-zip": "^0.5.4",
"adm-zip": "^0.5.5",
"decode-html": "^2.0.0",
"fs-extra": "^9.1.0",
"xml2js": "^0.4.23"
@@ -18,9 +18,5 @@
},
"peerDependencies": {
"hydrooj": "^2.20.0"
},
"scripts": {
"build": "tsc",
"lint": "eslint . --ext ts --fix"
}
}