Skip to content

Commit

Permalink
Merge pull request #70 from podium-lib/fastify-3
Browse files Browse the repository at this point in the history
feat: support Fastify version 3
  • Loading branch information
trygve-lie authored Aug 17, 2020
2 parents e848e5f + 86c6209 commit 1a0b1e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/layout-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const podiumLayoutFastifyPlugin = (fastify, layout, done) => {

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

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

module.exports = fp(podiumLayoutFastifyPlugin, {
fastify: '^2.0.0',
fastify: '2.x || 3.x',
name: 'podium-layout',
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-config-prettier": "6.11.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-prettier": "3.1.4",
"fastify": "2.15.1",
"fastify": "3.2.1",
"fastify-formbody": "4.0.3",
"prettier": "2.0.5",
"tap": "14.10.5"
Expand Down

0 comments on commit 1a0b1e7

Please sign in to comment.