diff options
author | isaacs <i@izs.me> | 2021-01-06 03:28:18 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-01-07 23:13:38 +0300 |
commit | d01746a5a6dde115ee6a600cdf54c9b35afcab3f (patch) | |
tree | 145de979bb658db3fab436fcbd13f55d374d6972 /lib | |
parent | 7a49fd4afc8cd24db40aee008031ea648583d0bc (diff) |
Remove process.umask() call from config defaultisaacs/remove-process-umask
Since we now are using pacote/tar in a way that will rely on the default
process umask setting, and we set file/directory modes explicitly
anyway, there's no need to have a default umask setting that calls
process.umask()
As this method is not worker-thread safe, and is deprecated, it's best
for us to stop using it.
Fix: #1103
PR-URL: https://github.com/npm/cli/pull/2444
Credit: @isaacs
Close: #2444
Reviewed-by: @nlf
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/config.js b/lib/utils/config.js index 2b6b96e5c..426f0a529 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -170,7 +170,7 @@ const defaults = { 'tag-version-prefix': 'v', timing: false, tmp: tmpdir(), - umask: process.umask ? process.umask() : 0o22, + umask: 0, unicode, 'update-notifier': true, usage: false, |