Socket
Socket
Sign inDemoInstall

fstream

Package Overview
Dependencies
4
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.8 to 1.0.9

.nyc_output/49459.json

14

lib/dir-reader.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc