Socket
Socket
Sign inDemoInstall

compression

Package Overview
Dependencies
10
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.1 to 1.4.2

8

HISTORY.md

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc