Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hapipal/avocat
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: hapipal/avocat
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 17, 2022

  1. Copy the full SHA
    ed9ad58 View commit details

Commits on Mar 12, 2022

  1. Merge pull request #12 from mattboutet/dep-update

    Update dependencies to support Objection v3
    devinivy authored Mar 12, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    35ebfd8 View commit details
  2. 3.1.0

    devinivy committed Mar 12, 2022
    Copy the full SHA
    dbb7b70 View commit details
Showing with 5 additions and 5 deletions.
  1. +1 −1 API.md
  2. +1 −1 README.md
  3. +3 −3 package.json
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ A utility to convert [Objection](https://vincit.github.io/objection.js/) databas

> **Note**
>
> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 (_see v1 for lower support_).
> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 or v3 (_see v1 for lower support_).
## `Avocat`
### `Avocat.rethrow(error, [options])`
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ npm install @hapipal/avocat
## Usage
> See also the [API Reference](API.md)
>
> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 (_see v1 for lower support_).
> Avocat is intended for use with hapi v19+, nodejs v12+, and Objection v2 or v3 (_see v1 for lower support_).
Avocat provides a single utility function [`Avocat.rethrow(error, [options])`](API.md#avocatrethrowerror-options) which transforms database errors from Objection into Boom HTTP errors that are compatible with hapi.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hapipal/avocat",
"description": "A utility to convert Objection database errors into Boom HTTP errors",
"version": "3.0.0",
"version": "3.1.0",
"main": "lib/index.js",
"author": "Daniel COLE <daniel@pixul.fr>",
"repository": {
@@ -34,12 +34,12 @@
"@hapi/boom": "9.x.x"
},
"devDependencies": {
"objection": "2.x.x",
"objection": "3.x.x",
"coveralls": "3.x.x",
"@hapi/code": "8.x.x",
"@hapi/lab": "24.x.x"
},
"peerDependencies": {
"objection": ">=2 <3"
"objection": ">=2 <4"
}
}