From 72103ef33406d1a0e0287998946abf4bd82798b1 Mon Sep 17 00:00:00 2001 From: Kevin Huynh Date: Wed, 21 Jul 2021 11:56:40 -0700 Subject: [PATCH 1/2] Update dependencies, use Buffer function --- index.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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..0a38b5a 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": { From bb81987760cad1056cf1cfac8d967e48ef566e4b Mon Sep 17 00:00:00 2001 From: Kevin Huynh Date: Wed, 21 Jul 2021 15:32:17 -0700 Subject: [PATCH 2/2] Update package version/author/url --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0a38b5a..c7d86bd 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,12 @@ "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": { @@ -21,7 +21,7 @@ "repository": { "type": "git", - "url": "https://github.com/ifedu/gulp-modify-file" + "url": "https://github.com/kevinhuynh23/gulp-modify-file" }, "files": [