Comparing version 0.4.0 to 0.4.1
@@ -84,5 +84,5 @@ // Load modules | ||
internals.Boom.unauthorized = function (error, scheme, attributes) { // Or function (error, wwwAuthenticate[]) | ||
internals.Boom.unauthorized = function (message, scheme, attributes) { // Or function (message, wwwAuthenticate[]) | ||
var err = new internals.Boom(401, error); | ||
var err = new internals.Boom(401, message); | ||
@@ -97,3 +97,3 @@ if (!scheme) { | ||
// function (error, scheme, attributes) | ||
// function (message, scheme, attributes) | ||
@@ -118,7 +118,7 @@ wwwAuthenticate = scheme; | ||
if (error) { | ||
if (message) { | ||
if (attributes) { | ||
wwwAuthenticate += ','; | ||
} | ||
wwwAuthenticate += ' error="' + Hoek.escapeHeaderAttribute(error) + '"'; | ||
wwwAuthenticate += ' error="' + Hoek.escapeHeaderAttribute(message) + '"'; | ||
} | ||
@@ -131,3 +131,3 @@ else { | ||
// function (error, wwwAuthenticate[]) | ||
// function (message, wwwAuthenticate[]) | ||
@@ -134,0 +134,0 @@ var wwwArray = scheme; |
{ | ||
"name": "boom", | ||
"description": "HTTP-friendly error objects", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -14,3 +14,3 @@ "contributors": [], | ||
"engines": { | ||
"node": "0.10.x" | ||
"node": ">=0.8.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "dependencies": { |
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
44227