Socket
Socket
Sign inDemoInstall

engine.io

Package Overview
Dependencies
19
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.2 to 3.5.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# [3.5.0](https://github.com/socketio/engine.io/compare/3.4.2...3.5.0) (2020-12-30)
### Features
* add support for all cookie options ([19cc582](https://github.com/socketio/engine.io/commit/19cc58264a06dca47ed401fbaca32dcdb80a903b)), closes [/github.com/jshttp/cookie#options-1](https://github.com//github.com/jshttp/cookie/issues/options-1)
* disable perMessageDeflate by default ([5ad2736](https://github.com/socketio/engine.io/commit/5ad273601eb66c7b318542f87026837bf9dddd21))
## [3.4.2](https://github.com/socketio/engine.io/compare/3.4.1...3.4.2) (2020-06-04)

@@ -2,0 +12,0 @@

18

lib/server.js

@@ -50,3 +50,3 @@

this.cookieHttpOnly = false !== opts.cookieHttpOnly;
this.perMessageDeflate = false !== opts.perMessageDeflate ? (opts.perMessageDeflate || true) : false;
this.perMessageDeflate = opts.perMessageDeflate || false;
this.httpCompression = false !== opts.httpCompression ? (opts.httpCompression || {}) : false;

@@ -320,8 +320,12 @@ this.initialPacket = opts.initialPacket;

transport.on('headers', function (headers) {
headers['Set-Cookie'] = cookieMod.serialize(self.cookie, id,
{
path: self.cookiePath,
httpOnly: self.cookiePath ? self.cookieHttpOnly : false,
sameSite: true
});
if (typeof self.cookie === 'object') {
headers['Set-Cookie'] = cookieMod.serialize(self.cookie.name, id, self.cookie);
} else {
headers['Set-Cookie'] = cookieMod.serialize(self.cookie, id,
{
path: self.cookiePath,
httpOnly: self.cookiePath ? self.cookieHttpOnly : false,
sameSite: true
});
}
});

@@ -328,0 +332,0 @@ }

{
"name": "engine.io",
"version": "3.4.2",
"version": "3.5.0",
"description": "The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server",

@@ -30,6 +30,6 @@ "main": "lib/engine.io",

"base64id": "2.0.0",
"cookie": "0.3.1",
"cookie": "~0.4.1",
"debug": "~4.1.0",
"engine.io-parser": "~2.2.0",
"ws": "^7.1.2"
"ws": "~7.4.2"
},

@@ -39,3 +39,3 @@ "devDependencies": {

"babel-preset-es2015": "^6.24.0",
"engine.io-client": "3.4.2",
"engine.io-client": "3.5.0",
"eslint": "^4.5.0",

@@ -42,0 +42,0 @@ "eslint-config-standard": "^10.2.1",

# Engine.IO: the realtime engine
[![Build Status](https://travis-ci.org/socketio/engine.io.svg?branch=master)](http://travis-ci.org/socketio/engine.io)
[![Build Status](https://github.com/socketio/engine.io/workflows/CI/badge.svg)](https://github.com/socketio/engine.io/actions)
[![NPM version](https://badge.fury.io/js/engine.io.svg)](http://badge.fury.io/js/engine.io)

@@ -242,3 +242,3 @@

- `perMessageDeflate` (`Object|Boolean`): parameters of the WebSocket permessage-deflate extension
(see [ws module](https://github.com/einaros/ws) api docs). Set to `false` to disable. (`true`)
(see [ws module](https://github.com/einaros/ws) api docs). Set to `true` to enable. (`false`)
- `threshold` (`Number`): data is compressed only if the byte size is above this value (`1024`)

@@ -245,0 +245,0 @@ - `httpCompression` (`Object|Boolean`): parameters of the http compression for the polling transports

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