Socket
Socket
Sign inDemoInstall

sockjs-client

Package Overview
Dependencies
14
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

6

Changelog.md

@@ -0,1 +1,7 @@

1.0.2
==
* Fix iframe info receiver url
* Move iframe.contentWindow check inside setTimeout - #246
1.0.1

@@ -2,0 +8,0 @@ ==

4

lib/info-iframe-receiver.js

@@ -10,7 +10,7 @@ 'use strict';

function InfoReceiverIframe(transUrl, baseUrl) {
function InfoReceiverIframe(transUrl) {
var self = this;
EventEmitter.call(this);
this.ir = new InfoAjax(baseUrl, XHRLocalObject);
this.ir = new InfoAjax(transUrl, XHRLocalObject);
this.ir.once('finish', function(info, rtt) {

@@ -17,0 +17,0 @@ self.ir = null;

@@ -75,7 +75,7 @@ 'use strict';

// on 'contentWindow'.
if (iframe && iframe.contentWindow) {
setTimeout(function() {
setTimeout(function() {
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage(msg, origin);
}, 0);
}
}
}, 0);
} catch (x) {}

@@ -142,7 +142,7 @@ };

// on 'contentWindow'.
if (iframe && iframe.contentWindow) {
setTimeout(function() {
iframe.contentWindow.postMessage(msg, origin);
}, 0);
}
setTimeout(function() {
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage(msg, origin);
}
}, 0);
} catch (x) {}

@@ -149,0 +149,0 @@ };

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

module.exports = '1.0.1';
module.exports = '1.0.2';
{
"name": "sockjs-client",
"description": "SockJS-client is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.",
"version": "1.0.1",
"version": "1.0.2",
"author": "Bryce Kahle",

@@ -6,0 +6,0 @@ "browser": {

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