Skip to content

Commit

Permalink
Correct TS source code line numbers & other minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed May 27, 2023
1 parent 3a93270 commit 951cb08
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 40 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -238,7 +238,7 @@ Use the excellent [metalsmith-debug-ui plugin](https://github.com/leviwheatcroft
Future Metalsmith releases will at least support the oldest supported Node LTS versions.
Metalsmith 2.6.x supports NodeJS versions 14.14.0 and higher.
Metalsmith 2.6.x supports NodeJS versions 14.14.0 and higher.
Metalsmith 2.5.x supports NodeJS versions 12 and higher.
Metalsmith 2.4.x supports NodeJS versions 8 and higher.
Metalsmith 2.3.0 and below support NodeJS versions all the way back to 0.12.
Expand Down
6 changes: 3 additions & 3 deletions lib/matter.js
Expand Up @@ -20,8 +20,8 @@ function Matter(options = defaultOptions) {
Matter.defaults = defaultOptions

/**
* Set options for parsing & stringifying matter
* @param {import('.').GrayMatterOptions} options
* Get or set options for parsing & stringifying matter
* @param {import('.').GrayMatterOptions} [options]
* @returns {import('.').GrayMatterOptions}
*/
Matter.prototype.options = function (options) {
Expand All @@ -30,7 +30,7 @@ Matter.prototype.options = function (options) {
}

/**
* Parse a Metalsmith `File` object's `contents` for front matter
* Parse a string or buffer for front matter and return it as a `File` object.
* @param {Buffer|string} file
* @returns {import('.').File}
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -87,6 +87,6 @@
"typescript": "^4.9.5"
},
"engines": {
"node": ">=14"
"node": ">=14.14.0"
}
}

0 comments on commit 951cb08

Please sign in to comment.