Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hapi/boom

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/boom - npm Package Compare versions

Comparing version 9.1.4 to 10.0.0

11

lib/index.js

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

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