Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 646a59e

Browse files
committed
fix(fastify-autoload): fixes export default fastify-autoload bug
#236
1 parent e7866c5 commit 646a59e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"cross-env": "~7.0.0",
3434
"fastify": "~2.12.0",
35-
"fastify-autoload": "~1.2.0",
35+
"fastify-autoload": "~1.2.1",
3636
"fastify-blipp": "~2.1.0",
3737
"fastify-cors": "~3.0.0",
3838
"fastify-helmet": "~3.0.1",

src/plugins/couchdb/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ couchDB.autoConfig = {
2121
url: COUCHDB_URL,
2222
}
2323

24-
export = fp(couchDB)
24+
export default fp(couchDB)
2525

2626
declare module 'fastify' {
2727
interface FastifyInstance {

src/plugins/couchdb/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ couchDBProxy.autoConfig = {
2121
url: process.env.COUCHDB_URL,
2222
}
2323

24-
export = couchDBProxy
24+
export default couchDBProxy

0 commit comments

Comments
 (0)