memfs 3.4.8 → 3.4.10

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/lib/volume.js +2 -2
  2. package/package.json +6 -1
package/lib/volume.js CHANGED
@@ -1535,7 +1535,7 @@ var Volume = /** @class */ (function () {
1535
1535
  this.wrapAsync(this.futimesBase, [fd, toUnixTimestamp(atime), toUnixTimestamp(mtime)], callback);
1536
1536
  };
1537
1537
  Volume.prototype.utimesBase = function (filename, atime, mtime) {
1538
- var fd = this.openSync(filename, 'r+');
1538
+ var fd = this.openSync(filename, 'r');
1539
1539
  try {
1540
1540
  this.futimesBase(fd, atime, mtime);
1541
1541
  }
@@ -1697,7 +1697,7 @@ var Volume = /** @class */ (function () {
1697
1697
  this.wrapAsync(this.fchmodBase, [fd, modeToNumber(mode)], callback);
1698
1698
  };
1699
1699
  Volume.prototype.chmodBase = function (filename, modeNum) {
1700
- var fd = this.openSync(filename, 'r+');
1700
+ var fd = this.openSync(filename, 'r');
1701
1701
  try {
1702
1702
  this.fchmodBase(fd, modeNum);
1703
1703
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memfs",
3
- "version": "3.4.8",
3
+ "version": "3.4.10",
4
4
  "description": "In-memory file-system with Node's fs API.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -49,6 +49,11 @@
49
49
  "path": "git-cz"
50
50
  }
51
51
  },
52
+ "commitlint": {
53
+ "extends": [
54
+ "@commitlint/config-conventional"
55
+ ]
56
+ },
52
57
  "jest": {
53
58
  "moduleFileExtensions": [
54
59
  "ts",