{"_id":"eventsource-client","_rev":"9-4e03a6a01fcd7e82071038c7446a567e","name":"eventsource-client","dist-tags":{"latest":"1.2.0"},"versions":{"0.0.1":{"name":"eventsource-client","version":"0.0.1","keywords":[],"author":{"name":"Espen Hovlandsdal"},"license":"MIT","_id":"eventsource-client@0.0.1","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"dist":{"shasum":"bbd8a6f1cdbf909dbf3472c933de7421f3c80f66","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-0.0.1.tgz","fileCount":1,"integrity":"sha512-2Qw3q4SF34wxdQ+LJYhToKkg9A4L/at6soJ4v1fHLaPzr4zGOKMs6rJnWI79Fqy9vLoF2SgIY2EOOVzI2UttAQ==","signatures":[{"sig":"MEUCIBX6zHrTF5GpNr6gPyDJzJQUdilZQjVw207EpnJAyguOAiEA/yl/eMe2lRpTmJjCfHZ3qeIkus/kyXWCbrfz0343/hI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249},"main":"index.js","gitHead":"9c0fb3209582592cec648af5a5e189c50ece458b","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"_npmVersion":"10.2.2","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_0.0.1_1699998770514_0.3173179143340794","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"eventsource-client","version":"1.0.0","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.0.0","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"b4ca097159807f5490f1da1d7574f5be959ec5e0","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.0.0.tgz","fileCount":18,"integrity":"sha512-N52n+eImv1yVSjQBNrCaMwOPZAoDQvAkO4+Q7fmH9WKCe2k36EIpkFCKawlRcfbiB2M2o7ZKwEYTs2lPv4vjeg==","signatures":[{"sig":"MEUCIQCgfMOSd4+opRjp2FOGZ4jgDwPkS6qXdHAtsODVxZzPmgIgK4phhIOPJ3uEJDbvg+qA48weazW2tQfChifbpazEtWM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":257834},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"7e237e113340a1c3e6c3615a0e5a48fffae65296","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:node":"ts-node test/node/client.node.test.ts","test:browser":"ts-node test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.2.3","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"20.9.0","dependencies":{"eventsource-parser":"^1.1.1"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"sinon":"^17.0.1","eslint":"^8.53.0","rimraf":"^5.0.5","undici":"^5.27.2","esbuild":"^0.19.5","ts-node":"^10.9.1","prettier":"^3.1.0","playwright":"^1.39.0","typescript":"^5.2.2","@types/node":"^18.0.0","@types/sinon":"^17.0.1","@types/express":"^4.17.21","semantic-release":"^22.0.7","@sanity/pkg-utils":"^3.2.3","eslint-config-sanity":"^7.0.1","eslint-config-prettier":"^9.0.0","rollup-plugin-visualizer":"^5.9.2","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.6","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.0.0_1700000043054_0.4435344917919093","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"eventsource-client","version":"1.1.0","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.1.0","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"b43cd7ed40a2e5989e5c6b2d7e7615c2f0c49db2","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.1.0.tgz","fileCount":18,"integrity":"sha512-UAlzoFqkF/r6DUUyAICNHYBbL7EjCRL/J5wNa0N2vTwYnDE/veyTN/KVKiUB39NynZFHCEQKKUd+RwvtD49kuQ==","signatures":[{"sig":"MEUCIQCq9IYIgn00U0t1ZQ+tcfI67torefAk27bO/2i0o1Ci9wIgaLnqaBoWcPP+6Q/qUHRGnUJOFdhRS7UWhprqDYuiZa8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249758},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./dist/default.esm.js","deno":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"ad4c99eb82091c08cc4900a110ab00f153174354","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts","test:browser":"tsx test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.6.0","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^1.1.2"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.3","sinon":"^17.0.1","eslint":"^8.57.0","rimraf":"^5.0.5","undici":"^6.7.1","esbuild":"^0.20.1","prettier":"^3.2.5","playwright":"^1.42.1","typescript":"^5.4.2","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@types/express":"^4.17.21","semantic-release":"^23.0.2","@sanity/pkg-utils":"^4.0.0","eslint-config-sanity":"^7.1.1","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.7","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.1.0_1714407431042_0.9223352503958373","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"eventsource-client","version":"1.1.1","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.1.1","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"813ce56c1d3136f3e8354847d75d8b53440b39a2","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.1.1.tgz","fileCount":18,"integrity":"sha512-jviLAo/3MwVenuWYi+cCQV/Vu24aDvCE8YlEfmrf6nvMO2HyYCCahyFfZTpetNXZU2c+8l6Lxh6qZrKfQ5q2Rg==","signatures":[{"sig":"MEQCIC+62HGACtUwAtTEq3hu1LHCgBHOCHIIosl42NgTKmZyAiARJbeZxt6vqtVDMTJqFW/KeN4oMjK7uitKFG8CxrdcUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249661},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./dist/default.esm.js","deno":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"2f4b84e62bdd919088eb9d1c74e9c3f1ad77bfc2","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts","test:browser":"tsx test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.6.0","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^1.1.2"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.3","sinon":"^17.0.1","eslint":"^8.57.0","rimraf":"^5.0.5","undici":"^6.7.1","esbuild":"^0.20.1","prettier":"^3.2.5","playwright":"^1.42.1","typescript":"^5.4.2","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@types/express":"^4.17.21","semantic-release":"^23.0.2","@sanity/pkg-utils":"^4.0.0","eslint-config-sanity":"^7.1.1","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.7","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.1.1_1714991935468_0.9915464219646732","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"eventsource-client","version":"1.1.2","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.1.2","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"d1c603ab5bcc6529a9d44389da62706f5f016011","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.1.2.tgz","fileCount":18,"integrity":"sha512-NLC/YyY6t3isHSSKaBfuk2s1FjgWlJW8GLHzGr2Yap62uanMSIO0hoZI2p/pPsfj+dXyWuzSh2O6vBbTz24M7g==","signatures":[{"sig":"MEUCIAyjHN3RmwjO6lWbAg+89ajz4uNA5XCDMJ2qrVCL+kDMAiEA0UNpk+xlbCUGCrowwKrgiW8nvMoLyWdhP5lfHbMtol4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":250320},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./dist/default.esm.js","deno":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"8d0d44787211cff84db62af78d203e38923d3da9","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts","build:watch":"pkg-utils watch","test:browser":"tsx test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.6.0","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"20.16.0","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^1.1.2"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.3","sinon":"^17.0.1","eslint":"^8.57.0","rimraf":"^5.0.5","undici":"^6.7.1","esbuild":"^0.20.1","prettier":"^3.2.5","playwright":"^1.42.1","typescript":"^5.4.2","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@types/express":"^4.17.21","semantic-release":"^23.0.2","@sanity/pkg-utils":"^4.0.0","eslint-config-sanity":"^7.1.1","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.7","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.1.2_1722824453637_0.7095378271370587","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"eventsource-client","version":"1.1.3","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.1.3","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"385033af5d05fcf99149248b8c0f281dec9b1887","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.1.3.tgz","fileCount":18,"integrity":"sha512-6GJGePDMxin/6VH1Dex7RqnZRguweO1BVKhXpBYwKcQbVLOZPLfeDr9vYSb9ra88kjs0NpT8FaEDz5rExedDkg==","signatures":[{"sig":"MEQCIEQRGKVZd42IOpLg61hZZed24QN8ovWG0WTUARHvABycAiB49EhbAr7asf6xfYKVqLNphPJoNPyqig9gtrjstO0FRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248724},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./dist/default.esm.js","deno":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"d8244e895b0c47bcb15fc4f8dd1f098ed42daa57","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts","build:watch":"pkg-utils watch","test:browser":"tsx test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.6.0","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^3.0.0"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.3","sinon":"^17.0.1","eslint":"^8.57.0","rimraf":"^5.0.5","undici":"^6.7.1","esbuild":"^0.20.1","prettier":"^3.2.5","playwright":"^1.42.1","typescript":"^5.4.2","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@types/express":"^4.17.21","semantic-release":"^23.0.2","@sanity/pkg-utils":"^4.0.0","eslint-config-sanity":"^7.1.1","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.7","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.1.3_1729376415457_0.9021145497782475","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"eventsource-client","version":"1.1.4","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.1.4","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"c701dbe8903891708a8037731a240d06ef7c6a26","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.1.4.tgz","fileCount":18,"integrity":"sha512-CKnqZTwXCnHN2EqrEB9eLSjMMRqHum09VOsikkgSPoa2Jr2XgQnX7P1Fxhnnj/UHxi3GQ2xVsXDKIktEes07bg==","signatures":[{"sig":"MEYCIQCyG1/lFOlYTzwmO6Zgnvfl2wC24mSeDfFlfHlJd/LsUAIhAOhZhyKNM/SI6TXegM8yD2zUSgQc0vNtf1FHhpOPWW+M","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":249011},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./dist/default.esm.js","deno":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"8bc91f9c3471f377da1c0ac6df22a541f566d223","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts","build:watch":"pkg-utils watch","test:browser":"tsx test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.6.0","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^3.0.0"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.3","sinon":"^17.0.1","eslint":"^8.57.0","rimraf":"^5.0.5","undici":"^6.7.1","esbuild":"^0.20.1","prettier":"^3.2.5","playwright":"^1.54.1","typescript":"^5.4.2","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@types/express":"^4.17.21","semantic-release":"^23.0.2","@sanity/pkg-utils":"^4.0.0","eslint-config-sanity":"^7.1.1","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.7","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.1.4_1752613263425_0.3408266024971134","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"eventsource-client","version":"1.1.5","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-client@1.1.5","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-client#readme","bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"dist":{"shasum":"a1982574cda781a14dbc92f7830172139860b8d7","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.1.5.tgz","fileCount":18,"integrity":"sha512-WEUFKFabsc9ucrDpiiD3M4+sws7+tCTWGwgLovdhhCy5mRJaEzOmO1OCdwpoWCG47QnNmMcsjFDtnkaChmKaLg==","signatures":[{"sig":"MEUCIQCsLd5ZNjlzQw6cAfwrlnFqB6nDebdz8ORk0iHW+jeiFQIgAiNGlrgXqRWOqplXZd7Som9ope09EmV1MPbsATW5hzE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":249409},"main":"./dist/default.js","types":"./dist/default.d.ts","module":"./dist/default.esm.js","source":"./src/default.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./dist/default.esm.js","deno":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"types":"./dist/default.d.ts","import":"./dist/default.esm.js","source":"./src/default.ts","default":"./dist/default.esm.js","require":"./dist/default.js"},"./package.json":"./package.json"},"gitHead":"22b589a49b46f4d45d1403a3bab7d907e1ec8169","scripts":{"lint":"eslint . && tsc --noEmit","test":"npm run test:node && npm run test:browser","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts","build:watch":"pkg-utils watch","test:browser":"tsx test/browser/client.browser.test.ts","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-client.git","type":"git"},"_npmVersion":"10.6.0","description":"Modern EventSource client for browsers and Node.js","directories":{},"sideEffects":false,"_nodeVersion":"22.19.0","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^3.0.0"},"eslintConfig":{"rules":{"no-empty":"off","no-undef":"off"},"extends":["sanity","sanity/typescript","prettier"],"globals":{"globalThis":false},"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.7.3","sinon":"^17.0.1","eslint":"^8.57.0","rimraf":"^5.0.5","undici":"^6.7.1","esbuild":"^0.20.1","prettier":"^3.2.5","playwright":"^1.54.1","typescript":"^5.4.2","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@types/express":"^4.17.21","semantic-release":"^23.0.2","@sanity/pkg-utils":"^4.0.0","eslint-config-sanity":"^7.1.1","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^6.11.0","@sanity/semantic-release-preset":"^4.1.7","@typescript-eslint/eslint-plugin":"^6.11.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-client_1.1.5_1758239124491_0.08824762071738856","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"eventsource-client","version":"1.2.0","description":"Modern EventSource client for browsers and Node.js","sideEffects":false,"types":"./dist/default.d.ts","source":"./src/default.ts","module":"./dist/default.esm.js","main":"./dist/default.js","exports":{".":{"types":"./dist/default.d.ts","source":"./src/default.ts","deno":"./dist/default.esm.js","bun":"./dist/default.esm.js","node":{"import":"./dist/node.cjs.mjs","require":"./dist/node.js"},"require":"./dist/default.js","import":"./dist/default.esm.js","default":"./dist/default.esm.js"},"./package.json":"./package.json"},"scripts":{"build":"pkg-utils build && pkg-utils --strict","build:watch":"pkg-utils watch","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node && npm run test:browser","test:browser":"tsx test/browser/client.browser.test.ts","test:bun":"bun run test/bun/client.bun.test.ts","test:deno":"deno run --allow-net --allow-read --allow-env --unstable-sloppy-imports test/deno/client.deno.test.ts","test:node":"tsx test/node/client.node.test.ts"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-client.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","engines":{"node":">=18.0.0"},"browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"dependencies":{"eventsource-parser":"^3.0.0"},"devDependencies":{"@sanity/pkg-utils":"^4.0.0","@sanity/semantic-release-preset":"^4.1.7","@types/express":"^4.17.21","@types/node":"^18.0.0","@types/sinon":"^17.0.3","@typescript-eslint/eslint-plugin":"^6.11.0","@typescript-eslint/parser":"^6.11.0","esbuild":"^0.20.1","eslint":"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.1","playwright":"^1.54.1","prettier":"^3.2.5","rimraf":"^5.0.5","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^23.0.2","sinon":"^17.0.1","tsx":"^4.7.3","typescript":"^5.4.2","undici":"^6.7.1"},"bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"homepage":"https://github.com/rexxars/eventsource-client#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"],"globals":{"globalThis":false},"rules":{"no-undef":"off","no-empty":"off"}},"_id":"eventsource-client@1.2.0","gitHead":"e8a59284f6bafad67410edb9d85f8f1af3a4f6d7","_nodeVersion":"22.19.0","_npmVersion":"10.6.0","dist":{"integrity":"sha512-kDI75RSzO3TwyG/K9w1ap8XwqSPcwi6jaMkNulfVeZmSeUM49U8kUzk1s+vKNt0tGrXgK47i+620Yasn1ccFiw==","shasum":"2c0a547cc7b42c970e9d0f72cad12ceeaa64682b","tarball":"https://registry.npmjs.org/eventsource-client/-/eventsource-client-1.2.0.tgz","fileCount":18,"unpackedSize":250564,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC6qZ8pHleBGpf/hMimhVqJy3HtEntXXclLtI2dB53omAiEA0czhFju5Zbw9QKAir7VTleIrF//BH4X3AwfU00ZQ16g="}]},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsource-client_1.2.0_1758294429919_0.09065184307893781"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-14T21:52:50.513Z","modified":"2025-09-19T15:07:10.349Z","0.0.1":"2023-11-14T21:52:50.668Z","1.0.0":"2023-11-14T22:14:03.489Z","1.1.0":"2024-04-29T16:17:11.257Z","1.1.1":"2024-05-06T10:38:55.652Z","1.1.2":"2024-08-05T02:20:53.828Z","1.1.3":"2024-10-19T22:20:15.638Z","1.1.4":"2025-07-15T21:01:03.626Z","1.1.5":"2025-09-18T23:45:24.688Z","1.2.0":"2025-09-19T15:07:10.098Z"},"bugs":{"url":"https://github.com/rexxars/eventsource-client/issues"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","homepage":"https://github.com/rexxars/eventsource-client#readme","keywords":["sse","eventsource","server-sent-events"],"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-client.git"},"description":"Modern EventSource client for browsers and Node.js","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"readme":"# eventsource-client\n\n[![npm version](https://img.shields.io/npm/v/eventsource-client.svg?style=flat-square)](http://npmjs.org/package/eventsource-client)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/eventsource-client?style=flat-square)](https://bundlephobia.com/result?p=eventsource-client)\n\nA modern, streaming client for [server-sent events/eventsource](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events).\n\n## Another one?\n\nYes! There are indeed lots of different EventSource clients and polyfills out there. In fact, I am a co-maintainer of [the most popular one](https://github.com/eventsource/eventsource). This one is different in a few ways, however:\n\n- Works in both Node.js and browsers with minimal amount of differences in code\n- Ships with both ESM and CommonJS versions\n- Uses modern APIs such as the [`fetch()` API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) and [Web Streams](https://streams.spec.whatwg.org/)\n- Does **NOT** attempt to be API-compatible with the browser EventSource API:\n  - Supports async iterator pattern\n  - Supports any request method (POST, PATCH, DELETE etc)\n  - Supports setting custom headers\n  - Supports sending a request body\n  - Supports configurable reconnection policies\n  - Supports subscribing to any event (eg if event names are not known)\n  - Supports subscribing to events named `error`\n  - Supports setting initial last event ID\n\n## Installation\n\n```bash\nnpm install --save eventsource-client\n```\n\n## Supported engines\n\n- Node.js >= 18\n- Chrome >= 63\n- Safari >= 11.3\n- Firefox >= 65\n- Edge >= 79\n- Deno >= 1.30\n- Bun >= 1.1.23\n\nBasically, any environment that supports:\n\n- [ReadableStream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)\n- [TextDecoderStream](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream)\n- [Symbol.asyncIterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator)\n\n## Usage (async iterator)\n\n```ts\nimport {createEventSource} from 'eventsource-client'\n\nconst es = createEventSource({\n  url: 'https://my-server.com/sse',\n\n  // your `fetch()` implementation of choice, or `globalThis.fetch` if not set\n  fetch: myFetch,\n})\n\nlet seenMessages = 0\nfor await (const {data, event, id} of es) {\n  console.log('Data: %s', data)\n  console.log('Event ID: %s', id) // Note: can be undefined\n  console.log('Event: %s', event) // Note: can be undefined\n\n  if (++seenMessages === 10) {\n    break\n  }\n}\n\n// IMPORTANT: EventSource is _not_ closed automatically when breaking out of\n// loop. You must manually call `close()` to close the connection.\nes.close()\n```\n\n## Usage (`onMessage` callback)\n\n```ts\nimport {createEventSource} from 'eventsource-client'\n\nconst es = createEventSource({\n  url: 'https://my-server.com/sse',\n\n  onMessage: ({data, event, id}) => {\n    console.log('Data: %s', data)\n    console.log('Event ID: %s', id) // Note: can be undefined\n    console.log('Event: %s', event) // Note: can be undefined\n  },\n\n  // your `fetch()` implementation of choice, or `globalThis.fetch` if not set\n  fetch: myFetch,\n})\n\nconsole.log(es.readyState) // `open`, `closed` or `connecting`\nconsole.log(es.lastEventId)\n\n// Later, to terminate and prevent reconnections:\nes.close()\n```\n\n## Minimal usage\n\n```ts\nimport {createEventSource} from 'eventsource-client'\n\nconst es = createEventSource('https://my-server.com/sse')\nfor await (const {data} of es) {\n  console.log('Data: %s', data)\n}\n```\n\n## Comments\n\nShould you need to read/respond to comments, pass an `onComment` callback:\n\n```ts\nimport {createEventSource} from 'eventsource-client'\n\nconst es = createEventSource({\n  url: 'https://my-server.com/sse',\n  onComment: (comment: string) => {\n    /* a single, leading space will be trimmed if present */\n    /* eg `: hello` and `:hello` will both yield `hello` */\n  },\n})\n```\n\n## Todo\n\n- [ ] Figure out what to do on broken connection on request body\n- [ ] Configurable stalled connection detection (eg no data)\n- [ ] Configurable reconnection policy\n- [ ] Consider legacy build\n\n## License\n\nMIT © [Espen Hovlandsdal](https://espen.codes/)\n","readmeFilename":"README.md"}