Skip to content

Commit 75bda3a

Browse files
authored
Merge pull request #189 from bluepeter/patch-1
Update example: js-yaml `load` is now safe by default
2 parents e4ce1e6 + 64f08f6 commit 75bda3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const fs = require('fs');
131131
const {CLOUDFORMATION_SCHEMA} = require('cloudformation-js-yaml-schema');
132132

133133
module.exports = async () => {
134-
const cf = yaml.safeLoad(fs.readFileSync('../cf-templates/example-stack.yaml', 'utf8'), {
134+
const cf = yaml.load(fs.readFileSync('../cf-templates/example-stack.yaml', 'utf8'), {
135135
schema: CLOUDFORMATION_SCHEMA,
136136
});
137137
var tables = [];

0 commit comments

Comments
 (0)