isomorphic-git 1.38.8 → 1.38.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.
@@ -5522,6 +5522,7 @@ class GitWalkerFs {
5522
5522
  }
5523
5523
 
5524
5524
  async readdir(entry) {
5525
+ if ((await entry.type()) !== 'tree') return null
5525
5526
  const filepath = entry._fullpath;
5526
5527
  const { fs, dir } = this;
5527
5528
  const names = await fs.readdir(join(dir, filepath));
package/managers/index.js CHANGED
@@ -5509,6 +5509,7 @@ class GitWalkerFs {
5509
5509
  }
5510
5510
 
5511
5511
  async readdir(entry) {
5512
+ if ((await entry.type()) !== 'tree') return null
5512
5513
  const filepath = entry._fullpath;
5513
5514
  const { fs, dir } = this;
5514
5515
  const names = await fs.readdir(join(dir, filepath));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isomorphic-git",
3
- "version": "1.38.8",
3
+ "version": "1.38.10",
4
4
  "description": "A pure JavaScript reimplementation of git for node and browsers",
5
5
  "type": "module",
6
6
  "typings": "./index.d.cts",