Socket
Socket
Sign inDemoInstall

fastify-static

Package Overview
Dependencies
37
Maintainers
14
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.4.2 to 4.5.0

4

index.js

@@ -432,7 +432,7 @@ 'use strict'

// Adapted from https://github.com/fastify/fastify-compress/blob/fa5c12a5394285c86d9f438cb39ff44f3d5cde79/index.js#L442
// Adapted from https://github.com/fastify/fastify-compress/blob/665e132fa63d3bf05ad37df3c20346660b71a857/index.js#L451
function getEncodingHeader (headers, checked) {
if (!('accept-encoding' in headers)) return
const header = headers['accept-encoding'].toLowerCase().replace('*', 'gzip')
const header = headers['accept-encoding'].toLowerCase().replace(/\*/g, 'gzip')
return encodingNegotiator.negotiate(

@@ -439,0 +439,0 @@ header,

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

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

"tap": "^15.0.0",
"tsd": "^0.17.0",
"tsd": "^0.18.0",
"typescript": "^4.0.2"

@@ -59,0 +59,0 @@ },

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc