diff --git a/index.js b/index.js index d1ec474..387b186 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ module.exports = function (fn) { const contents = fn(String(file.contents), file.path, file) || file.contents if (file.isBuffer() === true) { - file.contents = new Buffer(contents) + file.contents = new Buffer.from(contents) } cb(null, file) diff --git a/package.json b/package.json index 89d0d62..c7d86bd 100644 --- a/package.json +++ b/package.json @@ -2,17 +2,17 @@ "description": "Gulp plugin allow modify file in .pipe", "name": "gulp-modify-file", "license": "MIT", - "version": "1.0.1", + "version": "1.0.2", "author": { - "name": "Eduardo Pérez-Bermejo", - "email": "ifedu@outlook.com", - "url": "http://www.github.com/ifedu/gulp-modify-file" + "name": "Kevin Huynh", + "email": "kevhuynh23@gmail.com", + "url": "http://www.github.com/kevinhuynh23/gulp-modify-file" }, "dependencies": { - "gulp": "3.9.1", - "through2": "2.0.3" + "gulp": "4.0.2", + "through2": "3.0.1" }, "engines": { @@ -21,7 +21,7 @@ "repository": { "type": "git", - "url": "https://github.com/ifedu/gulp-modify-file" + "url": "https://github.com/kevinhuynh23/gulp-modify-file" }, "files": [