Socket
Socket
Sign inDemoInstall

fstream

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fstream - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

examples/deep-copy/lib/socket-reader.js

12

examples/deep-copy/lib/dir-reader.js

@@ -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)
}

8

examples/deep-copy/package.json

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc