bare-fs 4.3.1 → 4.3.2
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1491,7 +1491,7 @@ async function readFile(filepath, opts, cb) {
|
|
|
1491
1491
|
|
|
1492
1492
|
while (true) {
|
|
1493
1493
|
buffer = Buffer.allocUnsafe(8192)
|
|
1494
|
-
const r = await read(fd, buffer
|
|
1494
|
+
const r = await read(fd, buffer)
|
|
1495
1495
|
len += r
|
|
1496
1496
|
if (r === 0) break
|
|
1497
1497
|
buffers.push(buffer.subarray(0, r))
|
|
@@ -1543,7 +1543,7 @@ function readFileSync(filepath, opts) {
|
|
|
1543
1543
|
|
|
1544
1544
|
while (true) {
|
|
1545
1545
|
buffer = Buffer.allocUnsafe(8192)
|
|
1546
|
-
const r = readSync(fd, buffer
|
|
1546
|
+
const r = readSync(fd, buffer)
|
|
1547
1547
|
len += r
|
|
1548
1548
|
if (r === 0) break
|
|
1549
1549
|
buffers.push(buffer.subarray(0, r))
|
|
@@ -2032,7 +2032,7 @@ class FileReadStream extends Readable {
|
|
|
2032
2032
|
this.push(data.subarray(0, len))
|
|
2033
2033
|
|
|
2034
2034
|
this._missing -= len
|
|
2035
|
-
this._offset +=
|
|
2035
|
+
this._offset += len
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
async _destroy(err, cb) {
|