bare-tty 3.2.1 → 3.2.4

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/index.js CHANGED
@@ -128,7 +128,7 @@ exports.WriteStream = class TTYWriteStream extends Writable {
128
128
  }
129
129
 
130
130
  _writev (datas, cb) {
131
- this._pendingWrite = cb
131
+ this._pendingWrite = [cb, datas]
132
132
  binding.writev(this._handle, datas)
133
133
  }
134
134
 
@@ -149,7 +149,7 @@ exports.WriteStream = class TTYWriteStream extends Writable {
149
149
 
150
150
  _continueWrite (err) {
151
151
  if (this._pendingWrite === null) return
152
- const cb = this._pendingWrite
152
+ const cb = this._pendingWrite[0]
153
153
  this._pendingWrite = null
154
154
  cb(err)
155
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-tty",
3
- "version": "3.2.1",
3
+ "version": "3.2.4",
4
4
  "description": "Native TTY streams for JavaScript",
5
5
  "main": "index.js",
6
6
  "files": [
Binary file