event-source-polyfill 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,8 @@ Just include `eventsource.js` or `eventsource.min.js` in your page to use the po
20
20
  Browser support:
21
21
  ----------------
22
22
 
23
- * IE 8+, Firefox 3.5+, Chrome 3+, Safari 4+, Opera 12+
23
+ * IE 10+, Firefox 3.5+, Chrome 3+, Safari 4+, Opera 12+
24
+ * IE 8 - IE 9: XDomainRequest is used internally, which has some limitations (2KB padding is requried, no way to send cookies, no way to use client certificates)
24
25
  * It works on Mobile Safari, Opera Mobile, Chrome for Android, Firefox for Android
25
26
  * It does not work on: Android Browser(requires 4 KB padding), Opera Mini
26
27
 
@@ -28,7 +29,7 @@ Advantages:
28
29
  -----------
29
30
 
30
31
  * Simple server-side code
31
- * Cross-domain requests support ("withCredentials" is not supported in IE8-IE9)
32
+ * Cross-domain requests support
32
33
 
33
34
  Server-side requirements:
34
35
  -------------------------
@@ -84,7 +85,8 @@ http.createServer(function (request, response) {
84
85
  "Access-Control-Allow-Origin": "*"
85
86
  });
86
87
 
87
- response.write(":" + Array(2049).join(" ") + "\n"); // 2kB padding for IE
88
+ var padding = new Array(2049);
89
+ response.write(":" + padding.join(" ") + "\n"); // 2kB padding for IE
88
90
  response.write("retry: 2000\n");
89
91
 
90
92
  var lastEventId = Number(request.headers["last-event-id"]) || Number(parsedURL.query.lastEventId) || 0;
package/bower.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "event-source-polyfill",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "eventsource.js"
5
5
  }
package/component.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "event-source-polyfill",
3
3
  "repo": "yaffle/eventsource",
4
4
  "description": "a polyfill for http://www.w3.org/TR/eventsource/",
5
- "version": "0.0.7",
5
+ "version": "0.0.8",
6
6
  "keywords": [
7
7
  "sse",
8
8
  "server sent events",