engine.io-client
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -567,3 +567,3 @@ (function(){var global = this; | ||
opts.secure = uri.protocol == 'https' || uri.protocol == 'wss'; | ||
opts.port = uri.port || (opts.secure ? 443 : 80); | ||
opts.port = uri.port; | ||
} | ||
@@ -573,3 +573,3 @@ | ||
this.secure = null != opts.secure ? opts.secure : (global.location && 'https:' == location.protocol); | ||
this.host = opts.host || opts.hostname || (global.location ? location.host : 'localhost'); | ||
this.host = opts.host || opts.hostname || (global.location ? location.hostname : 'localhost'); | ||
this.port = opts.port || (global.location && location.port ? location.port : (this.secure ? 443 : 80)); | ||
@@ -576,0 +576,0 @@ this.query = opts.query || {}; |
@@ -446,3 +446,3 @@ (function(){var global = this;function debug(){return debug};function require(p, parent){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Error('failed to require "' + p + '" from ' + parent); if (!mod.exports) { mod.exports = {}; mod.call(mod.exports, mod, mod.exports, require.relative(path), global); } return mod.exports;}require.modules = {};require.resolve = function(path){ var orig = path , reg = path + '.js' , index = path + '/index.js'; return require.modules[reg] && reg || require.modules[index] && index || orig;};require.register = function(path, fn){ require.modules[path] = fn;};require.relative = function(parent) { return function(p){ if ('debug' == p) return debug; if ('.' != p.charAt(0)) return require(p); var path = parent.split('/') , segs = p.split('/'); path.pop(); for (var i = 0; i < segs.length; i++) { var seg = segs[i]; if ('..' == seg) path.pop(); else if ('.' != seg) path.push(seg); } return require(path.join('/'), parent); };};require.register("engine.io-client.js", function(module, exports, require, global){ | ||
opts.secure = uri.protocol == 'https' || uri.protocol == 'wss'; | ||
opts.port = uri.port || (opts.secure ? 443 : 80); | ||
opts.port = uri.port; | ||
} | ||
@@ -452,3 +452,3 @@ | ||
this.secure = null != opts.secure ? opts.secure : (global.location && 'https:' == location.protocol); | ||
this.host = opts.host || opts.hostname || (global.location ? location.host : 'localhost'); | ||
this.host = opts.host || opts.hostname || (global.location ? location.hostname : 'localhost'); | ||
this.port = opts.port || (global.location && location.port ? location.port : (this.secure ? 443 : 80)); | ||
@@ -455,0 +455,0 @@ this.query = opts.query || {}; |
0.3.9 / 2012-10-23 | ||
================== | ||
* socket: fix `hostname` instead of `host` | ||
* socket: avoid duplicate `port` defaults | ||
0.3.8 / 2012-10-23 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -8,3 +8,3 @@ | ||
exports.version = '0.3.8'; | ||
exports.version = '0.3.9'; | ||
@@ -11,0 +11,0 @@ /** |
@@ -29,3 +29,3 @@ /** | ||
opts.secure = uri.protocol == 'https' || uri.protocol == 'wss'; | ||
opts.port = uri.port || (opts.secure ? 443 : 80); | ||
opts.port = uri.port; | ||
} | ||
@@ -35,3 +35,3 @@ | ||
this.secure = null != opts.secure ? opts.secure : (global.location && 'https:' == location.protocol); | ||
this.host = opts.host || opts.hostname || (global.location ? location.host : 'localhost'); | ||
this.host = opts.host || opts.hostname || (global.location ? location.hostname : 'localhost'); | ||
this.port = opts.port || (global.location && location.port ? location.port : (this.secure ? 443 : 80)); | ||
@@ -38,0 +38,0 @@ this.query = opts.query || {}; |
@@ -5,3 +5,3 @@ { | ||
"main": "./lib/engine.io-client", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"contributors": [ | ||
@@ -8,0 +8,0 @@ { "name": "Guillermo Rauch", "email": "rauchg@gmail.com" }, |
414799