{"_id":"@asaje/sse-push-event-server","_rev":"7-b04aca1f52217d59356770f92f8fbeb4","name":"@asaje/sse-push-event-server","dist-tags":{"latest":"1.0.11"},"versions":{"1.0.1":{"name":"@asaje/sse-push-event-server","version":"1.0.1","main":"./dist/main.js","license":"MIT","devDependencies":{"esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"tsc && esbuild src/*.ts --outdir=dist --minify --packages=external"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"2744b5acf7ab7a34a28612fc30e999f6eb7c453a","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.1","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-fYWohhZmokA7mvtOH3cV7Bw/K/E9LBCJqNlHZao2Tr7ri+OePIlYhKdxszSoAvNbgn7qqJ70PvYxb0CqTTG7YQ==","shasum":"984d72fdcca597287f3bc4ee0ca9af613abec8d1","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.1.tgz","fileCount":8,"unpackedSize":2452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGljO2U7uBY35v17zJWW2J5rENSGPcXe3QWax9K2GOMvAiEA8NM2iEbtWqdZ1R5mqo2jJdMCoAYXkk6DxylE0Jzhf+k="}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.1_1688729982529_0.5987179794893309"},"_hasShrinkwrap":false},"1.0.2":{"name":"@asaje/sse-push-event-server","version":"1.0.2","main":"./dist/main.js","license":"MIT","devDependencies":{"esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"tsc && esbuild src/*.ts --outdir=dist --minify --packages=external"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"db44145e6deb96e62732f97ac81dc252e3893984","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.2","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-c0BS4qH3RmfXy+/C3EdCTEgylu64A41K5mErHgxqj0+sEC5j9lgIx/f6tx1n5J1bII4NOuXiWpvbBUpSTptpRg==","shasum":"ad09fc1b2d9c80239527d7bd4a420845014cc014","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.2.tgz","fileCount":10,"unpackedSize":3881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE0i1wXtsV3IOcHnUnpfCQrGF65a/l1Hi/CXCBvVrL4QIgFeSitr2Xv6QJHa7AoH+gvHVtJLWLzjcRgV6w/Eh4XrE="}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.2_1688730571703_0.5849418331561056"},"_hasShrinkwrap":false},"1.0.3":{"name":"@asaje/sse-push-event-server","version":"1.0.3","main":"./dist/main.js","license":"MIT","devDependencies":{"esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"tsc && esbuild src/*.ts --outdir=dist --minify --packages=external"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"8f13525dde53935a252d9fdff9440c2618021c48","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.3","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-1FBloR5fOs1f1Q3ZD0EP1WC3KdGXAXYoQp4CgcsdDt4mxPJGe/B6PF5QUKndx/r1gToj0pHUXb4BALvlpO2f/w==","shasum":"9ccf01b0ce69f7af4336eaab470cfe3238887b9d","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.3.tgz","fileCount":10,"unpackedSize":3897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtAhl4vk85c48tz1uuNTBaqVtY9xEngFqprQh4CIpusQIhAPW06TSJdrhQAKzUicn88a8goL9hb3lvJZ16BciQqocU"}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.3_1688730813198_0.8740024263411454"},"_hasShrinkwrap":false},"1.0.4":{"name":"@asaje/sse-push-event-server","version":"1.0.4","main":"./dist/main.js","license":"MIT","devDependencies":{"esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"tsc && esbuild src/*.ts --outdir=dist --minify --bundle"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"dc0edd699409781ab36b0c2dcfef0c6804a74330","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.4","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-F/TMs4qR1Le+8WOLbs3rV9aPoaW89sLk/3Hn8f5R1/D+bh31crd1Uj7Am1CHT/uh9fmr52Yn/j0YhI4cVuaLRA==","shasum":"07a3effe38142bb3fe6af8b635f9e5a299350ea4","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.4.tgz","fileCount":8,"unpackedSize":29796,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcGvdRaqdALEJs3wpyY0EqkPRLW1Hi+RvIMVXS01Q87AIgWVV+yDTx47ZX9ywTY091ritFgsnoIAde0dIxHqTcQ7M="}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.4_1688731022516_0.4127336213332631"},"_hasShrinkwrap":false},"1.0.6":{"name":"@asaje/sse-push-event-server","version":"1.0.6","main":"./dist/main.js","license":"MIT","devDependencies":{"esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"tsc"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"409b1b3197aef422c128edce9d62ad43a5990db0","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.6","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-iON1URFkHI56Np9QpU+pwYxtNvZ2rktlkUlinA4YiVDNE/KQnUY3+uOmignWaMtG7Pk1FXDu+AzFRkaxIbCQrg==","shasum":"a019fc7a5e668f194b1d60b05bc05f36a8c26c1a","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.6.tgz","fileCount":8,"unpackedSize":3397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFl5AjLwm0gUM0ORCBzx6Hwp6qE52vA0ubsOnKxO0DIaAiAGD+h+WPA6mwQ4ZMG0GlRTWnBnNuuk8j0a+ETQJP5NFw=="}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.6_1688739704519_0.997263261975643"},"_hasShrinkwrap":false},"1.0.7":{"name":"@asaje/sse-push-event-server","version":"1.0.7","main":"./dist/main.js","license":"MIT","devDependencies":{"@types/node":"^20.4.5","esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"tsc"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"52f1dc2683011d0538b80bdf10269c9464317a28","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.7","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-aeB/g0glisYBRxwSB+bsgsq7i0l5whQUfTV/YJd/2JUlsg/d3fKDArpDl2CQ/mviSe0jbU0xDoTzeq9RQ+e8CQ==","shasum":"f1a9862a767684b361d7ed648fafe854f99a56e7","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.7.tgz","fileCount":8,"unpackedSize":4148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDdWR3In12on1whBI7U60Fx6/XmOM3q3XBFQPILV+T+3AiEAvaRr1c7PJ1rkbYlbcqnFMm0iAuqvq/SKNlLMLIkcYXA="}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.7_1690381074657_0.7265360882291148"},"_hasShrinkwrap":false},"1.0.10":{"name":"@asaje/sse-push-event-server","version":"1.0.10","main":"./dist/main.js","license":"MIT","devDependencies":{"@types/node":"^20.4.5","esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"rm -rf dist && tsc"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"44e5cb60915c7b5d21fefc27d219e9d95dabc96c","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.10","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-4Y9WJvRZaoDLUCad7247CYTI9xqPipgZlYIElD8Ryhbom43VW8lPh72mQIq9vanT3LEyD2zkWHbLwQmCY4nv8w==","shasum":"508ba465e806a8ffc313f8f4920c7da631c43ce0","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.10.tgz","fileCount":8,"unpackedSize":4167,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8huW20YBfF3IBQaa5d1brqAp0NxycDmjpqwzMZ/OqYQIhAPe10Fk5+X3lUbefD6ZnE8W9rcWNNtc0rq8L0XQfyX0y"}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.10_1690805410653_0.1058597550217184"},"_hasShrinkwrap":false},"1.0.11":{"name":"@asaje/sse-push-event-server","version":"1.0.11","main":"./dist/main.js","license":"MIT","devDependencies":{"@types/node":"^20.4.5","esbuild":"^0.18.11","typescript":"^5.1.6"},"scripts":{"build":"rm -rf dist && tsc"},"types":"./dist/main.d.ts","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"dependencies":{"rxjs":"^7.8.1"},"gitHead":"5c079c60e7711783d86e6341e04a2f23d01b12dc","description":"## **Description**","bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","_id":"@asaje/sse-push-event-server@1.0.11","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-jCaalb1kMETUI2yUsf+JdB0TDpM6DDKWkgHi1NOEkzoSQt+JQqa5dYylex0C5CytacML2v9wZb5bMhEsO7NpUw==","shasum":"e28bd7d6c13303091b009e9f482394eb1025ca4c","tarball":"https://registry.npmjs.org/@asaje/sse-push-event-server/-/sse-push-event-server-1.0.11.tgz","fileCount":8,"unpackedSize":4157,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcVhCVyXscYuRBeVlGBMoV9hVxOeUdbCzc/VuWhxK+BAIgbPMUlycV09wlOzozd1BKpyxQbDuCEWPkMt4W7psJb/0="}]},"_npmUser":{"name":"asaje379","email":"salemaffa@gmail.com"},"directories":{},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sse-push-event-server_1.0.11_1690807134524_0.019460866588286052"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-07T11:39:42.441Z","1.0.1":"2023-07-07T11:39:42.701Z","modified":"2023-07-31T12:38:54.833Z","1.0.2":"2023-07-07T11:49:31.881Z","1.0.3":"2023-07-07T11:53:33.367Z","1.0.4":"2023-07-07T11:57:02.709Z","1.0.6":"2023-07-07T14:21:44.787Z","1.0.7":"2023-07-26T14:17:54.804Z","1.0.10":"2023-07-31T12:10:10.848Z","1.0.11":"2023-07-31T12:38:54.724Z"},"maintainers":[{"name":"asaje379","email":"salemaffa@gmail.com"}],"description":"## **Description**","homepage":"https://github.com/asaje379/sse-push-event/tree/server#readme","repository":{"type":"git","url":"git+https://github.com/asaje379/sse-push-event.git#server"},"bugs":{"url":"https://github.com/asaje379/sse-push-event/issues"},"license":"MIT","readme":"# SSE-PUSH-EVENT\n\n## **Description**\n\nLightweight package for SSE push events handling\n\n## **Installation**\n\n```bash\nnpm i @asaje/sse-push-event-server\n```\n\nor\n\n```bash\nyarn add @asaje/sse-push-event-server\n```\n\n## **How to use**\n\n```ts\n// Example of NestJS controller\n@Sse('events')\nconnectSse(@Res() res: Response) {\n  const { value, destroy } = initPushEventSubscription();\n  res.on('close', () => {\n    destroy();\n  });\n\n  return value;\n}\n\n\n// Sending event\nsendPushEvent({\n  event: 'TEST',\n  data: { msg: 'Hello' },\n  room: 'test-room',\n})\n\n```\n","readmeFilename":"readme.md"}