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' )
3
2
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 20
20
"license" : " MIT" ,
21
21
"dependencies" : {
22
22
"builtin-modules" : " ^3.0.0" ,
23
+ "env-paths" : " ^2.0.0" ,
23
24
"mkdirp" : " ^0.5.1" ,
24
25
"node-fetch" : " ^2.3.0"
25
26
},
Original file line number Diff line number Diff line change @@ -2173,6 +2173,11 @@ env-editor@^0.3.1:
2173
2173
resolved "https://registry.npmjs.org/env-editor/-/env-editor-0.3.1.tgz#30d0540c2101414f258a94d4c0a524c06c13e3c6"
2174
2174
integrity sha1-MNBUDCEBQU8lipTUwKUkwGwT48Y=
2175
2175
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
+
2176
2181
err-code@^1.0.0 :
2177
2182
version "1.1.2"
2178
2183
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