gulp-html2pug
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -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
7173
20
16
+ Addedpromise-toolbox@^0.15.1
+ Addedmake-error@1.3.6(transitive)
+ Addedpromise-toolbox@0.15.1(transitive)
- Removedstandard-as-callback@^2.0.1
- Removedstandard-as-callback@2.1.0(transitive)