bare-fs 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -759,7 +759,7 @@ function writeFile (path, data, opts, cb) {
|
|
|
759
759
|
|
|
760
760
|
if (typeof data === 'string') data = Buffer.from(data, opts.encoding)
|
|
761
761
|
|
|
762
|
-
open(path, opts.flag || 'w', opts || 0o666
|
|
762
|
+
open(path, opts.flag || 'w', opts.mode || 0o666, function (err, fd) {
|
|
763
763
|
if (err) return cb(err)
|
|
764
764
|
|
|
765
765
|
write(fd, data, loop)
|