Archived
1
0

chore(deps): bump js-yaml from 3.14.0 to 4.0.0 (#2920)

* chore(deps): bump js-yaml from 3.14.0 to 4.0.0

Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.0 to 4.0.0.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.0...4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* fix(src/node): replace yaml.safeLoad with load

Also update @types/yaml to ^4.0.0.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash@coder.com>
This commit is contained in:
dependabot[bot]
2021-03-18 16:30:10 -05:00
committed by GitHub
parent 4c6cf8414c
commit a8e2ede4f5
3 changed files with 19 additions and 7 deletions

View File

@ -536,7 +536,7 @@ export function parseConfigFile(configFile: string, configPath: string): ConfigA
return { _: [], config: configPath }
}
const config = yaml.safeLoad(configFile, {
const config = yaml.load(configFile, {
filename: configPath,
})
if (!config || typeof config === "string") {