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.
package/README.md CHANGED
@@ -454,6 +454,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
454
454
  <td align="center"><a href="https://github.com/N0zoM1z0"><img src="https://avatars.githubusercontent.com/u/161784452?v=4?s=60" width="60px;" alt=""/><br /><sub><b>N0zoM1z0</b></sub></a><br /><a href="#security-N0zoM1z0" title="Security">🛡️</a></td>
455
455
  <td align="center"><a href="https://github.com/amxmln"><img src="https://avatars.githubusercontent.com/u/15271679?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Amadeus Maximilian</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=amxmln" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Aamxmln" title="Bug reports">🐛</a></td>
456
456
  <td align="center"><a href="http://toxik.us/"><img src="https://avatars.githubusercontent.com/u/235319?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Alexandru Georoceanu</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=toxik" title="Code">💻</a></td>
457
+ <td align="center"><a href="https://github.com/arisgk"><img src="https://avatars.githubusercontent.com/u/4354335?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Aris Goudouras</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=arisgk" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=arisgk" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=arisgk" title="Tests">⚠️</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Aarisgk" title="Bug reports">🐛</a></td>
457
458
  </tr>
458
459
  </table>
459
460
 
package/index.cjs CHANGED
@@ -4650,6 +4650,7 @@ class GitWalkerFs {
4650
4650
  }
4651
4651
 
4652
4652
  async readdir(entry) {
4653
+ if ((await entry.type()) !== 'tree') return null
4653
4654
  const filepath = entry._fullpath;
4654
4655
  const { fs, dir } = this;
4655
4656
  const names = await fs.readdir(join(dir, filepath));
@@ -8120,7 +8121,7 @@ async function mergeTree({
8120
8121
  const path = `${dir}/${filepath}`;
8121
8122
  if ((await entry.type()) === 'blob') {
8122
8123
  const mode = await entry.mode();
8123
- const content = new TextDecoder().decode(await entry.content());
8124
+ const content = await entry.content();
8124
8125
  await fs.write(path, content, { mode });
8125
8126
  }
8126
8127
  return true
@@ -9498,8 +9499,8 @@ function filterCapabilities(server, client) {
9498
9499
 
9499
9500
  const pkg = {
9500
9501
  name: 'isomorphic-git',
9501
- version: '1.38.8',
9502
- agent: 'git/isomorphic-git@1.38.8',
9502
+ version: '1.38.10',
9503
+ agent: 'git/isomorphic-git@1.38.10',
9503
9504
  };
9504
9505
 
9505
9506
  class FIFO {
package/index.js CHANGED
@@ -4637,6 +4637,7 @@ class GitWalkerFs {
4637
4637
  }
4638
4638
 
4639
4639
  async readdir(entry) {
4640
+ if ((await entry.type()) !== 'tree') return null
4640
4641
  const filepath = entry._fullpath;
4641
4642
  const { fs, dir } = this;
4642
4643
  const names = await fs.readdir(join(dir, filepath));
@@ -8107,7 +8108,7 @@ async function mergeTree({
8107
8108
  const path = `${dir}/${filepath}`;
8108
8109
  if ((await entry.type()) === 'blob') {
8109
8110
  const mode = await entry.mode();
8110
- const content = new TextDecoder().decode(await entry.content());
8111
+ const content = await entry.content();
8111
8112
  await fs.write(path, content, { mode });
8112
8113
  }
8113
8114
  return true
@@ -9485,8 +9486,8 @@ function filterCapabilities(server, client) {
9485
9486
 
9486
9487
  const pkg = {
9487
9488
  name: 'isomorphic-git',
9488
- version: '1.38.8',
9489
- agent: 'git/isomorphic-git@1.38.8',
9489
+ version: '1.38.10',
9490
+ agent: 'git/isomorphic-git@1.38.10',
9490
9491
  };
9491
9492
 
9492
9493
  class FIFO {