We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d59b81 commit 2d42170Copy full SHA for 2d42170
lib/opts-arg.js
@@ -2,9 +2,9 @@ const { promisify } = require('util')
2
const fs = require('fs')
3
const optsArg = opts => {
4
if (!opts)
5
- opts = { mode: 0o777 & (~process.umask()), fs }
+ opts = { mode: 0o777, fs }
6
else if (typeof opts === 'object')
7
- opts = { mode: 0o777 & (~process.umask()), fs, ...opts }
+ opts = { mode: 0o777, fs, ...opts }
8
else if (typeof opts === 'number')
9
opts = { mode: opts, fs }
10
else if (typeof opts === 'string')
test/opts-arg.js
@@ -1,7 +1,6 @@
1
const t = require('tap')
const optsArg = require('../lib/opts-arg.js')
-const umask = process.umask()
-const mode = 0o777 & (~umask)
+const mode = 0o777
const defFs = {
0 commit comments