Socket
Socket
Sign inDemoInstall

permessage-deflate

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

CODE_OF_CONDUCT.md

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 0.1.5 / 2016-02-24
* Catch errors thrown by `close()` on zlib streams
### 0.1.4 / 2015-11-06

@@ -2,0 +6,0 @@

13

lib/session.js

@@ -36,3 +36,3 @@ 'use strict';

inflate.removeListener('error', onError);
if (!self._inflate && inflate.close) inflate.close();
if (!self._inflate) self._close(inflate);

@@ -82,3 +82,3 @@ self._lockIn = false;

deflate.removeListener('error', onError);
if (!self._deflate && deflate.close) deflate.close();
if (!self._deflate) self._close(deflate);

@@ -119,6 +119,6 @@ self._lockOut = false;

Session.prototype.close = function() {
if (this._inflate && this._inflate.close) this._inflate.close();
this._close(this._inflate);
this._inflate = null;
if (this._deflate && this._deflate.close) this._deflate.close();
this._close(this._deflate);
this._deflate = null;

@@ -165,2 +165,7 @@ };

Session.prototype._close = function(codec) {
if (!codec || !codec.close) return;
try { codec.close() } catch (error) {}
};
module.exports = Session;
{ "name" : "permessage-deflate"
, "description" : "Per-message DEFLATE compression extension for WebSocket connections"
, "homepage" : "http://github.com/faye/permessage-deflate-node"
, "homepage" : "https://github.com/faye/permessage-deflate-node"
, "author" : "James Coglan <jcoglan@gmail.com> (http://jcoglan.com/)"

@@ -8,4 +8,4 @@ , "keywords" : ["websocket", "compression", "deflate"]

, "version" : "0.1.4"
, "engines" : {"node": ">=0.6.0"}
, "version" : "0.1.5"
, "engines" : {"node": ">=0.8.0"}
, "main" : "./lib/permessage_deflate"

@@ -20,3 +20,3 @@ , "devDependencies" : {"jstest": ""}

, "bugs" : "http://github.com/faye/permessage-deflate-node/issues"
, "bugs" : "https://github.com/faye/permessage-deflate-node/issues"
}

@@ -75,3 +75,3 @@ # permessage-deflate [![Build status](https://secure.travis-ci.org/faye/permessage-deflate-node.svg)](http://travis-ci.org/faye/permessage-deflate-node)

Copyright (c) 2014-2015 James Coglan
Copyright (c) 2014-2016 James Coglan

@@ -78,0 +78,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

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