Comparing version 1.3.9 to 1.3.10
{ | ||
"name": "bones", | ||
"description": "Framework for using backbone.js on the client and server.", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -70,2 +70,8 @@ var env = process.env.NODE_ENV || 'development'; | ||
// Output unexpected errors to console but hide them from public eyes. | ||
if (err.status >= 500) { | ||
if (process.env.NODE_ENV != 'test') console.error(err.stack || err.toString()); | ||
if (process.env.NODE_ENV == 'production') err.message = 'Internal Server Error'; | ||
} | ||
if ((req.headers.accept + '' || '').indexOf('json') >= 0) { | ||
@@ -72,0 +78,0 @@ res.writeHead(err.status, { 'Content-Type': 'application/json' }); |
@@ -11,3 +11,3 @@ process.env.NODE_ENV = 'test'; | ||
}, { | ||
status: 204 | ||
status: 200 | ||
}); | ||
@@ -14,0 +14,0 @@ |
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
170107
1783
20