@hapi/boom
Advanced tools
Comparing version 9.1.4 to 10.0.0
@@ -126,3 +126,3 @@ 'use strict'; | ||
if (!err.isBoom) { | ||
return internals.initialize(err, options.statusCode || 500, options.message); | ||
return internals.initialize(err, options.statusCode ?? 500, options.message); | ||
} | ||
@@ -136,3 +136,3 @@ | ||
return internals.initialize(err, options.statusCode || err.output.statusCode, options.message); | ||
return internals.initialize(err, options.statusCode ?? err.output.statusCode, options.message); | ||
}; | ||
@@ -184,9 +184,4 @@ | ||
let value = attributes[name]; | ||
if (value === null || | ||
value === undefined) { | ||
const value = attributes[name] ?? ''; | ||
value = ''; | ||
} | ||
err.output.payload.attributes[name] = value; | ||
@@ -193,0 +188,0 @@ return `${name}="${Hoek.escapeHeaderAttribute(value.toString())}"`; |
@@ -1,3 +0,4 @@ | ||
Copyright (c) 2012-2020, Sideway Inc, and project contributors | ||
Copyright (c) 2012-2014, Walmart. | ||
Copyright (c) 2012-2022, Project contributors | ||
Copyright (c) 2012-2020, Sideway Inc | ||
Copyright (c) 2012-2014, Walmart. | ||
All rights reserved. | ||
@@ -4,0 +5,0 @@ |
{ | ||
"name": "@hapi/boom", | ||
"description": "HTTP-friendly error objects", | ||
"version": "9.1.4", | ||
"version": "10.0.0", | ||
"repository": "git://github.com/hapijs/boom", | ||
@@ -15,9 +15,16 @@ "main": "lib/index.js", | ||
], | ||
"eslintConfig": { | ||
"extends": [ | ||
"plugin:@hapi/module" | ||
] | ||
}, | ||
"dependencies": { | ||
"@hapi/hoek": "9.x.x" | ||
"@hapi/hoek": "10.x.x" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "24.x.x", | ||
"typescript": "~4.0.2" | ||
"@hapi/code": "9.x.x", | ||
"@hapi/eslint-plugin": "*", | ||
"@hapi/lab": "25.0.0-beta.1", | ||
"@types/node": "^17.0.31", | ||
"typescript": "~4.6.4" | ||
}, | ||
@@ -24,0 +31,0 @@ "scripts": { |
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
28351
5
746
+ Added@hapi/hoek@10.0.1(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
Updated@hapi/hoek@10.x.x