Socket
Socket
Sign inDemoInstall

gray-matter

Package Overview
Dependencies
8
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.6 to 3.0.7

5

lib/defaults.js
'use strict';
var extend = require('extend-shallow');
var engines = require('./engines');

@@ -7,3 +8,3 @@ var utils = require('./utils');

module.exports = function(options) {
var opts = Object.assign({}, options);
var opts = extend({}, options);

@@ -17,4 +18,4 @@ // ensure that delimiters are an array

opts.language = (opts.language || opts.lang || 'yaml').toLowerCase();
opts.engines = Object.assign({}, engines, opts.parsers, opts.engines);
opts.engines = extend({}, engines, opts.parsers, opts.engines);
return opts;
};

3

lib/engines.js
'use strict';
var extend = require('extend-shallow');
var yaml = require('js-yaml');

@@ -27,3 +28,3 @@

stringify: function(obj, options) {
var opts = Object.assign({replacer: null, space: 2}, options);
var opts = extend({replacer: null, space: 2}, options);
return JSON.stringify(obj, opts.replacer, opts.space);

@@ -30,0 +31,0 @@ }

'use strict';
var extend = require('extend-shallow');
var typeOf = require('kind-of');

@@ -38,3 +39,3 @@ var getEngine = require('./engine');

data = Object.assign({}, file.data, data);
data = extend({}, file.data, data);
var open = opts.delimiters[0];

@@ -41,0 +42,0 @@ var close = opts.delimiters[1];

{
"name": "gray-matter",
"description": "Parse front-matter from a string or file. Fast, reliable and easy to use. Parses YAML front matter by default, but also has support for YAML, JSON, TOML or Coffee Front-Matter, with options to set custom delimiters. Used by metalsmith, assemble, verb and many other projects.",
"version": "3.0.6",
"version": "3.0.7",
"homepage": "https://github.com/jonschlinkert/gray-matter",

@@ -40,2 +40,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"dependencies": {
"extend-shallow": "^2.0.1",
"js-yaml": "^3.8.1",

@@ -46,18 +47,17 @@ "kind-of": "^5.0.0",

"devDependencies": {
"ansi-bold": "^0.1.1",
"ansi-gray": "^0.1.1",
"ansi-magenta": "^0.1.1",
"benchmarked": "^0.2.5",
"coffee-script": "^1.12.6",
"delimiter-regex": "^2.0.0",
"extend-shallow": "^2.0.1",
"for-own": "^0.1.4",
"front-matter": "^2.1.2",
"gulp-format-md": "^0.1.12",
"matched": "^1.0.2",
"minimist": "^1.2.0",
"mocha": "^3.2.0",
"benchmarked": "^0.2.5",
"sort-object": "^3.0.2",
"for-own": "^0.1.4",
"ansi-gray": "^0.1.1",
"ansi-bold": "^0.1.1",
"matched": "^1.0.2",
"coffee-script": "^1.12.6",
"ansi-magenta": "^0.1.1",
"toml": "^2.3.2",
"vinyl": "^2.0.2"
"mocha": "^3.2.0",
"vinyl": "^2.0.2",
"gulp-format-md": "^0.1.12"
},

@@ -64,0 +64,0 @@ "keywords": [

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