fastify-compress
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -212,3 +212,2 @@ 'use strict' | ||
if (payload == null) { | ||
reply.log.debug('compress: missing payload') | ||
return next() | ||
@@ -377,3 +376,3 @@ } | ||
const varyHeader = Array.isArray(this.getHeader('Vary')) ? this.getHeader('Vary') : [this.getHeader('Vary')] | ||
if (!varyHeader.some(h => h === 'accept-encoding')) { | ||
if (!varyHeader.includes('accept-encoding')) { | ||
this.header('Vary', [...varyHeader, 'accept-encoding']) | ||
@@ -380,0 +379,0 @@ } |
{ | ||
"name": "fastify-compress", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Fastify compression utils", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"fastify-plugin": "^2.2.0", | ||
"into-stream": "^5.1.1", | ||
"into-stream": "^6.0.0", | ||
"is-deflate": "^1.0.0", | ||
@@ -25,3 +25,3 @@ "is-gzip": "^2.0.0", | ||
"@types/node": "^14.0.27", | ||
"@typescript-eslint/parser": "^3.8.0", | ||
"@typescript-eslint/parser": "^4.0.0", | ||
"eslint-plugin-typescript": "^0.14.0", | ||
@@ -34,3 +34,3 @@ "fastify": "^3.0.0", | ||
"tsd": "^0.13.1", | ||
"typescript": "^3.9.7" | ||
"typescript": "^4.0.2" | ||
}, | ||
@@ -37,0 +37,0 @@ "scripts": { |
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
99028
2847
+ Addedinto-stream@6.0.0(transitive)
- Removedinto-stream@5.1.1(transitive)
Updatedinto-stream@^6.0.0