compression
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -0,1 +1,9 @@ | ||
1.4.2 / 2015-03-11 | ||
================== | ||
* Fix error when code calls `res.end(str, encoding)` | ||
- Specific to Node.js 0.8 | ||
* deps: debug@~2.1.2 | ||
- deps: ms@0.7.0 | ||
1.4.1 / 2015-02-15 | ||
@@ -2,0 +10,0 @@ ================== |
11
index.js
@@ -96,5 +96,10 @@ /*! | ||
return stream | ||
? stream.end(chunk, encoding) | ||
: end.call(res, chunk, encoding) | ||
if (!stream) { | ||
return end.call(res, chunk, encoding) | ||
} | ||
// write Buffer for Node.js 0.8 | ||
return chunk | ||
? stream.end(new Buffer(chunk, encoding)) | ||
: stream.end() | ||
}; | ||
@@ -101,0 +106,0 @@ |
{ | ||
"name": "compression", | ||
"description": "Node.js compression middleware", | ||
"version": "1.4.1", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
"version": "1.4.2", | ||
"contributors": [ | ||
"Douglas Christopher Wilson <doug@somethingdoug.com>" | ||
"Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)" | ||
], | ||
@@ -15,3 +15,3 @@ "license": "MIT", | ||
"compressible": "~2.0.2", | ||
"debug": "~2.1.1", | ||
"debug": "~2.1.2", | ||
"on-headers": "~1.0.0", | ||
@@ -21,4 +21,4 @@ "vary": "~1.0.0" | ||
"devDependencies": { | ||
"istanbul": "0.3.5", | ||
"mocha": "~2.1.0", | ||
"istanbul": "0.3.7", | ||
"mocha": "2.2.1", | ||
"supertest": "~0.15.0" | ||
@@ -25,0 +25,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
17335
199
Updateddebug@~2.1.2