@nxtedition/nxt-undici 2.0.40 → 2.0.42
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/lib/index.js +1 -0
- package/lib/readable.js +4 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
package/lib/readable.js
CHANGED
|
@@ -134,12 +134,15 @@ export class BodyReadable extends Readable {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
push(chunk) {
|
|
137
|
-
|
|
137
|
+
if (chunk != null) {
|
|
138
|
+
this[kReadLength] += chunk.length
|
|
139
|
+
}
|
|
138
140
|
|
|
139
141
|
if (this[kConsume] && chunk !== null) {
|
|
140
142
|
consumePush(this[kConsume], chunk)
|
|
141
143
|
return this[kReading] ? super.push(chunk) : true
|
|
142
144
|
}
|
|
145
|
+
|
|
143
146
|
return super.push(chunk)
|
|
144
147
|
}
|
|
145
148
|
|