From f74b3f91632146a7b2bee53ea92ee6d3668159e8 Mon Sep 17 00:00:00 2001 From: "A (from Sicily)" Date: Wed, 16 Jan 2019 14:22:13 +0100 Subject: [PATCH] Buffer() to be deprecated Following a `DeprecationWarning` running the job. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 59851b8..5f73723 100644 --- a/src/index.js +++ b/src/index.js @@ -152,7 +152,7 @@ function spriteSmash(options) { .join(renamed.newName); }); - file.contents = new Buffer(contents); + file.contents = Buffer.from(contents); that.push(file); }, this);