Socket
Socket
Sign inDemoInstall

boom

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boom - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

12

lib/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc