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

fastify-compress

Package Overview
Dependencies
Maintainers
8
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 3.3.0 to 3.3.1

3

index.js

@@ -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": {

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