fastify-compress
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -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' |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
158406
4178
0