Skip to content

Commit 5824a58

Browse files
[chore] Release 1.7.2 (#512)
1 parent 1b86756 commit 5824a58

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

History.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
1.7.2 / 2016-10-24
3+
===================
4+
5+
* [fix] Set accept header to */* to support react app proxy (#508)
6+
* [fix] remove a workaround for ios (#465)
7+
* [fix] onPacket now emits data on 'closing' state as well (#484)
8+
* [fix] Obfuscate `ActiveXObject` occurrences (#509)
9+
* [docs] Add missing `onlyBinaryUpgrades` option in the docs (#510)
10+
* [chore] Add Github issue and PR templates (#511)
11+
212
1.7.1 / 2016-10-20
313
===================
414

engine.io.js

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ return /******/ (function(modules) { // webpackBootstrap
491491
*/
492492

493493
Socket.prototype.onPacket = function (packet) {
494-
if ('opening' === this.readyState || 'open' === this.readyState) {
494+
if ('opening' === this.readyState || 'open' === this.readyState || 'closing' === this.readyState) {
495495
debug('socket receive: type "%s", data "%s"', packet.type, packet.data);
496496

497497
this.emit('packet', packet);
@@ -869,13 +869,10 @@ return /******/ (function(modules) { // webpackBootstrap
869869
/* 4 */
870870
/***/ function(module, exports, __webpack_require__) {
871871

872-
'use strict';
872+
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
873873

874874
// browser shim for xmlhttprequest module
875875

876-
// Indicate to eslint that ActiveXObject is global
877-
/* global ActiveXObject */
878-
879876
var hasCORS = __webpack_require__(5);
880877

881878
module.exports = function (opts) {
@@ -907,10 +904,11 @@ return /******/ (function(modules) { // webpackBootstrap
907904

908905
if (!xdomain) {
909906
try {
910-
return new ActiveXObject('Microsoft.XMLHTTP');
907+
return new global[['Active'].concat('Object').join('X')]('Microsoft.XMLHTTP');
911908
} catch (e) {}
912909
}
913910
};
911+
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
914912

915913
/***/ },
916914
/* 5 */
@@ -1161,6 +1159,10 @@ return /******/ (function(modules) { // webpackBootstrap
11611159
} catch (e) {}
11621160
}
11631161

1162+
try {
1163+
xhr.setRequestHeader('Accept', '*/*');
1164+
} catch (e) {}
1165+
11641166
// ie6 check
11651167
if ('withCredentials' in xhr) {
11661168
xhr.withCredentials = true;
@@ -4172,22 +4174,6 @@ return /******/ (function(modules) { // webpackBootstrap
41724174
};
41734175
};
41744176

4175-
/**
4176-
* Override `onData` to use a timer on iOS.
4177-
* See: https://gist.github.com/mloughran/2052006
4178-
*
4179-
* @api private
4180-
*/
4181-
4182-
if ('undefined' !== typeof navigator && /iPad|iPhone|iPod/i.test(navigator.userAgent)) {
4183-
WS.prototype.onData = function (data) {
4184-
var self = this;
4185-
setTimeout(function () {
4186-
Transport.prototype.onData.call(self, data);
4187-
}, 0);
4188-
};
4189-
}
4190-
41914177
/**
41924178
* Writes data to socket.
41934179
*

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "engine.io-client",
33
"description": "Client for the realtime Engine",
44
"license": "MIT",
5-
"version": "1.7.1",
5+
"version": "1.7.2",
66
"homepage": "https://github.com/socketio/engine.io-client",
77
"contributors": [
88
{
@@ -47,7 +47,7 @@
4747
"derequire": "1.2.0",
4848
"eslint-config-standard": "4.4.0",
4949
"eslint-plugin-standard": "1.3.1",
50-
"engine.io": "1.7.1",
50+
"engine.io": "1.7.2",
5151
"expect.js": "0.2.0",
5252
"express": "3.4.8",
5353
"gulp": "3.9.0",

0 commit comments

Comments
 (0)