From d0ff190e718a9f486b350dae2795f57554962624 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 12 Feb 2017 12:24:28 +1100 Subject: [PATCH] change os.tmpDir() to os.tmpdir() fixes deprecation warnings --- lib/torrent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/torrent.js b/lib/torrent.js index 7ff039ec..89ad91db 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -58,7 +58,7 @@ var TMP try { TMP = path.join(fs.statSync('/tmp') && '/tmp', 'webtorrent') } catch (err) { - TMP = path.join(typeof os.tmpDir === 'function' ? os.tmpDir() : '/', 'webtorrent') + TMP = path.join(typeof os.tmpdir === 'function' ? os.tmpdir() : '/', 'webtorrent') } inherits(Torrent, EventEmitter)