fastify-compress
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -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": { |
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
25731
+ Addedpump@3.0.2(transitive)
- Removedpump@2.0.1(transitive)
Updatedfastify-plugin@^0.2.2
Updatedmime-db@^1.33.0
Updatedpump@^3.0.0