@hapi/boom
Advanced tools
Comparing version 9.1.0 to 9.1.1
@@ -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": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
28061
746
3
1