Upgrade js-yaml to 4.0

The only code change is switching `safeLoad` (which was removed) for `load` (which is "safe" by default now)

https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md#400---2021-01-03
This commit is contained in:
Patrick Ellis
2021-06-04 23:30:19 -04:00
parent f6dc3df7ab
commit 3424206184
5 changed files with 2813 additions and 3755 deletions

View File

@@ -101,7 +101,7 @@ async function getLabelGlobs(
);
// loads (hopefully) a `{[label:string]: string | StringOrMatchConfig[]}`, but is `any`:
const configObject: any = yaml.safeLoad(configurationContent);
const configObject: any = yaml.load(configurationContent);
// transform `any` => `Map<string,StringOrMatchConfig[]>` or throw if yaml is malformed:
return getLabelGlobMapFromObject(configObject);