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.3.0 to 3.3.1

13

lib/transports/polling-jsonp.js

@@ -34,2 +34,11 @@ /**

/**
* Until https://github.com/tc39/proposal-global is shipped.
*/
function glob () {
return typeof self !== 'undefined' ? self
: typeof window !== 'undefined' ? window
: typeof global !== 'undefined' ? global : {};
}
/**
* JSONP Polling constructor.

@@ -50,4 +59,4 @@ *

// we need to consider multiple engines in the same page
if (!window.___eio) window.___eio = [];
callbacks = window.___eio;
var global = glob();
callbacks = global.___eio = (global.___eio || []);
}

@@ -54,0 +63,0 @@

3

lib/transports/polling-xhr.js

@@ -404,3 +404,4 @@ /* global attachEvent */

} else if (typeof addEventListener === 'function') {
addEventListener('beforeunload', unloadHandler, false);
var terminationEvent = 'onpagehide' in self ? 'pagehide' : 'unload';
addEventListener(terminationEvent, unloadHandler, false);
}

@@ -407,0 +408,0 @@ }

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

"license": "MIT",
"version": "3.3.0",
"version": "3.3.1",
"main": "lib/index.js",

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

"derequire": "^2.0.6",
"engine.io": "3.3.0",
"engine.io": "3.3.1",
"eslint-config-standard": "4.4.0",

@@ -52,0 +52,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