Skip to content

Commit 1a0b1e7

Browse files
authored
Merge pull request #70 from podium-lib/fastify-3
feat: support Fastify version 3
2 parents e848e5f + 86c6209 commit 1a0b1e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/layout-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const podiumLayoutFastifyPlugin = (fastify, layout, done) => {
4040

4141
// Allow all content types for proxy requests
4242
// https://github.com/fastify/fastify/blob/master/docs/ContentTypeParser.md#catch-all
43-
instance.addContentTypeParser('*', (req, cb) => {
43+
instance.addContentTypeParser('*', (req, payload, cb) => {
4444
cb();
4545
});
4646

@@ -61,6 +61,6 @@ const podiumLayoutFastifyPlugin = (fastify, layout, done) => {
6161
};
6262

6363
module.exports = fp(podiumLayoutFastifyPlugin, {
64-
fastify: '^2.0.0',
64+
fastify: '2.x || 3.x',
6565
name: 'podium-layout',
6666
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"eslint-config-prettier": "6.11.0",
5353
"eslint-plugin-import": "2.22.0",
5454
"eslint-plugin-prettier": "3.1.4",
55-
"fastify": "2.15.1",
55+
"fastify": "3.2.1",
5656
"fastify-formbody": "4.0.3",
5757
"prettier": "2.0.5",
5858
"tap": "14.10.5"

0 commit comments

Comments
 (0)