We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
js-yaml
v4.x
v3.14.x
1 parent 0b5cc8a commit 3540e87Copy full SHA for 3540e87
lib/plugins/renderer/yaml.js
@@ -2,10 +2,9 @@
2
3
const yaml = require('js-yaml');
4
const { escape } = require('hexo-front-matter');
5
-const schema = yaml.DEFAULT_SCHEMA.extend(require('js-yaml-js-types').all);
6
7
function yamlHelper(data) {
8
- return yaml.load(escape(data.text), { schema });
+ return yaml.load(escape(data.text));
9
}
10
11
module.exports = yamlHelper;
package.json
@@ -49,8 +49,7 @@
49
"hexo-i18n": "^1.0.0",
50
"hexo-log": "^2.0.0",
51
"hexo-util": "^2.4.0",
52
- "js-yaml": "^4.0.0",
53
- "js-yaml-js-types": "^1.0.0",
+ "js-yaml": "^3.14.1",
54
"micromatch": "^4.0.2",
55
"moment": "^2.22.2",
56
"moment-timezone": "^0.5.21",
0 commit comments