fs-minipass
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -97,2 +97,4 @@ 'use strict' | ||
const buf = this[_makeBuf]() | ||
/* istanbul ignore if */ | ||
if (buf.length === 0) return process.nextTick(this[_onread], null, 0, buf) | ||
fs.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) => | ||
@@ -176,3 +178,4 @@ this[_onread](er, br, buf)) | ||
const buf = this[_makeBuf]() | ||
const br = fs.readSync(this[_fd], buf, 0, buf.length, null) | ||
/* istanbul ignore next */ | ||
const br = buf.length === 0 ? 0 : fs.readSync(this[_fd], buf, 0, buf.length, null) | ||
if (!this[_handleChunk](br, buf)) | ||
@@ -179,0 +182,0 @@ break |
{ | ||
"name": "fs-minipass", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13013
335
1