@fastify/static
Advanced tools
Comparing version 6.11.1 to 6.11.2
@@ -399,3 +399,5 @@ 'use strict' | ||
function serveFileHandler (req, reply) { | ||
const routeConfig = req.routeOptions.config | ||
// TODO: remove the fallback branch when bump major | ||
/* istanbul ignore next */ | ||
const routeConfig = req.routeOptions?.config || req.routeConfig | ||
pumpSendToReply(req, reply, routeConfig.file, routeConfig.rootPath) | ||
@@ -556,3 +558,3 @@ } | ||
module.exports = fp(fastifyStatic, { | ||
fastify: '^4.23.0', | ||
fastify: '4.x', | ||
name: '@fastify/static' | ||
@@ -559,0 +561,0 @@ }) |
{ | ||
"name": "@fastify/static", | ||
"version": "6.11.1", | ||
"version": "6.11.2", | ||
"description": "Plugin for serving static files as fast as possible.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
411087
5317