Socket
Socket
Sign inDemoInstall

gulp-html2pug

Package Overview
Dependencies
47
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

10

lib/index.js

@@ -7,6 +7,8 @@ const through = require('through2');

const asCallback = require('standard-as-callback').default;
const PluginError = require('plugin-error');
const {
nodeify
} = require('promise-toolbox');
const PLUGIN_NAME = 'gulp-html2pug';

@@ -21,3 +23,5 @@

module.exports = (options = {}) => through.obj((file, enc, cb) => asCallback(vinylToString(file, enc).then(html => html2pug(html, options)).then(convert(file.clone())), cb));
const transform = options => nodeify((file, enc) => vinylToString(file, enc).then(html => html2pug(html, options)).then(convert(file.clone())));
module.exports = (options = {}) => through.obj(transform(options));
//# sourceMappingURL=index.js.map
{
"name": "gulp-html2pug",
"version": "3.0.1",
"version": "3.0.2",
"description": "Gulp plugin to convert html files to pug",

@@ -38,3 +38,3 @@ "main": "lib/index.js",

"plugin-error": "^1.0.1",
"standard-as-callback": "^2.0.1",
"promise-toolbox": "^0.15.1",
"through2": "^3.0.1",

@@ -61,3 +61,2 @@ "vinyl-contents-tostring": "^3.0.0"

"nyc": "^15.0.1",
"promise-toolbox": "^0.15.0",
"sinon": "^9.0.2",

@@ -64,0 +63,0 @@ "sinon-chai": "^3.5.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc