Skip to content

Commit

Permalink
Adjustments for js-yaml 4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
DyegoMaasAmbevTech committed Mar 16, 2021
1 parent 2d06154 commit 6218ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/replication/replication-process.js
Expand Up @@ -43,7 +43,7 @@ const decomposeTemplateFile = (filePath, toolbox) => {
const content = readFile(filePath)
let parts = content.split('---\n')
return {
header: yaml.safeLoad(parts[1]),
header: yaml.load(parts[1]),
content: parts[2].trimEnd()
}
}
Expand Down
2 changes: 1 addition & 1 deletion test-infrasctructure/replication.ts
Expand Up @@ -70,7 +70,7 @@ const readTemplateFileHeader = async (recipe, fileName) => {
if (dividerCount == 2) break
}
fileStream.close()
return yaml.safeLoad(header)
return yaml.load(header)
}

const readFileDiscardingHeader = fullPath => {
Expand Down

0 comments on commit 6218ef5

Please sign in to comment.