Socket
Socket
Sign inDemoInstall

fastify-static

Package Overview
Dependencies
34
Maintainers
13
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

4

index.d.ts

@@ -44,3 +44,3 @@ // Definitions by: Jannik <https://github.com/jannikkeye>

immutable?: boolean;
index?: string[];
index?: string[] | false;
lastModified?: boolean;

@@ -70,3 +70,3 @@ maxAge?: string | number;

immutable?: boolean;
index?: string[];
index?: string[] | false;
lastModified?: boolean;

@@ -73,0 +73,0 @@ maxAge?: string | number;

{
"name": "fastify-static",
"version": "4.0.0",
"version": "4.0.1",
"description": "Plugin for serving static files as fast as possible.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -85,2 +85,13 @@ import fastify from 'fastify'

})
const noIndexApp = fastify()
options.root = ''
options.index = false
noIndexApp
.register(fastifyStatic, options)
.after(() => {
noIndexApp.get('/', (request, reply) => {
reply.send('<h1>fastify-static</h1>')
})
})
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