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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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.mode, function (err, fd) {
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-fs",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "Native file system for Javascript",
5
5
  "main": "index.js",
6
6
  "files": [