Socket
Socket
Sign inDemoInstall

compression

Package Overview
Dependencies
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compression - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

8

HISTORY.md

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

6

package.json
{
"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"

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