mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 支持修改tags & workspace: upgrade to js-yaml@4
This commit is contained in:
1 parent
87a4bc8bfa
commit
3d9acf2c1a
18 files changed
+38
-36
No files matched your search
@@ -9,7 +9,7 @@ export = async function compile(
|
||||
lang: string, code: string, target: string, copyIn: any, next?: Function,
|
||||
): Promise<Execute> {
|
||||
const LANGS = global.Hydro
|
||||
? yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs'))
|
||||
? yaml.load(global.Hydro.model.system.get('hydrojudge.langs'))
|
||||
: require('./config').LANGS;
|
||||
if (!LANGS[lang]) throw new SystemError('Unsupported language {0}.', [lang]);
|
||||
const info = LANGS[lang];
|
||||
|
||||
Reference in new issue
Block a user