Skip to content

Commit 671fa18

Browse files
committed
chore: update to latest js-yaml api
1 parent 91aff3a commit 671fa18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/travis/imports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ exports.apply = async (yaml, { loadFile, relativeTo, breadcrumb = ['.travis.yml'
8888

8989
const buffer = await internals.loadSource(entry.source, { loadFile });
9090

91-
const imported = Yaml.safeLoad(buffer, {
91+
const imported = Yaml.load(buffer, {
9292
schema: Yaml.FAILSAFE_SCHEMA,
9393
json: true
9494
});

lib/travis/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ exports.detect = async ({ loadFile }) => {
8686
throw err;
8787
}
8888

89-
const travisYaml = Yaml.safeLoad(buffer, {
89+
const travisYaml = Yaml.load(buffer, {
9090
schema: Yaml.FAILSAFE_SCHEMA,
9191
json: true
9292
});

0 commit comments

Comments
 (0)