File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1- const os = require ( 'os' )
2- const path = require ( 'path' )
1+ const envPaths = require ( 'env-paths' )
32
4- exports . CACHE_DIR = path . join ( os . homedir ( ) , '. import-http')
3+ exports . CACHE_DIR = envPaths ( ' import-http', { suffix : '' } ) . cache
Original file line number Diff line number Diff line change 2020 "license" : " MIT" ,
2121 "dependencies" : {
2222 "builtin-modules" : " ^3.0.0" ,
23+ "env-paths" : " ^2.0.0" ,
2324 "mkdirp" : " ^0.5.1" ,
2425 "node-fetch" : " ^2.3.0"
2526 },
Original file line number Diff line number Diff line change @@ -2173,6 +2173,11 @@ env-editor@^0.3.1:
21732173 resolved "https://registry.npmjs.org/env-editor/-/env-editor-0.3.1.tgz#30d0540c2101414f258a94d4c0a524c06c13e3c6"
21742174 integrity sha1-MNBUDCEBQU8lipTUwKUkwGwT48Y=
21752175
2176+ env-paths@^2.0.0 :
2177+ version "2.0.0"
2178+ resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.0.0.tgz#5a71723f3df7ca98113541f6fa972184f2c9611d"
2179+ integrity sha512-13VpSqOO91W3MskXxWJ8x+Y33RKaPT53/HviPp8QcMmEbAJaPFEm8BmMpxCHroJ5rGADqr34Zl6zosBt3F+xAA==
2180+
21762181err-code@^1.0.0 :
21772182 version "1.1.2"
21782183 resolved "https://registry.npmjs.org/err-code/-/err-code-1.1.2.tgz#06e0116d3028f6aef4806849eb0ea6a748ae6960"
You can’t perform that action at this time.
0 commit comments