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

@types/koa-compress

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/koa-compress - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

22

koa-compress/index.d.ts

@@ -19,8 +19,14 @@ // Type definitions for koa-compress v2.x

declare module "koa-compress" {
import * as Koa from "koa";
import * as zlib from "zlib";
import * as Koa from "koa";
import * as zlib from "zlib";
/**
* Compress middleware for Koa
*/
declare function koaCompress(options?: koaCompress.CompressOptions): Koa.Middleware;
interface CompressOptions extends zlib.ZlibOptions {
export = koaCompress;
declare namespace koaCompress {
export interface CompressOptions extends zlib.ZlibOptions {
/**

@@ -36,10 +42,2 @@ * An optional function that checks the response content type to decide whether to compress. By default, it uses compressible.

}
/**
* Compress middleware for Koa
*/
function compress(options?: CompressOptions): Koa.Middleware;
namespace compress {}
export = compress;
}
{
"name": "@types/koa-compress",
"version": "2.0.8",
"version": "2.0.9",
"description": "TypeScript definitions for koa-compress",

@@ -14,5 +14,7 @@ "license": "MIT",

"main": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/koa-compress"
},

@@ -24,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "a459be90b7055238c477e13020dba1cb1ace42b3def6b8a630598621619f4008",
"typesPublisherContentHash": "755488692e3c6e4386376f584bdcee572fcaa3f2159b8973d9937f49892d4a10",
"typeScriptVersion": "2.3"
}

@@ -5,10 +5,10 @@ # Installation

# Summary
This package contains type definitions for koa-compress (https://github.com/koajs/compress).
This package contains type definitions for koa-compress ( https://github.com/koajs/compress ).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-compress
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-compress
Additional Details
* Last updated: Thu, 09 Nov 2017 08:43:08 GMT
* Dependencies: koa, zlib, node
* Last updated: Mon, 25 Mar 2019 16:37:58 GMT
* Dependencies: @types/koa, @types/node
* Global values: none

@@ -15,0 +15,0 @@

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