Socket
Socket
Sign inDemoInstall

fstream

Package Overview
Dependencies
4
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.13 to 0.1.14

examples/filter-pipe.js

3

lib/dir-writer.js

@@ -126,2 +126,5 @@ // It is expected that, when .add() returns false, the consumer

// if i have a filter, the child should inherit it.
props.filter = me.filter
// all the rest of the stuff, copy over from the source.

@@ -128,0 +131,0 @@ Object.keys(entry.props).forEach(function (k) {

@@ -62,2 +62,5 @@ // A reader for when we don't yet know what kind of thing

, "entry"
, "entryEnd"
, "child"
, "childEnd"
, "warn"

@@ -64,0 +67,0 @@ ].forEach(function (ev) {

@@ -101,2 +101,4 @@

me.filter = typeof props.filter === "function" ? props.filter: null
// start the ball rolling.

@@ -130,2 +132,9 @@ // this checks what's there already, and then calls

function statCb (er, current) {
if (me.filter && !me.filter.call(me._proxy || me, current)) {
me._aborted = true
me.emit("end")
me.emit("close")
return
}
// if it's not there, great. We'll just create it.

@@ -132,0 +141,0 @@ // if it is there, then we'll need to change whatever differs

9

package.json

@@ -5,3 +5,3 @@ {

"description": "Advanced file system stream things",
"version": "0.1.13",
"version": "0.1.14",
"repository": {

@@ -13,3 +13,3 @@ "type": "git",

"engines": {
"node": "0.5 || 0.6 || 0.7"
"node": ">=0.6"
},

@@ -23,7 +23,8 @@ "dependencies": {

"devDependencies": {
"tap": "0.1"
"tap": ""
},
"scripts": {
"test": "tap examples/*.js"
}
},
"license": "BSD"
}

Sorry, the diff of this file is not supported yet

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