Skip to content

Commit 3540e87

Browse files
authored
fix(#4917): downgrade js-yaml from v4.x to v3.14.x (#4932)
1 parent 0b5cc8a commit 3540e87

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/plugins/renderer/yaml.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
const yaml = require('js-yaml');
44
const { escape } = require('hexo-front-matter');
5-
const schema = yaml.DEFAULT_SCHEMA.extend(require('js-yaml-js-types').all);
65

76
function yamlHelper(data) {
8-
return yaml.load(escape(data.text), { schema });
7+
return yaml.load(escape(data.text));
98
}
109

1110
module.exports = yamlHelper;

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
"hexo-i18n": "^1.0.0",
5050
"hexo-log": "^2.0.0",
5151
"hexo-util": "^2.4.0",
52-
"js-yaml": "^4.0.0",
53-
"js-yaml-js-types": "^1.0.0",
52+
"js-yaml": "^3.14.1",
5453
"micromatch": "^4.0.2",
5554
"moment": "^2.22.2",
5655
"moment-timezone": "^0.5.21",

0 commit comments

Comments
 (0)