🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

create-boom-error

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-boom-error - npm Package Compare versions

Comparing version

to
3.0.1

5

index.d.ts
import { Boom } from '@hapi/boom';
declare class DecoratedBoom extends Boom<any> {
constructor(...args: any[])
name: string;

@@ -9,2 +12,2 @@ code: string;

export declare function isDecoratedBoom(err: unknown): err is DecoratedBoom;
export declare function createBoomError(name: string, statusCode: number, message?: string | ((...args: unknown[]) => string), code?: string): typeof DecoratedBoom;
export declare function createBoomError(name: string, statusCode: number, message?: string | ((...args: any[]) => string), code?: string): typeof DecoratedBoom<T>;

2

package.json
{
"name": "create-boom-error",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simply create sub-classed Boom errors for Hapi applications.",

@@ -5,0 +5,0 @@ "main": "index.js",