{"_id":"@rexxars/eventsource-polyfill","_rev":"1-06990c0c6ea80dc1eeecd6ccaa1ec986","name":"@rexxars/eventsource-polyfill","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@rexxars/eventsource-polyfill","version":"1.0.0","description":"A browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/)","main":"src/eventsource.js","scripts":{"test":"eslint ."},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-polyfill.git"},"keywords":["sse","server","sent","events","eventsource","event-source","polyfill"],"author":{"name":"amvtek","email":"devel@amvtek.com"},"license":"MIT","bugs":{"url":"https://github.com/rexxars/eventsource-polyfill/issues"},"homepage":"https://github.com/rexxars/eventsource-polyfill#readme","dependencies":{},"devDependencies":{"eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-config-sanity":"^1.149.0","prettier":"^2.0.4"},"gitHead":"96f7425bb9143ba3c11fa53990067c1fef61a819","_id":"@rexxars/eventsource-polyfill@1.0.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-YnrybIoM9WFqmeK1D8p/gutqjJnmXCVFWAU3ucka9M7Dzpen3f2Dy4KsC6k1wDHrCtHQuUHHwZovh3i5UPDaZw==","shasum":"ab46f2f44da23aedd6f51f13d92a194a5367525b","tarball":"https://registry.npmjs.org/@rexxars/eventsource-polyfill/-/eventsource-polyfill-1.0.0.tgz","fileCount":7,"unpackedSize":19280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelgopCRA9TVsSAnZWagAABswP/1+NGVKV8BqKc8a4fDiw\neC3xOxTZqI2stME3knpSFdEPP/8tQAxZ7fcx8wZdKPYE05S1yooMLIqQamLO\nzhMAYwMq8834WFJ321V372lYaynveK8AGVZ1GDJlGZCxPZSxRwJmqXedkbLS\nfKdQf9IYyDsdcwaiZ0It5wH6hA7bOBpXlPjJW3+DcQgrz6hCLVPt9WRHY8pC\nu+aUt5MhWRFWO+LCb1OyOj4H8BkLW42W5qSQ56VT877dBW+Z/u5lvWAEfxiw\nQDzHjyCTAabfo99lSBGlQ5JuSIm9kJ3jLzymsmoCVsKiWehINrD16nA1/f0n\nXj0qSgPqSGETr49FhyIxoJh7pQ1qM76qKJgQ/ZZqJzs0TZKjsIioDvD7DxH2\nuMT1bLPR0GUbsmFpii0JBuMibd2mMFIf/QDEWSxc6gTVBt5gZPYUNoIwSjlD\nk6n3tWtCVdth9Gp3YwQ9wLfuQhLbwItJcB4aVXtwTSr711BSSgtxOd1aj30u\n+oDrf8CO75+GIsEFGm3y9gkerjWftxtSzyIVYunFehHeTP/uiHBZR6XaSBLC\nXfz4qbFkEmvO9etUEQ9MX5ugTI0v9agbN4McgPLREAiFKGrIaVoVPtHORU2x\n2yLl5MmPUKp4/+GulvYraQSxxUK7FowF/5nS6qRlv9/zOyrHdWIXkpMUO+at\nmvhw\r\n=Cgj8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzMFmjEBgTSA5KTzQNZOTClU3OEPl5APAcvxeOAEtB+AiEAkBLyB7soMZeX8m1zWPqsDvaaGlb2vgAwBr6dfuY5KiQ="}]},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-polyfill_1.0.0_1586891305244_0.4793137933490923"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-14T19:08:25.097Z","1.0.0":"2020-04-14T19:08:25.437Z","modified":"2022-04-06T19:42:57.123Z"},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"description":"A browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/)","homepage":"https://github.com/rexxars/eventsource-polyfill#readme","keywords":["sse","server","sent","events","eventsource","event-source","polyfill"],"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-polyfill.git"},"author":{"name":"amvtek","email":"devel@amvtek.com"},"bugs":{"url":"https://github.com/rexxars/eventsource-polyfill/issues"},"license":"MIT","readme":"# EventSource Polyfill\n\n**Forked from [amvtek/EventSource](https://github.com/amvtek/EventSource)**. See [fork modification](#fork-modifications) for more details.\n\nProvide polyfill to support EventSource in browser where it is not available.\n\n> - Used in production\n> - Tested in Internet Explorer 8 +\n> - Tested in Android browser 2.1 +\n> - [Documented][]\n> - Run the [Browser test suite][]\n\n## Installing\n\n```bash\n$ npm install @rexxars/eventsource-polyfill\n```\n\n## Usage (through bundler)\n\n```js\nconst EventSource =\n  typeof window !== 'undefined' && window.EventSource\n    ? window.EventSource\n    : require('@rexxars/eventsource-polyfill')\n\nconst es = new EventSource('/my-es-endpoint')\n```\n\n## Usage (drop-in script)\n\n```html\n<script src=\"https://unpkg.com/@rexxars/eventsource-polyfill\"></script>\n<script>\n  var es = new EventSource('/my-es-endpoint')\n</script>\n```\n\n## Fork modifications\n\n- New package name: `@rexxars/eventsource-polyfill`\n- UMD module definition - CommonJS, AMD and browser globals\n- Fixed a few global variable leaks-\n- Check for `window.location` before usage (fixes react native crashing)\n- Stop dispatching events after closed\n\n## License\n\nMIT-licensed. See LICENSE.\n","readmeFilename":"README.md"}