preliminaries-parser-yaml
Advanced tools
Comparing version 1.0.5 to 1.1.0
@@ -36,11 +36,6 @@ /*! | ||
yamlParser.parse = function(str, options) { | ||
var opts = Object.assign({strict: false}, options); | ||
try { | ||
return YAML.safeLoad(str, options); | ||
} catch (err) { | ||
if (opts.strict) { | ||
throw new SyntaxError(msg('js-yaml', err)); | ||
} else { | ||
return {}; | ||
} | ||
throw new SyntaxError(msg('js-yaml', err)); | ||
} | ||
@@ -47,0 +42,0 @@ }; |
{ | ||
"name": "preliminaries-parser-yaml", | ||
"description": "Simple front matter parser that supports YAML, JSON and TOML.", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/josephearl/preliminaries", | ||
@@ -6,0 +6,0 @@ "author": "Joseph Earl (https://github.com/josephearl)", |
3332
74