Skip to content

Commit

Permalink
fix: adjust fastify compatibility (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
kperdomo1 authored Aug 10, 2023
1 parent 43a55b5 commit 7f8bdfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ npm i fastify-raw-body
| `^2.0.0` | `^2.0.0` |
| `^3.0.0` | `^3.0.0` |
| `^4.0.0` | `^4.0.0` |
| `^4.2.1` | `^4.19.0` |


## Usage
Expand Down
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function rawBody (fastify, opts, next) {
}

const plugin = fp(rawBody, {
fastify: '^4.10.x',
fastify: '^4.19.x',
name: 'fastify-raw-body'
})

Expand Down
2 changes: 1 addition & 1 deletion test/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ t.test('wrong fastify version', t => {

app.ready(err => {
t.ok(err)
t.match(err.message, /expected '\^4.10.x' fastify version/)
t.match(err.message, /expected '\^4.19.x' fastify version/)
})
})

Expand Down

0 comments on commit 7f8bdfc

Please sign in to comment.