Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-01-06 03:28:18 +0300
committerisaacs <i@izs.me>2021-01-07 23:13:38 +0300
commitd01746a5a6dde115ee6a600cdf54c9b35afcab3f (patch)
tree145de979bb658db3fab436fcbd13f55d374d6972 /lib/utils
parent7a49fd4afc8cd24db40aee008031ea648583d0bc (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/utils')
-rw-r--r--lib/utils/config.js2
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,