Skip to content

Commit

Permalink
Bumps Fastify from 3.x to 4.x (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnorbert committed Jun 15, 2022
1 parent ee79cec commit cd61d2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/build-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function buildPlugin(Client, pluginOpts) {
}

const plugin = fp(FastifySecretsPlugin, {
fastify: '3.x',
fastify: '4.x',
...pluginOpts
})
plugin.Client = Client
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"node": ">= 12.13.0"
},
"dependencies": {
"fastify-plugin": "^3.0.0",
"fastify-plugin": "^3.0.1",
"p-map": "^4.0.0",
"p-props": "^4.0.0"
},
Expand All @@ -43,7 +43,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-standard": "^5.0.0",
"husky": "^8.0.0",
"lint-staged": "^13.0.0",
"prettier": "^2.1.2",
Expand Down
2 changes: 1 addition & 1 deletion test/build-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test('builds a fastify plugin', async (t) => {

const opts = fp.firstCall.args[1]

t.equal(opts.fastify, '3.x', 'adds option for fastify support')
t.equal(opts.fastify, '4.x', 'adds option for fastify support')
t.equal(opts.option, 'option1', 'forward provided options')

t.equal(plugin.Client, Client, 'also exports client')
Expand Down

0 comments on commit cd61d2e

Please sign in to comment.