compression
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -0,1 +1,9 @@ | ||
1.2.2 / 2014-12-10 | ||
================== | ||
* Fix `.end` to only proxy to `.end` | ||
- Fixes an issue with Node.js 0.11.14 | ||
* deps: accepts@~1.1.4 | ||
- deps: mime-types@~2.0.4 | ||
1.2.1 / 2014-11-23 | ||
@@ -2,0 +10,0 @@ ================== |
10
index.js
@@ -108,12 +108,10 @@ /*! | ||
if (!this._header) { | ||
len = Number(this.getHeader('Content-Length')) || len | ||
checkthreshold(len) | ||
this._implicitHeader() | ||
} | ||
if (chunk) { | ||
this.write(chunk, encoding); | ||
} | ||
return stream | ||
? stream.end() | ||
: end.call(res); | ||
? stream.end(chunk, encoding) | ||
: end.call(res, chunk, encoding) | ||
}; | ||
@@ -120,0 +118,0 @@ |
{ | ||
"name": "compression", | ||
"description": "Compression middleware for connect and node.js", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -12,3 +12,3 @@ "contributors": [ | ||
"dependencies": { | ||
"accepts": "~1.1.3", | ||
"accepts": "~1.1.4", | ||
"bytes": "1.0.0", | ||
@@ -21,3 +21,3 @@ "compressible": "~2.0.1", | ||
"devDependencies": { | ||
"istanbul": "0.3.2", | ||
"istanbul": "0.3.4", | ||
"mocha": "~2.0.1", | ||
@@ -24,0 +24,0 @@ "supertest": "~0.15.0" |
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
12489
185
Updatedaccepts@~1.1.4