imapflow 1.0.104 → 1.0.105

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/imap-flow.js +5 -1
  2. package/package.json +1 -1
package/lib/imap-flow.js CHANGED
@@ -2620,6 +2620,9 @@ class ImapFlow extends EventEmitter {
2620
2620
 
2621
2621
  unbind() {
2622
2622
  this.socket.unpipe(this.streamer);
2623
+ if (this._inflate) {
2624
+ this._inflate.unpipe(this.streamer);
2625
+ }
2623
2626
 
2624
2627
  this.socket.removeListener('error', this._socketError);
2625
2628
  this.socket.removeListener('close', this._socketClose);
@@ -2628,7 +2631,8 @@ class ImapFlow extends EventEmitter {
2628
2631
  this.socket.removeListener('timeout', this._socketTimeout);
2629
2632
 
2630
2633
  return {
2631
- socket: this.socket
2634
+ readSocket: this._inflate || this.socket,
2635
+ writeSocket: this.writeSocket || this.socket
2632
2636
  };
2633
2637
  }
2634
2638
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imapflow",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "IMAP Client for Node",
5
5
  "main": "./lib/imap-flow.js",
6
6
  "scripts": {