Skip to content

Commit 0397415

Browse files
committed
Update Fastify and dependencies
1 parent 51d8294 commit 0397415

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
},
3030
"homepage": "https://github.com/fastify/fastify-caching#readme",
3131
"devDependencies": {
32-
"fastify": "^1.0.0-rc.1",
32+
"fastify": "^1.1.0",
3333
"pre-commit": "^1.2.2",
34-
"snazzy": "^7.0.0",
35-
"standard": "^10.0.3",
36-
"tap": "^11.0.1"
34+
"snazzy": "^7.1.1",
35+
"standard": "^11.0.0",
36+
"tap": "^11.1.1"
3737
},
3838
"dependencies": {
39-
"abstract-cache": "^1.0.0",
39+
"abstract-cache": "^1.0.1",
4040
"fastify-plugin": "^0.2.2",
4141
"uid-safe": "^2.1.5"
4242
}

plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function etagHandleRequest (req, res, next) {
3939
}
4040

4141
function etagOnSend (fastifyRequest, fastifyReply, payload, next) {
42-
const etag = fastifyReply.res.getHeader('etag')
42+
const etag = fastifyReply.getHeader('etag')
4343
if (!etag || !fastifyReply._etagLife) return next()
4444
this.cache.set(
4545
{id: etag, segment: this.cacheSegment},
@@ -84,7 +84,7 @@ function fastifyCachingPlugin (instance, options, next) {
8484
}
8585

8686
module.exports = fp(fastifyCachingPlugin, {
87-
fastify: '>=1.0.0-rc.1',
87+
fastify: '^1.1.0',
8888
name: 'fastify-caching'
8989
})
9090

0 commit comments

Comments
 (0)