Skip to content
Permalink
Browse files

[minor] Rebuild the Engine.IO client -- version 3.3.1

  • Loading branch information...
lpinca committed Dec 10, 2018
1 parent f8529fb commit ceaed5603fbd00a7752f90e56b9634ce9caf8be8
Showing with 53 additions and 39 deletions.
  1. +53 −39 transformers/engine.io/library.js
@@ -1,4 +1,18 @@
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.eio=f()})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){

},{}],2:[function(_dereq_,module,exports){

module.exports = _dereq_('./socket');

/**
* Exports parser
*
* @api public
*
*/
module.exports.parser = _dereq_('engine.io-parser');

},{"./socket":3,"engine.io-parser":16}],3:[function(_dereq_,module,exports){
/**
* Module dependencies.
*/
@@ -725,7 +739,7 @@ Socket.prototype.filterUpgrades = function (upgrades) {
return filteredUpgrades;
};

},{"./transport":2,"./transports/index":3,"component-emitter":12,"engine.io-parser":14,"indexof":20,"parseqs":22,"parseuri":23}],2:[function(_dereq_,module,exports){
},{"./transport":4,"./transports/index":5,"component-emitter":14,"engine.io-parser":16,"indexof":22,"parseqs":24,"parseuri":25}],4:[function(_dereq_,module,exports){
/**
* Module dependencies.
*/
@@ -887,7 +901,7 @@ Transport.prototype.onClose = function () {
this.emit('close');
};

},{"component-emitter":12,"engine.io-parser":14}],3:[function(_dereq_,module,exports){
},{"component-emitter":14,"engine.io-parser":16}],5:[function(_dereq_,module,exports){
/**
* Module dependencies
*/
@@ -942,7 +956,8 @@ function polling (opts) {
}
}

},{"./polling-jsonp":4,"./polling-xhr":5,"./websocket":7,"xmlhttprequest-ssl":8}],4:[function(_dereq_,module,exports){
},{"./polling-jsonp":6,"./polling-xhr":7,"./websocket":9,"xmlhttprequest-ssl":10}],6:[function(_dereq_,module,exports){
(function (global){
/**
* Module requirements.
*/
@@ -975,6 +990,15 @@ var callbacks;

function empty () { }

/**
* 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.
*
@@ -991,8 +1015,8 @@ function JSONPPolling (opts) {
// we do this here (lazily) to avoid unneeded global pollution
if (!callbacks) {
// 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 || []);
}

// callback identifier
@@ -1174,7 +1198,8 @@ JSONPPolling.prototype.doWrite = function (data, fn) {
}
};

},{"./polling":6,"component-inherit":13}],5:[function(_dereq_,module,exports){
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./polling":8,"component-inherit":15}],7:[function(_dereq_,module,exports){
/* global attachEvent */

/**
@@ -1574,7 +1599,8 @@ if (typeof document !== 'undefined') {
if (typeof attachEvent === 'function') {
attachEvent('onunload', unloadHandler);
} else if (typeof addEventListener === 'function') {
addEventListener('beforeunload', unloadHandler, false);
var terminationEvent = 'onpagehide' in self ? 'pagehide' : 'unload';
addEventListener(terminationEvent, unloadHandler, false);
}
}

@@ -1586,7 +1612,7 @@ function unloadHandler () {
}
}

},{"./polling":6,"component-emitter":12,"component-inherit":13,"xmlhttprequest-ssl":8}],6:[function(_dereq_,module,exports){
},{"./polling":8,"component-emitter":14,"component-inherit":15,"xmlhttprequest-ssl":10}],8:[function(_dereq_,module,exports){
/**
* Module dependencies.
*/
@@ -1821,7 +1847,7 @@ Polling.prototype.uri = function () {
return schema + '://' + (ipv6 ? '[' + this.hostname + ']' : this.hostname) + port + this.path + query;
};

},{"../transport":2,"component-inherit":13,"engine.io-parser":14,"parseqs":22,"xmlhttprequest-ssl":8,"yeast":24}],7:[function(_dereq_,module,exports){
},{"../transport":4,"component-inherit":15,"engine.io-parser":16,"parseqs":24,"xmlhttprequest-ssl":10,"yeast":26}],9:[function(_dereq_,module,exports){
(function (Buffer){
/**
* Module dependencies.
@@ -2108,7 +2134,7 @@ WS.prototype.check = function () {
};

}).call(this,_dereq_("buffer").Buffer)
},{"../transport":2,"buffer":undefined,"component-inherit":13,"engine.io-parser":14,"parseqs":22,"ws":undefined,"yeast":24}],8:[function(_dereq_,module,exports){
},{"../transport":4,"buffer":1,"component-inherit":15,"engine.io-parser":16,"parseqs":24,"ws":undefined,"yeast":26}],10:[function(_dereq_,module,exports){
// browser shim for xmlhttprequest module

var hasCORS = _dereq_('has-cors');
@@ -2147,7 +2173,7 @@ module.exports = function (opts) {
}
};

},{"has-cors":19}],9:[function(_dereq_,module,exports){
},{"has-cors":21}],11:[function(_dereq_,module,exports){
module.exports = after

function after(count, callback, err_cb) {
@@ -2177,7 +2203,7 @@ function after(count, callback, err_cb) {

function noop() {}

},{}],10:[function(_dereq_,module,exports){
},{}],12:[function(_dereq_,module,exports){
/**
* An abstraction for slicing an arraybuffer even when
* ArrayBuffer.prototype.slice is not supported
@@ -2208,7 +2234,7 @@ module.exports = function(arraybuffer, start, end) {
return result.buffer;
};

},{}],11:[function(_dereq_,module,exports){
},{}],13:[function(_dereq_,module,exports){
/*
* base64-arraybuffer
* https://github.com/niklasvh/base64-arraybuffer
@@ -2277,7 +2303,7 @@ module.exports = function(arraybuffer, start, end) {
};
})();

},{}],12:[function(_dereq_,module,exports){
},{}],14:[function(_dereq_,module,exports){

/**
* Expose `Emitter`.
@@ -2442,15 +2468,15 @@ Emitter.prototype.hasListeners = function(event){
return !! this.listeners(event).length;
};

},{}],13:[function(_dereq_,module,exports){
},{}],15:[function(_dereq_,module,exports){

module.exports = function(a, b){
var fn = function(){};
fn.prototype = b.prototype;
a.prototype = new fn;
a.prototype.constructor = a;
};
},{}],14:[function(_dereq_,module,exports){
},{}],16:[function(_dereq_,module,exports){
/**
* Module dependencies.
*/
@@ -3057,7 +3083,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) {
});
};

},{"./keys":15,"./utf8":16,"after":9,"arraybuffer.slice":10,"base64-arraybuffer":11,"blob":17,"has-binary2":18}],15:[function(_dereq_,module,exports){
},{"./keys":17,"./utf8":18,"after":11,"arraybuffer.slice":12,"base64-arraybuffer":13,"blob":19,"has-binary2":20}],17:[function(_dereq_,module,exports){

/**
* Gets the keys for an object.
@@ -3078,7 +3104,7 @@ module.exports = Object.keys || function keys (obj){
return arr;
};

},{}],16:[function(_dereq_,module,exports){
},{}],18:[function(_dereq_,module,exports){
/*! https://mths.be/utf8js v2.1.2 by @mathias */

var stringFromCharCode = String.fromCharCode;
@@ -3290,7 +3316,7 @@ module.exports = {
decode: utf8decode
};

},{}],17:[function(_dereq_,module,exports){
},{}],19:[function(_dereq_,module,exports){
/**
* Create a blob builder even when vendor prefixes exist
*/
@@ -3392,7 +3418,7 @@ module.exports = (function() {
}
})();

},{}],18:[function(_dereq_,module,exports){
},{}],20:[function(_dereq_,module,exports){
(function (Buffer){
/* global Blob File */

@@ -3460,7 +3486,7 @@ function hasBinary (obj) {
}

}).call(this,_dereq_("buffer").Buffer)
},{"buffer":undefined,"isarray":21}],19:[function(_dereq_,module,exports){
},{"buffer":1,"isarray":23}],21:[function(_dereq_,module,exports){

/**
* Module exports.
@@ -3479,7 +3505,7 @@ try {
module.exports = false;
}

},{}],20:[function(_dereq_,module,exports){
},{}],22:[function(_dereq_,module,exports){

var indexOf = [].indexOf;

@@ -3490,14 +3516,14 @@ module.exports = function(arr, obj){
}
return -1;
};
},{}],21:[function(_dereq_,module,exports){
},{}],23:[function(_dereq_,module,exports){
var toString = {}.toString;

module.exports = Array.isArray || function (arr) {
return toString.call(arr) == '[object Array]';
};

},{}],22:[function(_dereq_,module,exports){
},{}],24:[function(_dereq_,module,exports){
/**
* Compiles a querystring
* Returns string representation of the object
@@ -3536,7 +3562,7 @@ exports.decode = function(qs){
return qry;
};

},{}],23:[function(_dereq_,module,exports){
},{}],25:[function(_dereq_,module,exports){
/**
* Parses an URI
*
@@ -3577,7 +3603,7 @@ module.exports = function parseuri(str) {
return uri;
};

},{}],24:[function(_dereq_,module,exports){
},{}],26:[function(_dereq_,module,exports){
'use strict';

var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split('')
@@ -3647,17 +3673,5 @@ yeast.encode = encode;
yeast.decode = decode;
module.exports = yeast;

},{}],25:[function(_dereq_,module,exports){

module.exports = _dereq_('./socket');

/**
* Exports parser
*
* @api public
*
*/
module.exports.parser = _dereq_('engine.io-parser');

},{"./socket":1,"engine.io-parser":14}]},{},[25])(25)
},{}]},{},[2])(2)
});

0 comments on commit ceaed56

Please sign in to comment.
You can’t perform that action at this time.