New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/compression

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/compression - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

22

compression/index.d.ts
// Type definitions for compression
// Project: https://github.com/expressjs/compression
// Definitions by: Santi Albo <https://github.com/santialbo>
// Rob van der Burgt <https://github.com/rburgt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,4 +10,16 @@ // TypeScript Version: 2.2

declare function e(options?: e.CompressionOptions): express.RequestHandler;
declare namespace e {
interface CompressionOptions {
/**
* Default filter, used for extending filter given in CompressionOptions
* See https://github.com/expressjs/compression#filter-1 regarding the usage
*/
export function filter(req: express.Request, res: express.Response): boolean;
interface CompressionFilter {
(req: express.Request, res: express.Response): boolean;
}
interface CompressionOptions {
/**

@@ -35,3 +48,3 @@ * See https://github.com/expressjs/compression#chunksize regarding the usage.

*/
threshold?: number|string;
threshold?: number | string;

@@ -46,4 +59,4 @@ /**

*/
filter?: Function;
filter?: CompressionFilter;
/**

@@ -61,3 +74,2 @@ * See https://nodejs.org/api/zlib.html#zlib_class_options regarding the usage.

declare function e(options?: e.CompressionOptions): express.RequestHandler;
export = e;
{
"name": "@types/compression",
"version": "0.0.35",
"version": "0.0.36",
"description": "TypeScript definitions for compression",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "santialbo"
},
{
"name": "Rob van der Burgt",
"url": "https://github.com/rburgt",
"githubUsername": "rburgt"
}

@@ -23,4 +28,4 @@ ],

},
"typesPublisherContentHash": "4cf27628d4bc66a0713f11d3201be042efba6a52f32b0fadd4731cf1d5fe1b3b",
"typesPublisherContentHash": "82b6ce8afc249271e034184055dd1ae18cfb6996033799ae10111c30063600fa",
"typeScriptVersion": "2.2"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 08 Nov 2017 22:15:33 GMT
* Last updated: Thu, 15 Mar 2018 23:17:55 GMT
* Dependencies: express

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Santi Albo <https://github.com/santialbo>.
These definitions were written by Santi Albo <https://github.com/santialbo>, Rob van der Burgt <https://github.com/rburgt>.

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