Skip to content

Commit

Permalink
Merge pull request jonschlinkert#120 from jonschlinkert/security-upda…
Browse files Browse the repository at this point in the history
…tes-further

Security updates further
  • Loading branch information
robertmassaioli authored Apr 24, 2021
2 parents 8a22958 + e54a33b commit a5726b0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ os:
language: node_js
node_js:
- node
- '14'
- '12'
- '9'
- '8'
- '7'
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"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": "4.0.2",
"version": "4.0.3",
"homepage": "https://github.com/jonschlinkert/gray-matter",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [
Expand Down Expand Up @@ -34,7 +34,7 @@
"test": "mocha"
},
"dependencies": {
"js-yaml": "^3.11.0",
"js-yaml": "^3.13.1",
"kind-of": "^6.0.2",
"section-matter": "^1.0.0",
"strip-bom-string": "^1.0.0"
Expand All @@ -48,7 +48,7 @@
"front-matter": "^2.3.0",
"gulp-format-md": "^1.0.0",
"minimist": "^1.2.0",
"mocha": "^3.5.3",
"mocha": "^6.1.4",
"toml": "^2.3.3",
"vinyl": "^2.1.0",
"write": "^1.0.3"
Expand Down
4 changes: 2 additions & 2 deletions test/vinyl-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ var matter = require('..');

describe('vinyl files', function() {
it('should take a vinyl file', function() {
var file = new File({path: 'foo', contents: new Buffer('---\none: two\n---\nbar')});
var file = new File({path: 'foo', contents: Buffer.from('---\none: two\n---\nbar')});

var actual = matter(file);
assert.equal(actual.path, 'foo');
assert.deepEqual(actual.data, {one: 'two'});
assert.deepEqual(actual.content, 'bar');
assert.deepEqual(actual.contents, new Buffer('---\none: two\n---\nbar'));
assert.deepEqual(actual.contents, Buffer.from('---\none: two\n---\nbar'));
});
});

0 comments on commit a5726b0

Please sign in to comment.