Socket
Socket
Sign inDemoInstall

@fastify/static

Package Overview
Dependencies
46
Maintainers
20
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.2 to 7.0.3

9

index.js

@@ -114,4 +114,9 @@ 'use strict'

if (opts.wildcard === undefined || opts.wildcard === true) {
fastify.get(prefix + '*', { ...routeOpts, exposeHeadRoute: true }, (req, reply) => {
pumpSendToReply(req, reply, '/' + req.params['*'], sendOptions.root)
fastify.route({
...routeOpts,
method: ['HEAD', 'GET'],
path: prefix + '*',
handler (req, reply) {
pumpSendToReply(req, reply, '/' + req.params['*'], sendOptions.root)
}
})

@@ -118,0 +123,0 @@ if (opts.redirect === true && prefix !== opts.prefix) {

{
"name": "@fastify/static",
"version": "7.0.2",
"version": "7.0.3",
"description": "Plugin for serving static files as fast as possible.",

@@ -58,3 +58,3 @@ "main": "index.js",

"tap": "^16.0.0",
"tsd": "^0.30.0",
"tsd": "^0.31.0",
"typescript": "^5.1.6"

@@ -61,0 +61,0 @@ },

Sorry, the diff of this file is too big to display

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