Skip to content

Commit a07a4a3

Browse files
committed
Updated fastify to 0.38.0.
1 parent 58832a7 commit a07a4a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function fastifyStatic (fastify, opts, next) {
3939

4040
sendStream.on('error', function (err) {
4141
if (err.status === 404) {
42-
fastify._404Context.handler(request, reply)
42+
reply.notFound()
4343
} else {
4444
reply.send(err)
4545
}
@@ -90,4 +90,4 @@ function checkRootPathForErrors (rootPath) {
9090
}
9191
}
9292

93-
module.exports = fp(fastifyStatic, '>= 0.35.0')
93+
module.exports = fp(fastifyStatic, '>= 0.38.0')

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
},
3131
"devDependencies": {
3232
"coveralls": "^3.0.0",
33-
"fastify": "^0.37.0",
33+
"fastify": "^0.38.0",
3434
"pre-commit": "^1.2.2",
3535
"proxyquire": "^1.8.0",
3636
"request": "^2.81.0",
3737
"snazzy": "^7.0.0",
3838
"standard": "^10.0.3",
39-
"tap": "^11.0.0"
39+
"tap": "^11.0.1"
4040
}
4141
}

0 commit comments

Comments
 (0)