gulp-markdown
Advanced tools
Comparing version 0.2.0 to 1.0.0
22
index.js
@@ -9,9 +9,9 @@ 'use strict'; | ||
if (file.isNull()) { | ||
this.push(file); | ||
return cb(); | ||
cb(null, file); | ||
return; | ||
} | ||
if (file.isStream()) { | ||
this.emit('error', new gutil.PluginError('gulp-markdown', 'Streaming not supported')); | ||
return cb(); | ||
cb(new gutil.PluginError('gulp-markdown', 'Streaming not supported')); | ||
return; | ||
} | ||
@@ -21,12 +21,12 @@ | ||
if (err) { | ||
this.emit('error', new gutil.PluginError('gulp-markdown', err, {fileName: file.path})); | ||
} else { | ||
file.contents = new Buffer(data); | ||
file.path = gutil.replaceExtension(file.path, '.html'); | ||
cb(new gutil.PluginError('gulp-markdown', err, {fileName: file.path})); | ||
return; | ||
} | ||
this.push(file); | ||
cb(); | ||
}.bind(this)); | ||
file.contents = new Buffer(data); | ||
file.path = gutil.replaceExtension(file.path, '.html'); | ||
cb(null, file); | ||
}); | ||
}); | ||
}; |
{ | ||
"name": "gulp-markdown", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "Markdown to HTML", | ||
@@ -33,4 +33,4 @@ "license": "MIT", | ||
"gulp-util": "^3.0.0", | ||
"marked": "^0.3.0", | ||
"through2": "^0.5.1" | ||
"marked": "^0.3.2", | ||
"through2": "^0.6.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -10,3 +10,3 @@ # [gulp](http://gulpjs.com)-markdown [![Build Status](https://travis-ci.org/sindresorhus/gulp-markdown.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-markdown) | ||
```bash | ||
```sh | ||
$ npm install --save-dev gulp-markdown | ||
@@ -39,2 +39,2 @@ ``` | ||
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
2142
25
+ Addedthrough2@0.6.5(transitive)
- Removedthrough2@0.5.1(transitive)
- Removedxtend@3.0.0(transitive)
Updatedmarked@^0.3.2
Updatedthrough2@^0.6.1