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

fastify-compress

Package Overview
Dependencies
Maintainers
2
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 0.4.0 to 0.5.0

6

index.js

@@ -41,3 +41,3 @@ 'use strict'

var type = this.res.getHeader('Content-Type') || 'application/json'
var type = this.getHeader('Content-Type') || 'application/json'
if (shouldCompress(type) === false) {

@@ -85,3 +85,3 @@ return this.send(payload)

var type = reply.res.getHeader('Content-Type') || 'application/json'
var type = reply.getHeader('Content-Type') || 'application/json'
if (shouldCompress(type) === false) {

@@ -155,4 +155,4 @@ return next()

module.exports = fp(compressPlugin, {
fastify: '>=0.40.0',
fastify: '>=1.0.0',
name: 'fastify-compress'
})
{
"name": "fastify-compress",
"version": "0.4.0",
"version": "0.5.0",
"description": "Fastify compression utils",
"main": "index.js",
"dependencies": {
"fastify-plugin": "^0.2.1",
"mime-db": "^1.32.0",
"pump": "^2.0.1",
"fastify-plugin": "^0.2.2",
"mime-db": "^1.33.0",
"pump": "^3.0.0",
"string-to-stream": "^1.1.0"
},
"devDependencies": {
"fastify": "^0.40.0",
"iltorb": "^2.0.3",
"fastify": "^1.2.0",
"jsonstream": "^1.0.3",
"standard": "^10.0.3",
"tap": "^11.0.1"
"iltorb": "^2.3.0",
"standard": "^11.0.1",
"tap": "^11.1.3"
},

@@ -19,0 +19,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