From 94bbeab94e357706cbe0089212e8984b37a56209 Mon Sep 17 00:00:00 2001 From: Josh Young Date: Fri, 30 Oct 2020 15:18:31 +1030 Subject: [PATCH] os.tmpDir depreciation fix fix the depreciation of os.tmpDir with backwards compatible fix --- lib/dist.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dist.js b/lib/dist.js index 6565a4d..5997b73 100644 --- a/lib/dist.js +++ b/lib/dist.js @@ -6,6 +6,10 @@ var os = require('os'), _ = require('underscore'), config = require('./config'); +if (typeof os.tmpDir != 'function') { + os.tmpDir = os.tmpdir; +} + exports.isInstalled = function (cmp, dst, o) { if (cmp.type === 'widget') {