Socket
Socket
Sign inDemoInstall

@fastify/static

Package Overview
Dependencies
34
Maintainers
19
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.10.1 to 6.10.2

test/content-type.test.js

4

index.js

@@ -15,2 +15,4 @@ 'use strict'

send.mime.default_type = 'application/octet-stream'
const dirList = require('./lib/dirList')

@@ -480,3 +482,3 @@

function getContentType (path) {
const type = send.mime.getType(path)
const type = send.mime.getType(path) || send.mime.default_type

@@ -483,0 +485,0 @@ if (!send.isUtf8MimeType(type)) {

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

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

"@fastify/pre-commit": "^2.0.2",
"@types/node": "^18.0.0",
"@types/node": "^20.1.0",
"@typescript-eslint/eslint-plugin": "^2.29.0",

@@ -46,0 +46,0 @@ "@typescript-eslint/parser": "^2.29.0",

Sorry, the diff of this file is not supported yet

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