fix: new ts version build error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-03-27 11:35:54 +08:00
parent 5c90ac3b1f
commit 1bdb324fc4
9 changed files with 17 additions and 149 deletions

View File

@@ -13,10 +13,10 @@ export interface PluginConfigLoader {
export class YamlPluginConfig implements PluginConfigLoader {
load(content: string) {
return yaml.safeLoad(content)
return yaml.load(content)
}
dump(variable: any): string {
return yaml.safeDump(variable, { skipInvalid: true, lineWidth: 120 })
return yaml.dump(variable, { skipInvalid: true, lineWidth: 120 })
}
}