spion / promise-streams

A collection of node.js streams that work well with promises (through, map, reduce, etc...)
93 stars 11 forks source link

Fix buffer allocation on node 10 #17

Closed aredridel closed 6 years ago

aredridel commented 6 years ago

after deprecation of new Buffer() with no arguments, this code raised this error:

Unhandled rejection TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
    at Function.Buffer.from (buffer.js:183:11)
    at new Buffer (buffer.js:158:17)
    at node_modules/promise-streams/index.js:242:33
spion commented 6 years ago

thanks!