Add support for async reporters · unifiedjs/unified-engine@245bd28 · GitHub
Skip to content

Commit 245bd28

Browse files
authored
Add support for async reporters
Closes GH-71. Reviewed-by: Remco Haszing <remcohaszing@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 398ebe2 commit 245bd28

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

‎lib/file-set-pipeline/log.js‎

Lines changed: 1 addition & 1 deletion

‎lib/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @callback VFileReporter
1818
* @param {Array<VFile>} files
1919
* @param {VFileReporterOptions} options
20-
* @returns {string}
20+
* @returns {string | Promise<string>}
2121
*
2222
* @typedef Settings
2323
* @property {Options['processor']} processor

‎test/reporting.js‎

Lines changed: 26 additions & 0 deletions

0 commit comments

Comments
 (0)