isomorphic-git 1.44.10 → 1.44.11

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
@@ -466,6 +466,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
466
466
  <td align="center"><a href="https://github.com/ShahabAhmed01"><img src="https://avatars.githubusercontent.com/u/192491541?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Shahab Ahmed</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ShahabAhmed01" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ShahabAhmed01" title="Tests">⚠️</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ShahabAhmed01" title="Documentation">📖</a></td>
467
467
  <td align="center"><a href="https://github.com/wleeaf"><img src="https://avatars.githubusercontent.com/u/179125857?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Wleeaf</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=wleeaf" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=wleeaf" title="Tests">⚠️</a></td>
468
468
  <td align="center"><a href="https://github.com/SergioSRcode"><img src="https://avatars.githubusercontent.com/u/104135678?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Sergio</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=SergioSRcode" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=SergioSRcode" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=SergioSRcode" title="Tests">⚠️</a></td>
469
+ <td align="center"><a href="https://onmax.me/hire"><img src="https://avatars.githubusercontent.com/u/22072217?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Max</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=onmax" title="Code">💻</a></td>
469
470
  </tr>
470
471
  </table>
471
472
 
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  var get = _interopDefault(require('simple-get'));
8
+ var stream = require('stream');
8
9
 
9
10
  /**
10
11
  * @typedef {Object} GitProgressEvent
@@ -95,14 +96,12 @@ async function forAwait(iterable, cb) {
95
96
  }
96
97
 
97
98
  function asyncIteratorToStream(iter) {
98
- // @ts-expect-error: readable-stream has PassThrough at runtime, types mismatch
99
- const { PassThrough } = require('readable-stream');
100
- const stream = new PassThrough();
99
+ const stream$1 = new stream.PassThrough();
101
100
  setTimeout(async () => {
102
- await forAwait(iter, chunk => stream.write(chunk));
103
- stream.end();
101
+ await forAwait(iter, chunk => stream$1.write(chunk));
102
+ stream$1.end();
104
103
  }, 1);
105
- return stream
104
+ return stream$1
106
105
  }
107
106
 
108
107
  async function collect(iterable) {
@@ -205,6 +204,7 @@ async function request({
205
204
  // @ts-expect-error
206
205
  body = Buffer.from(await collect(body));
207
206
  } else if (body) {
207
+ // @ts-expect-error
208
208
  body = asyncIteratorToStream(body);
209
209
  }
210
210
  return new Promise((resolve, reject) => {
@@ -1,4 +1,5 @@
1
1
  import get from 'simple-get';
2
+ import { PassThrough } from 'stream';
2
3
 
3
4
  /**
4
5
  * @typedef {Object} GitProgressEvent
@@ -89,8 +90,6 @@ async function forAwait(iterable, cb) {
89
90
  }
90
91
 
91
92
  function asyncIteratorToStream(iter) {
92
- // @ts-expect-error: readable-stream has PassThrough at runtime, types mismatch
93
- const { PassThrough } = require('readable-stream');
94
93
  const stream = new PassThrough();
95
94
  setTimeout(async () => {
96
95
  await forAwait(iter, chunk => stream.write(chunk));
@@ -199,6 +198,7 @@ async function request({
199
198
  // @ts-expect-error
200
199
  body = Buffer.from(await collect(body));
201
200
  } else if (body) {
201
+ // @ts-expect-error
202
202
  body = asyncIteratorToStream(body);
203
203
  }
204
204
  return new Promise((resolve, reject) => {
package/index.cjs CHANGED
@@ -10294,8 +10294,8 @@ function filterCapabilities(server, client) {
10294
10294
 
10295
10295
  const pkg = {
10296
10296
  name: 'isomorphic-git',
10297
- version: '1.44.10',
10298
- agent: 'git/isomorphic-git@1.44.10',
10297
+ version: '1.44.11',
10298
+ agent: 'git/isomorphic-git@1.44.11',
10299
10299
  };
10300
10300
 
10301
10301
  class FIFO {
package/index.js CHANGED
@@ -10281,8 +10281,8 @@ function filterCapabilities(server, client) {
10281
10281
 
10282
10282
  const pkg = {
10283
10283
  name: 'isomorphic-git',
10284
- version: '1.44.10',
10285
- agent: 'git/isomorphic-git@1.44.10',
10284
+ version: '1.44.11',
10285
+ agent: 'git/isomorphic-git@1.44.11',
10286
10286
  };
10287
10287
 
10288
10288
  class FIFO {