Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastify-compress

Package Overview
Dependencies
Maintainers
15
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-compress - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

index.d.ts

@@ -25,2 +25,3 @@ import {

onUnsupportedRequestEncoding?: (encoding: string, request: FastifyRequest, reply: FastifyReply) => Error | undefined | null;
removeContentLengthHeader?: boolean;
requestEncodings?: EncodingToken[];

@@ -38,2 +39,3 @@ threshold?: number;

| 'onUnsupportedEncoding'
| 'removeContentLengthHeader'
| 'threshold'

@@ -40,0 +42,0 @@ | 'zlib'

2

package.json
{
"name": "fastify-compress",
"version": "4.0.0",
"version": "4.0.1",
"description": "Fastify compression utils",

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

@@ -24,3 +24,4 @@ import fastify, { FastifyInstance } from 'fastify'

requestEncodings: ['gzip', 'br', 'identity', 'deflate'],
forceRequestEncoding: 'gzip'
forceRequestEncoding: 'gzip',
removeContentLengthHeader: true
}

@@ -47,3 +48,4 @@

createGzip: () => zlib.createGzip()
}
},
removeContentLengthHeader: false
},

@@ -50,0 +52,0 @@ decompress: {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc