Socket
Socket
Sign inDemoInstall

@fastify/static

Package Overview
Dependencies
25
Maintainers
20
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.11.1 to 6.11.2

6

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc