Socket
Socket
Sign inDemoInstall

preliminaries-parser-yaml

Package Overview
Dependencies
4
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.1.0

7

index.js

@@ -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 @@ };

2

package.json
{
"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)",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc