bdy 1.9.29 → 1.9.30-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.9.29",
4
+ "version": "1.9.30-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -8,7 +8,6 @@ class TunnelHttpStream extends stream_1.Transform {
8
8
  this.data = Buffer.alloc(0);
9
9
  this.realLength = 0;
10
10
  this.tooLarge = false;
11
- this.backPressure = [];
12
11
  }
13
12
  _transform(chunk, encoding, callback) {
14
13
  if (!this.tooLarge) {
@@ -21,21 +20,7 @@ class TunnelHttpStream extends stream_1.Transform {
21
20
  }
22
21
  }
23
22
  this.realLength += chunk.length;
24
- this.backPressure.push(chunk);
25
- this._pushBackPressure();
26
- callback();
27
- }
28
- _pushBackPressure() {
29
- while (this.backPressure.length > 0) {
30
- const chunk = this.backPressure.shift();
31
- if (!this.push(chunk)) {
32
- this.removeAllListeners('drain');
33
- this.once('drain', () => {
34
- this._pushBackPressure();
35
- });
36
- break;
37
- }
38
- }
23
+ callback(null, chunk);
39
24
  }
40
25
  pipeToNothing(done) {
41
26
  this.once('end', done);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.9.29",
4
+ "version": "1.9.30-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {