cluster-service
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -99,3 +99,3 @@ var | ||
require("./lib/run").start(options, function(err, result) { | ||
process.kill(process.pid, "SIGKILL"); // exit by force | ||
process.exit(1); // graceful exit | ||
}); | ||
@@ -102,0 +102,0 @@ } else { |
@@ -111,3 +111,9 @@ var | ||
{ | ||
var body = JSON.stringify(result); | ||
var body = JSON.stringify(result, function (key, val) { | ||
if (key[0] === "_") { | ||
return undefined; | ||
} else { | ||
return val; | ||
} | ||
}); | ||
res.writeHead(200, { "Content-Type": "text/json; charset=UTF-8", "Content-Length": body.length }); | ||
@@ -114,0 +120,0 @@ res.end(body); |
@@ -28,2 +28,3 @@ var | ||
cservice.error("Error: ", err); | ||
body = { error: err }; | ||
} else if (body) { | ||
@@ -33,4 +34,4 @@ if (typeof body === "string" && (body.indexOf("{") === 0 || body.indexOf("[") === 0)) { | ||
} | ||
cservice.results(util.inspect(body, { depth: null })); | ||
} | ||
cservice.results(util.inspect(body, { depth: null })); | ||
@@ -37,0 +38,0 @@ cb && cb(err, body); |
{ | ||
"name": "cluster-service", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Aaron Silvas", |
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
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
65176
1641