gulp-markdown-pdf
Advanced tools
+5
-5
@@ -7,5 +7,5 @@ 'use strict'; | ||
| module.exports = options => { | ||
| return through.obj((file, enc, cb) => { | ||
| return through.obj((file, encoding, callback) => { | ||
| if (file.isNull()) { | ||
| cb(null, file); | ||
| callback(null, file); | ||
| return; | ||
@@ -15,3 +15,3 @@ } | ||
| if (file.isStream()) { | ||
| cb(new PluginError('gulp-markdown-pdf', 'Streaming not supported')); | ||
| callback(new PluginError('gulp-markdown-pdf', 'Streaming not supported')); | ||
| return; | ||
@@ -24,3 +24,3 @@ } | ||
| if (error) { | ||
| cb(new PluginError('gulp-markdown-pdf', error, {fileName: file.path})); | ||
| callback(new PluginError('gulp-markdown-pdf', error, {fileName: file.path})); | ||
| return; | ||
@@ -31,5 +31,5 @@ } | ||
| file.extname = '.pdf'; | ||
| cb(null, file); | ||
| callback(null, file); | ||
| }); | ||
| }); | ||
| }; |
+11
-6
| { | ||
| "name": "gulp-markdown-pdf", | ||
| "version": "7.0.0", | ||
| "version": "8.0.0", | ||
| "description": "Markdown to PDF", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
| "engines": { | ||
| "node": ">=6" | ||
| "node": ">=8" | ||
| }, | ||
@@ -35,3 +35,3 @@ "scripts": { | ||
| "dependencies": { | ||
| "markdown-pdf": "^9.0.0", | ||
| "markdown-pdf": "^10.0.0", | ||
| "plugin-error": "^1.0.0", | ||
@@ -41,10 +41,15 @@ "through2": "^3.0.0" | ||
| "devDependencies": { | ||
| "ava": "^0.25.0", | ||
| "p-event": "^2.1.0", | ||
| "ava": "^2.4.0", | ||
| "p-event": "^4.1.0", | ||
| "vinyl": "^2.1.0", | ||
| "xo": "^0.23.0" | ||
| "xo": "^0.25.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "gulp": ">=4" | ||
| }, | ||
| "peerDependenciesMeta": { | ||
| "gulp": { | ||
| "optional": true | ||
| } | ||
| } | ||
| } |
+2
-7
@@ -21,3 +21,3 @@ # gulp-markdown-pdf [](https://travis-ci.org/sindresorhus/gulp-markdown-pdf) | ||
| gulp.task('default', () => | ||
| exports.default = () => ( | ||
| gulp.src('intro.md') | ||
@@ -32,9 +32,4 @@ .pipe(markdownPdf()) | ||
| ### markdownPdf([options]) | ||
| ### markdownPdf(options?) | ||
| See the `markdown-pdf` [options](https://github.com/alanshaw/markdown-pdf#options). | ||
| ## License | ||
| MIT © [Sindre Sorhus](https://sindresorhus.com) |
3435
1.09%34
-12.82%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated