@makano/rew 1.2.36 → 1.2.37
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/rew/modules/yaml.js +1 -1
- package/package.json +1 -1
package/lib/rew/modules/yaml.js
CHANGED
@@ -22,7 +22,7 @@ function yamlFile(file) {
|
|
22
22
|
}),
|
23
23
|
]);
|
24
24
|
|
25
|
-
return yaml.load(file.content, { schema });
|
25
|
+
return file.content.startsWith('---') ? yaml.loadAll(file.content, { schema })[0] : yaml.load(file.content, { schema });
|
26
26
|
}
|
27
27
|
|
28
28
|
const importYaml = (module.exports.importYaml = function importYaml(filepath, file) {
|