tidev / gittio

Search & Install all Titanium Modules and Alloy Widgets on GitHub
http://gitt.io
Other
24 stars 19 forks source link

os.tmpDir Error due to depreciated #122

Open jny986 opened 4 years ago

jny986 commented 4 years ago

Using Gittio with the latest version of os causes the following error:

`/Users/josh/.config/yarn/global/node_modules/gittio/lib/dist.js:59 return path.join(os.tmpDir(), Date.now().toString() + '-' + Math.random().toString().substring(2)); ^

TypeError: os.tmpDir is not a function at generateTempDir (/Users/josh/.config/yarn/global/node_modules/gittio/lib/dist.js:59:23) at Object.exports.download (/Users/josh/.config/yarn/global/node_modules/gittio/lib/dist.js:43:27) at /Users/josh/.config/yarn/global/nodemodules/gittio/lib/gittio.js:336:14 at Array.forEach () at Function..each._.forEach (/Users/josh/.config/yarn/global/node_modules/underscore/underscore.js:79:11) at component.lookup.action (/Users/josh/.config/yarn/global/node_modules/gittio/lib/gittio.js:320:7) at Request._callback (/Users/josh/.config/yarn/global/node_modules/gittio/lib/component.js:40:7) at Request.self.callback (/Users/josh/.config/yarn/global/node_modules/request/request.js:185:22) at Request.emit (events.js:315:20) at Request. (/Users/josh/.config/yarn/global/node_modules/request/request.js:1154:10)`

I will try to create a backwards compatible fix for this and submit if I have the chance