Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#### This is fork of EventSource Polyfill. Orignal work can be found here: https://github.com/amvtek/EventSource. It contains only bugfixes.

EventSource Polyfill
====================

Expand Down
8 changes: 4 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "eventsource-polyfill",
"homepage": "https://github.com/amvtek/EventSource",
"name": "eventsource-polyfill-bugfixes",
"homepage": "https://github.com/zabrowarnyrafal/EventSource",
"authors": [
"amvtek <devel@amvtek.com>"
"zabrowarnyrafal <zabrowarnyrafal@gmail.com>"
],
"description": "A polyfill for http://www.w3.org/TR/eventsource/",
"main": ["javascript/src/eventsource.js", "eventsource.min.js", "README.rst"],
"main": "dist/eventsource.js",
"keywords": [
"sse",
"server sent events",
Expand Down
7 changes: 4 additions & 3 deletions dist/browserify-eventsource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* CommonJS module that exports EventSource polyfill version 0.9.7
* CommonJS module that exports EventSource polyfill version 0.9.8
* This module is intended for browser side use
* =====================================================================
* THIS IS A POLYFILL MODULE, SO IT HAS SIDE EFFECTS
Expand All @@ -17,7 +17,8 @@ module.exports = PolyfillEventSource;
// Add EventSource to window if it is missing...
if (window && !window.EventSource){
window.EventSource = PolyfillEventSource;
if (console){
console.log("polyfill-eventsource added missing EventSource to window");
// Don't break IE < 10
if (typeof console !== "undefined" && typeof console.log !== "undefined"){
console.log("polyfill-eventsource added missing EventSource to window");
}
}
2 changes: 1 addition & 1 deletion dist/eventsource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* EventSource polyfill version 0.9.7
* EventSource polyfill version 0.9.8
* Supported by sc AmvTek srl
* :email: [email protected]
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/eventsource.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "eventsource-polyfill",
"version": "0.9.7",
"description": "A browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/)",
"name": "eventsource-polyfill-bugfixes",
"version": "0.9.8",
"description": "A browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/). This is fork containg fixes. Original work can be found here: https://github.com/amvtek/EventSource.git ",
"main": "dist/browserify-eventsource.js",
"directories": { "doc": "docs" },
"directories": {
"doc": "docs"
},
"files": [
"dist/eventsource.js",
"dist/browserify-eventsource.js"
Expand All @@ -13,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/amvtek/EventSource.git"
"url": "https://github.com/zabrowarnyrafal/EventSource.git"
},
"keywords": [
"sse",
Expand All @@ -22,14 +24,14 @@
"event-source",
"polyfill"
],
"author": "amvtek <devel@amvtek.com>",
"author": "zabrowarnyrafal <zabrowarnyrafal@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/amvtek/EventSource/issues"
"url": "https://github.com/zabrowarnyrafal/EventSource/issues"
},
"homepage": "https://github.com/amvtek/EventSource",
"homepage": "https://github.com/zabrowarnyrafal/EventSource",
"devDependencies": {
"grunt": "^0.4.5",
"grunt": "^1.0.1",
"grunt-contrib-uglify": "^0.6.0",
"grunt-string-replace": "^1.0.0"
}
Expand Down