Comparing version 3.0.4 to 3.0.5
@@ -0,1 +1,11 @@ | ||
# v3.0.5 | ||
- update `send-data/error` to pass extra error objects through | ||
down the wire. | ||
# v3.0.4 | ||
- throw an exception if you had `{ gzip: true }` and no callback | ||
- set the gzip header | ||
# v3.0.0 | ||
@@ -2,0 +12,0 @@ |
@@ -18,5 +18,7 @@ var sendJson = require("./json") | ||
} else if (error && typeof error.message === "string") { | ||
opts.body = { errors: [ | ||
{ message: error.message, attribute: "general" } | ||
] } | ||
if (!error.attribute) { | ||
error.attribute = "general" | ||
} | ||
opts.body = { errors: [error] } | ||
} | ||
@@ -23,0 +25,0 @@ |
{ | ||
"name": "send-data", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "send data through response", | ||
@@ -22,3 +22,4 @@ "keywords": [], | ||
"test-server": "~0.1.1", | ||
"tape": "~1.0.4" | ||
"tape": "~1.0.4", | ||
"tern": "git://github.com/marijnh/tern" | ||
}, | ||
@@ -25,0 +26,0 @@ "licenses": [ |
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
10503
184
3