mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 227 forks source link

Update index.js #207

Closed Rajiii4u closed 3 years ago

Rajiii4u commented 3 years ago

Windows issue on os.tmpDir, deprecated

D:\node-lab\node-torrent\node_modules\torrent-stream\index.js:36 var TMP = fs.existsSync('/tmp') ? '/tmp' : os.tmpDir() ^

TypeError: os.tmpDir is not a function at Object. (D:\node-lab\node-torrent\node_modules\torrent-stream\index.js:36:47) at Module._compile (internal/modules/cjs/loader.js:1076:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Module.load (internal/modules/cjs/loader.js:941:32) at Function.Module._load (internal/modules/cjs/loader.js:782:14) at Module.require (internal/modules/cjs/loader.js:965:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (D:\node-lab\node-torrent\index.js:1:21) at Module._compile (internal/modules/cjs/loader.js:1076:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)

mafintosh commented 3 years ago

fixed in master