core: 支持修改tags & workspace: upgrade to js-yaml@4

This commit is contained in:
undefined committed 2021-01-09 23:58:06 +08:00
1 parent 87a4bc8bfa
commit 3d9acf2c1a
18 files changed
+38 -36

No files matched your search

+2 -2
View File
@@ -10,14 +10,14 @@
"build": "tsc"
},
"devDependencies": {
"@types/js-yaml": "^3.12.5",
"@types/js-yaml": "^4.0.0",
"@types/mongodb": "^3.5.33"
},
"peerDependencies": {
"hydrooj": "2.14.x"
},
"dependencies": {
"js-yaml": "^3.14.1",
"js-yaml": "^4.0.0",
"mongodb": "^3.6.3"
}
}
+1 -1
View File
@@ -346,7 +346,7 @@ async function fix(doc) {
w.on('error', reject);
r.pipe(w);
});
const config = yaml.safeLoad(await testdataConfig.readConfig(p));
const config = yaml.load(await testdataConfig.readConfig(p));
await dst.collection('document').updateOne(
{ _id: doc._id },
{ $set: { config } },