gulp-html2pug
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -18,8 +18,5 @@ const through = require('through2'); | ||
extname: '.pug' | ||
}); // plugin level function (dealing with files) | ||
}); | ||
module.exports = (options = {}) => through.obj(function (file, enc, cb) { | ||
asCallback(vinylToString(file, enc).then(html => html2pug(html, options)).then(convert(file.clone())).then(this.push.bind(this)), cb); | ||
}); | ||
module.exports = (options = {}) => through.obj((file, enc, cb) => asCallback(vinylToString(file, enc).then(html => html2pug(html, options)).then(convert(file.clone())), cb)); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "gulp-html2pug", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Gulp plugin to convert html files to pug", | ||
@@ -51,3 +51,5 @@ "main": "lib/index.js", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"coveralls": "^3.1.0", | ||
"dirty-chai": "^2.0.1", | ||
"env-test": "^1.0.0", | ||
@@ -57,7 +59,9 @@ "eslint": "^6.8.0", | ||
"eslint-plugin-import": "^2.20.2", | ||
"event-stream": "^4.0.1", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.1", | ||
"promise-toolbox": "^0.15.0", | ||
"sinon": "^9.0.2", | ||
"sinon-chai": "^3.5.0", | ||
"vinyl": "^2.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
7132
21
13