Skip to content

Commit 22e214a

Browse files
authored
fix: switch from yaml.safeLoad to yaml.load (#771)
The API of the `js-yaml` package was changed in the new major version, so this commit adjust the necessary function calls. Signed-off-by: Gregor Noczinski <[email protected]>
1 parent da56b59 commit 22e214a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/validator/src/cli-validator/run-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async function runValidator(cliArgs, parseOptions = {}) {
202202
if (fileExtension === 'json') {
203203
input = JSON.parse(originalFile);
204204
} else if (fileExtension === 'yaml' || fileExtension === 'yml') {
205-
input = readYaml.safeLoad(originalFile);
205+
input = readYaml.load(originalFile);
206206
}
207207

208208
if (!isPlainObject(input)) {

0 commit comments

Comments
 (0)