Update Node_modules
This commit is contained in:
+6
-7
@@ -234,13 +234,12 @@ function doRead(_this) {
|
||||
_this.s.bytesToSkip = 0;
|
||||
}
|
||||
|
||||
if (expectedN === _this.s.expectedEnd && _this.s.bytesToTrim != null) {
|
||||
sliceEnd = _this.s.bytesToTrim;
|
||||
}
|
||||
|
||||
// If the remaining amount of data left is < chunkSize read the right amount of data
|
||||
if (_this.s.options.end && _this.s.options.end - _this.s.bytesToSkip < buf.length) {
|
||||
sliceEnd = _this.s.options.end - _this.s.bytesToSkip;
|
||||
const atEndOfStream = expectedN === _this.s.expectedEnd - 1;
|
||||
const bytesLeftToRead = _this.s.options.end - _this.s.bytesToSkip;
|
||||
if (atEndOfStream && _this.s.bytesToTrim != null) {
|
||||
sliceEnd = _this.s.file.chunkSize - _this.s.bytesToTrim;
|
||||
} else if (_this.s.options.end && bytesLeftToRead < doc.data.length()) {
|
||||
sliceEnd = bytesLeftToRead;
|
||||
}
|
||||
|
||||
if (sliceStart != null || sliceEnd != null) {
|
||||
|
||||
Reference in New Issue
Block a user