Comparing version 1.1.1 to 1.1.2
@@ -5,9 +5,9 @@ var sendJson = require("./json") | ||
function sendError(req, res, error) { | ||
function sendError(req, res, error, statusCode) { | ||
var message = typeof error === "string" ? error : error.message | ||
sendJson(req, res, { | ||
statusCode: 500, | ||
statusCode: statusCode || 500, | ||
body: { message: message } | ||
}) | ||
} |
{ | ||
"name": "send-data", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "send data through response", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
8139