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

yog2-kernel

Package Overview
Dependencies
Maintainers
2
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yog2-kernel - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

3

package.json
{
"name": "yog2-kernel",
"version": "0.0.21",
"version": "0.0.22",
"description": "yog2 kernel",

@@ -30,2 +30,3 @@ "main": "index.js",

"colors": "^1.0.3",
"compressible": "~2.0.1",
"compression": "1.2.2",

@@ -32,0 +33,0 @@ "cookie-parser": "1.3.3",

@@ -0,1 +1,3 @@

var compressible = require('compressible');
module.exports.compression = function(app, conf){

@@ -5,2 +7,18 @@ return function(){

};
};
module.exports.compression.defaultConf = {
filter: function(req, res){
if (res.bigpipe && Object.keys(res.bigpipe.sources).length !== 0){
return false;
}
var type = res.getHeader('Content-Type');
if (type === undefined || !compressible(type)) {
return false;
}
return true;
}
};

Sorry, the diff of this file is not supported yet

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