fstream
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -27,2 +27,3 @@ // A thing that emits "entry" events with Reader objects | ||
self.entries = null | ||
self._entries = [] | ||
self._index = -1 | ||
@@ -51,2 +52,3 @@ self._paused = false | ||
self.entries = entries | ||
self._entries = entries.slice() | ||
@@ -79,3 +81,3 @@ self.emit('entries', entries) | ||
self._index++ | ||
if (self._index >= self.entries.length) { | ||
if (self._index >= self._entries.length) { | ||
if (!self._ended) { | ||
@@ -89,8 +91,10 @@ self._ended = true | ||
// save creating a proxy, by stat'ing the thing now. | ||
var nextEntry = self._entries[self._index] | ||
if (!nextEntry) return this._read() | ||
// ok, handle this one, then. | ||
// save creating a proxy, by stat'ing the thing now. | ||
var p = path.resolve(self._path, self.entries[self._index]) | ||
var p = path.resolve(self._path, nextEntry) | ||
assert(p !== self._path) | ||
assert(self.entries[self._index]) | ||
assert(nextEntry) | ||
@@ -97,0 +101,0 @@ // set this to prevent trying to _read() again in the stat time. |
@@ -5,6 +5,6 @@ { | ||
"description": "Advanced file system stream things", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/isaacs/fstream.git" | ||
"url": "https://github.com/npm/fstream.git" | ||
}, | ||
@@ -11,0 +11,0 @@ "main": "fstream.js", |
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
573481
54
2337
0