Skip to content

Commit 79adac0

Browse files
committed
🗑 Update js-yaml deprecated method
safeLoad is deprecated, load is now safe by default.
1 parent 97e9ac2 commit 79adac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/router.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = app => {
6969
app.log.info(`[${fullName}] Checking ${app.CONFIG_FILENAME}`)
7070
getJSON(`https://${GITHUB_CREDENTIALS}api.github.com/repos/${fullName}/contents/.github/${app.CONFIG_FILENAME}`)
7171
.then(json => Buffer.from(json.content, 'base64').toString())
72-
.then(yml => yaml.safeLoad(yml))
72+
.then(yml => yaml.load(yml))
7373
.then((config) => {
7474
const { error, value } = schema.validate(config)
7575
if (error) throw error

0 commit comments

Comments
 (0)