From 5a5313e5db93b8d36d1bc35beb1583115fa952cc Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Thu, 4 Jun 2020 16:29:10 +0200 Subject: [PATCH] chore: release 3.4.3 Diff: https://github.com/socketio/engine.io-client/compare/3.4.2...3.4.3 --- CHANGELOG.md | 9 +++++++++ engine.io.js | 28 ++++++++++++++++------------ package-lock.json | 2 +- package.json | 2 +- 4 files changed, 27 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b38fd2a5..7c27078d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [3.4.3](https://github.com/socketio/engine.io-client/compare/3.4.2...3.4.3) (2020-06-04) + + +### Bug Fixes + +* **react-native:** restrict the list of options for the WebSocket object ([e5bc106](https://github.com/socketio/engine.io-client/commit/e5bc1063cc90a7b6262146c7b5338ffff1ff9e5b)) + + + ## [3.4.2](https://github.com/socketio/engine.io-client/compare/3.4.1...3.4.2) (2020-05-13) diff --git a/engine.io.js b/engine.io.js index df9841de0..b8fc55f76 100644 --- a/engine.io.js +++ b/engine.io.js @@ -4453,19 +4453,23 @@ return /******/ (function(modules) { // webpackBootstrap var uri = this.uri(); var protocols = this.protocols; - var opts = { - agent: this.agent, - perMessageDeflate: this.perMessageDeflate - }; - // SSL options for Node.js client - opts.pfx = this.pfx; - opts.key = this.key; - opts.passphrase = this.passphrase; - opts.cert = this.cert; - opts.ca = this.ca; - opts.ciphers = this.ciphers; - opts.rejectUnauthorized = this.rejectUnauthorized; + var opts = {}; + + if (!this.isReactNative) { + opts.agent = this.agent; + opts.perMessageDeflate = this.perMessageDeflate; + + // SSL options for Node.js client + opts.pfx = this.pfx; + opts.key = this.key; + opts.passphrase = this.passphrase; + opts.cert = this.cert; + opts.ca = this.ca; + opts.ciphers = this.ciphers; + opts.rejectUnauthorized = this.rejectUnauthorized; + } + if (this.extraHeaders) { opts.headers = this.extraHeaders; } diff --git a/package-lock.json b/package-lock.json index 5338d465e..4ffb5f997 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "engine.io-client", - "version": "3.4.2", + "version": "3.4.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ca1424cbd..99c37455b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "engine.io-client", "description": "Client for the realtime Engine", "license": "MIT", - "version": "3.4.2", + "version": "3.4.3", "main": "lib/index.js", "homepage": "https://github.com/socketio/engine.io-client", "contributors": [