Socket
Socket
Sign inDemoInstall

karma-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-jasmine - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

18

lib/adapter.js

@@ -38,9 +38,17 @@ (function(window) {

var getCurrentTransport = function() {
// probably running in debug.html (there's no socket.io)
if (!window.parent.io) {
var parentWindow = window.opener || window.parent;
var location = parentWindow.location;
var hostname = 'http://' + location.host;
if (!location.port) {
hostname += ':80';
}
// Probably running in debug.html (there's no socket.io),
// or in debug mode with socket.io but no socket on this host.
if (!parentWindow.io || !parentWindow.io.sockets[hostname]) {
return null;
}
var location = window.parent.location;
return window.parent.io.sockets[location.protocol + '//' + location.host].transport.name;
return parentWindow.io.sockets[hostname].transport.name;
};

@@ -88,3 +96,3 @@

// This structure can be pretty huge and it blows up socke.io connection, when polling.
// This structure can be pretty huge and it blows up socket.io connection, when polling.
// https://github.com/LearnBoost/socket.io-client/issues/569

@@ -91,0 +99,0 @@ if (transport === 'websocket' || transport === 'flashsocket') {

{
"name": "karma-jasmine",
"version": "0.1.3",
"version": "0.1.4",
"description": "A Karma plugin - adapter for Jasmine testing framework.",

@@ -35,4 +35,5 @@ "main": "lib/index.js",

"contributors": [
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>"
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>",
"Barry Fitzgerald <barfitzgerald@gmail.com>"
]
}

Sorry, the diff of this file is not supported yet

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