Closed vad3x closed 4 years ago
Overview:
Nodejs writes a warning to console when using the library:
[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Versions: node-mocks-http: 1.8.1 node: v12.14.0
Suggestions:
Use Buffer.alloc instead of new Buffer
Buffer.alloc
new Buffer
@vad3x thanks for reporting
Stale issue message
Overview:
Nodejs writes a warning to console when using the library:
Versions: node-mocks-http: 1.8.1 node: v12.14.0
Suggestions:
Use
Buffer.alloc
instead ofnew Buffer