We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4c7389 commit 194b2acCopy full SHA for 194b2ac
lib/parsers/yaml.js
@@ -1,7 +1,7 @@
1
"use strict";
2
3
-const YAML = require("../util/yaml");
4
const { ParserError } = require("../util/errors");
+const yaml = require("js-yaml");
5
6
module.exports = {
7
/**
@@ -45,7 +45,7 @@ module.exports = {
45
46
if (typeof data === "string") {
47
try {
48
- return YAML.parse(data);
+ return yaml.safeLoad(data);
49
}
50
catch (e) {
51
throw new ParserError(e.message, file.url);
lib/util/yaml.js
0 commit comments