fix(deps): update dependency js-yaml to v4 (#4797)

This commit is contained in:
renovate[bot]
2021-01-04 17:44:36 +02:00
committed by GitHub
parent b8df67b01c
commit bda604b389
7 changed files with 25 additions and 6 deletions

View File

@ -19,9 +19,9 @@ async function copyBackendFiles(backend) {
async function updateConfig(configModifier) {
const configFile = path.join(devTestDirectory, 'config.yml');
const configContent = await fs.readFile(configFile);
const config = yaml.safeLoad(configContent);
const config = yaml.load(configContent);
await configModifier(config);
await fs.writeFileSync(configFile, yaml.safeDump(config));
await fs.writeFileSync(configFile, yaml.dump(config));
}
async function switchVersion(version) {