local-devices
local-devices copied to clipboard
Buffer() is deprecated due to security and usability issues
(node:9948) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Node version : v11.15.0
Thanks @oza75 for your report. I assume this is caused by one of our dependencies
(not verified yet). We'll have to take a look at it closely and see if we can update/replace one of those deps.
//cc @DylanPiercey
The problem is https://www.npmjs.com/package/ip related. In ip's code (/lib/ip.js) I replaced all 'new Buffer(x)' with 'new Buffer.alloc(x)', now I no longer receive DeprecationWarning message.