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 +2 -2
- package/package.json +1 -1
- package/prebuilds/win32-x64/bare-tty.bare +0 -0
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
|
Binary file
|