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

@hapi/boom

Package Overview
Dependencies
Maintainers
7
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.0 to 9.1.1

15

lib/index.d.ts

@@ -105,5 +105,10 @@ /**

/**
The error message derived from error.message
*/
* The error message derived from error.message
*/
message: string;
/**
* Custom properties
*/
[key: string]: unknown;
}

@@ -131,5 +136,5 @@

/**
* Specifies if an error object is a valid boom object
* Specifies if an object is a valid boom object
*
* @param err - The error object
* @param obj - The object to assess
* @param statusCode - Optional status code

@@ -139,3 +144,3 @@ *

*/
export function isBoom(err: Error, statusCode?: number): err is Boom;
export function isBoom(obj: unknown, statusCode?: number): obj is Boom;

@@ -142,0 +147,0 @@

{
"name": "@hapi/boom",
"description": "HTTP-friendly error objects",
"version": "9.1.0",
"version": "9.1.1",
"repository": "git://github.com/hapijs/boom",

@@ -20,3 +20,4 @@ "main": "lib/index.js",

"@hapi/code": "8.x.x",
"@hapi/lab": "22.x.x"
"@hapi/lab": "24.x.x",
"typescript": "~4.0.2"
},

@@ -23,0 +24,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