compression
Advanced tools
Comparing version 1.0.11 to 1.1.0
@@ -0,1 +1,8 @@ | ||
1.1.0 / 2014-09-07 | ||
================== | ||
* deps: accepts@~1.1.0 | ||
* deps: compressible@~2.0.0 | ||
* deps: debug@~2.0.0 | ||
1.0.11 / 2014-08-10 | ||
@@ -2,0 +9,0 @@ =================== |
@@ -6,2 +6,3 @@ /*! | ||
* Copyright(c) 2014 Jonathan Ong | ||
* Copyright(c) 2014 Douglas Christopher Wilson | ||
* MIT Licensed | ||
@@ -8,0 +9,0 @@ */ |
{ | ||
"name": "compression", | ||
"description": "Compression middleware for connect and node.js", | ||
"version": "1.0.11", | ||
"version": "1.1.0", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -12,6 +12,6 @@ "contributors": [ | ||
"dependencies": { | ||
"accepts": "~1.0.7", | ||
"accepts": "~1.1.0", | ||
"bytes": "1.0.0", | ||
"compressible": "~1.1.1", | ||
"debug": "1.0.4", | ||
"compressible": "~2.0.0", | ||
"debug": "~2.0.0", | ||
"on-headers": "~1.0.0", | ||
@@ -21,3 +21,3 @@ "vary": "~1.0.0" | ||
"devDependencies": { | ||
"istanbul": "0.3.0", | ||
"istanbul": "0.3.2", | ||
"mocha": "~1.21.3", | ||
@@ -27,2 +27,7 @@ "supertest": "~0.13.0", | ||
}, | ||
"files": [ | ||
"LICENSE", | ||
"HISTORY.md", | ||
"index.js" | ||
], | ||
"engines": { | ||
@@ -29,0 +34,0 @@ "node": ">= 0.8.0" |
# compression | ||
[![NPM version](https://badge.fury.io/js/compression.svg)](http://badge.fury.io/js/compression) | ||
[![Build Status](https://travis-ci.org/expressjs/compression.svg?branch=master)](https://travis-ci.org/expressjs/compression) | ||
[![Coverage Status](https://img.shields.io/coveralls/expressjs/compression.svg?branch=master)](https://coveralls.io/r/expressjs/compression) | ||
[![NPM Version][npm-image]][npm-url] | ||
[![NPM Downloads][downloads-image]][downloads-url] | ||
[![Build Status][travis-image]][travis-url] | ||
[![Test Coverage][coveralls-image]][coveralls-url] | ||
[![Gratipay][gratipay-image]][gratipay-url] | ||
@@ -18,7 +20,3 @@ Node.js compression middleware. | ||
```js | ||
var express = require('express') | ||
var compression = require('compression') | ||
var app = express() | ||
app.use(compression()) | ||
``` | ||
@@ -50,2 +48,19 @@ | ||
### express/connect | ||
When using this module with express or connect, simply `app.use` the module as | ||
high as you like. Requests that pass through the middleware will be compressed. | ||
```js | ||
var compression = require('compression') | ||
var express = require('express') | ||
var app = express() | ||
// compress all requests | ||
app.use(compression()) | ||
// add alll routes | ||
``` | ||
### Server-Sent Events | ||
@@ -91,22 +106,13 @@ | ||
The MIT License (MIT) | ||
[MIT](LICENSE) | ||
Copyright (c) 2014 Jonathan Ong me@jongleberry.com | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
[npm-image]: https://img.shields.io/npm/v/compression.svg?style=flat | ||
[npm-url]: https://npmjs.org/package/compression | ||
[travis-image]: https://img.shields.io/travis/expressjs/compression.svg?style=flat | ||
[travis-url]: https://travis-ci.org/expressjs/compression | ||
[coveralls-image]: https://img.shields.io/coveralls/expressjs/compression.svg?style=flat | ||
[coveralls-url]: https://coveralls.io/r/expressjs/compression?branch=master | ||
[downloads-image]: http://img.shields.io/npm/dm/compression.svg?style=flat | ||
[downloads-url]: https://npmjs.org/package/compression | ||
[gratipay-image]: https://img.shields.io/gratipay/dougwilson.svg?style=flat | ||
[gratipay-url]: https://www.gratipay.com/dougwilson/ |
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
11746
186
116
+ Addedaccepts@1.1.4(transitive)
+ Addedcompressible@2.0.18(transitive)
+ Addeddebug@2.0.0(transitive)
+ Addedmime-db@1.12.01.53.0(transitive)
+ Addedmime-types@2.0.14(transitive)
+ Addednegotiator@0.4.9(transitive)
- Removedaccepts@1.0.7(transitive)
- Removedcompressible@1.1.1(transitive)
- Removeddebug@1.0.4(transitive)
- Removedmime-types@1.0.2(transitive)
- Removednegotiator@0.4.7(transitive)
Updatedaccepts@~1.1.0
Updatedcompressible@~2.0.0
Updateddebug@~2.0.0