Comparing version 0.6.0 to 0.6.1
@@ -87,2 +87,1 @@ var Terror = require('terror'), | ||
module.exports = errors; | ||
@@ -94,19 +94,21 @@ var fs = require('fs'), | ||
if (err) { | ||
// unknown error | ||
cb(err); | ||
cb(LusterPortError | ||
.createError(LusterPortError.CODES.UNKNOWN_ERROR, err)); | ||
return; | ||
} | ||
var value = this.value; | ||
if (this.family !== Port.UNIX) { | ||
cb(LusterPortError | ||
.createError(LusterPortError.CODES.NOT_UNIX_SOCKET) | ||
.bind({ value : this.value })); | ||
.bind({ value : value })); | ||
return; | ||
} | ||
fs.unlink(this.value, function(err) { | ||
fs.unlink(value, function(err) { | ||
if (err && err.code !== 'ENOENT') { | ||
cb(LusterPortError | ||
.createError(LusterPortError.CODES.CAN_NOT_UNLINK_UNIX_SOCKET, err) | ||
.bind({ socketPath : this.value })); | ||
.bind({ socketPath : value })); | ||
return; | ||
@@ -113,0 +115,0 @@ } |
{ | ||
"name" : "luster", | ||
"version" : "0.6.0", | ||
"version" : "0.6.1", | ||
"description" : "Node.js cluster wrapper", | ||
@@ -5,0 +5,0 @@ "main" : "./lib/luster.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83443
2048
1