Socket
Socket
Sign inDemoInstall

engine.io-client

Package Overview
Dependencies
Maintainers
2
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

engine.io-client - npm Package Compare versions

Comparing version 3.1.4 to 3.1.5

19

lib/transports/polling-xhr.js

@@ -223,2 +223,6 @@ /**

if (this.supportsBinary) {
xhr.responseType = 'arraybuffer';
}
// ie6 check

@@ -243,9 +247,8 @@ if ('withCredentials' in xhr) {

if (xhr.readyState === 2) {
var contentType;
try {
contentType = xhr.getResponseHeader('Content-Type');
var contentType = xhr.getResponseHeader('Content-Type');
if (contentType !== 'application/octet-stream') {
xhr.responseType = 'text';
}
} catch (e) {}
if (contentType === 'application/octet-stream') {
xhr.responseType = 'arraybuffer';
}
}

@@ -360,3 +363,7 @@ if (4 !== xhr.readyState) return;

if (contentType === 'application/octet-stream') {
data = this.xhr.response || this.xhr.responseText;
if (this.xhr.responseType === 'arraybuffer') {
data = this.xhr.response || this.xhr.responseText;
} else {
data = String.fromCharCode.apply(null, new Uint8Array(this.xhr.response));
}
} else {

@@ -363,0 +370,0 @@ data = this.xhr.responseText;

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "3.1.4",
"version": "3.1.5",
"main": "lib/index.js",

@@ -30,3 +30,3 @@ "homepage": "https://github.com/socketio/engine.io-client",

"component-inherit": "0.0.3",
"debug": "~2.6.9",
"debug": "~3.1.0",
"engine.io-parser": "~2.1.1",

@@ -50,3 +50,3 @@ "has-cors": "1.1.0",

"derequire": "^2.0.6",
"engine.io": "3.1.4",
"engine.io": "3.1.5",
"eslint-config-standard": "4.4.0",

@@ -53,0 +53,0 @@ "eslint-plugin-standard": "1.3.1",

Sorry, the diff of this file is too big to display

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