Skip to content

Commit

Permalink
change new Buffer to Buffer.from
Browse files Browse the repository at this point in the history
`new Buffer` has been deprecated in node 10 (nodejs/node#8169)
  • Loading branch information
nektro authored Sep 24, 2018
1 parent e9c80ef commit b2d47b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = function (options) {
cwd: firstFile.cwd,
base: firstFile.cwd,
path: path.join(firstFile.cwd, config.fileName),
contents: new Buffer(contents)
contents: Buffer.from(contents)
}));
callback();
});
Expand Down

0 comments on commit b2d47b9

Please sign in to comment.