Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
28
decreased by-56.25%
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

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

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