Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-markdown

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-markdown - npm Package Compare versions

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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc