diff --git a/lib/unexpectedStream.js b/lib/unexpectedStream.js index ad30539..38f70c2 100644 --- a/lib/unexpectedStream.js +++ b/lib/unexpectedStream.js @@ -115,6 +115,7 @@ module.exports = { if (Buffer.from) { return Buffer.from(chunk, 'utf-8'); } else { + // eslint-disable-next-line node/no-deprecated-api return new Buffer(chunk, 'utf-8'); } } else {