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

avocat

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avocat

A simple library to convert objection errors to boom errors

2.0.0
latest
Source
npm
Version published
Weekly downloads
58
-55.04%
Maintainers
1
Weekly downloads
 
Created
Source

avocat

A library to convert Objection errors to Boom errors

Build Status Coverage Status

Lead Maintainer: Daniel Cole

Usage

rethrow(error, [options])

Throws a Boom error according to the Objection error received

  • error: - the Objection error (any other types of errors are just ignored)
  • options: - optional object where:
    • return: - if true will return the error instead of throwing it
    • includeMessage: if true the Boom error created will have it's message set to the message of the error thrown

Heavily inspired by Bounce

Keywords

objection

FAQs

Package last updated on 21 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts