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..f0441a0 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ }, "dependencies": { - "gulp": "3.9.1", - "through2": "2.0.3" + "gulp": "4.0.2", + "through2": "3.0.1" }, "engines": { @@ -33,4 +33,4 @@ "modify", "pipe" ] -} \ No newline at end of file +}