Comparing version 0.1.11 to 0.1.12
@@ -118,4 +118,12 @@ // A thing that emits "entry" events with Reader objects | ||
me.emit("entry", entry) | ||
me.emit("child", entry) | ||
// skip over sockets. they can't be piped around properly, | ||
// so there's really no sense even acknowledging them. | ||
// if someone really wants to see them, they can listen to | ||
// the "socket" events. | ||
if (entry.type === "Socket") { | ||
me.emit("socket", entry) | ||
} else { | ||
me.emit("entry", entry) | ||
me.emit("child", entry) | ||
} | ||
}) | ||
@@ -122,0 +130,0 @@ |
@@ -24,2 +24,3 @@ | ||
if (props.linkpath === "") props.linkpath = "." | ||
if (!props.linkpath) { | ||
@@ -64,4 +65,10 @@ me.error("Need linkpath property to create " + props.type) | ||
// so swallow ENOENT errors here and just soldier in. | ||
// Additionally, an EPERM or EACCES can happen on win32 if it's trying | ||
// to make a link to a directory. Again, just skip it. | ||
// A better solution would be to have fs.symlink be supported on | ||
// windows in some nice fashion. | ||
if (er) { | ||
if (er.code === "ENOENT" && process.platform === "win32") { | ||
if ((er.code === "ENOENT" || | ||
er.code === "EACCES" || | ||
er.code === "EPERM" ) && process.platform === "win32") { | ||
me.ready = true | ||
@@ -68,0 +75,0 @@ me.emit("ready") |
@@ -18,2 +18,3 @@ | ||
, LinkReader = require("./link-reader.js") | ||
, SocketReader = require("./socket-reader.js") | ||
, ProxyReader = require("./proxy-reader.js") | ||
@@ -79,2 +80,6 @@ | ||
case "Socket": | ||
ClassType = SocketReader | ||
break | ||
case null: | ||
@@ -235,4 +240,4 @@ ClassType = ProxyReader | ||
Reader.prototype._read = function () { | ||
me.warn("Cannot read unknown type: "+me.type) | ||
this.error("Cannot read unknown type: "+this.type) | ||
} | ||
@@ -5,3 +5,3 @@ { | ||
"description": "Advanced file system stream things", | ||
"version": "0.1.4", | ||
"version": "0.1.11", | ||
"repository": { | ||
@@ -16,5 +16,5 @@ "type": "git", | ||
"dependencies": { | ||
"rimraf": "~1.0.8", | ||
"mkdirp": "~0.1.0", | ||
"graceful-fs": "~1.1.1", | ||
"rimraf": "2", | ||
"mkdirp": "0.3", | ||
"graceful-fs": "~1.1.2", | ||
"inherits": "~1.0.0" | ||
@@ -21,0 +21,0 @@ }, |
@@ -5,3 +5,3 @@ { | ||
"description": "Advanced file system stream things", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"repository": { | ||
@@ -16,4 +16,4 @@ "type": "git", | ||
"dependencies": { | ||
"rimraf": "~1.0.8", | ||
"mkdirp": "~0.1.0", | ||
"rimraf": "2", | ||
"mkdirp": "0.3", | ||
"graceful-fs": "~1.1.2", | ||
@@ -20,0 +20,0 @@ "inherits": "~1.0.0" |
109002
44
3244
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmkdirp@0.3.5(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedmkdirp@0.1.0(transitive)
- Removedrimraf@1.0.9(transitive)
Updatedmkdirp@0.3
Updatedrimraf@2