Closed novalagung closed 3 years ago
a friendly ping for maintainer @mafintosh
this PR might resolve a lot of people's problems. torrent-stream and other libraries that use torrent-stream as dependency are completely not working on node v14.
the changes I made on this PR is compatible across any node versions.
Thats awesome!
1.2.1
in node14 the
os.tmpDir()
is completelly removed, and replaced withos.tmpdir()
function. in this PR, I added a ternary to useos.tmdir()
if it is available, otherwise the oldos.tmpDir()
will be used. this workaround will make the code work on both node14 or any other versions before that.