├── .changeset ├── README.md └── config.json ├── .env ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ ├── pr.yml │ └── release.yml ├── .gitignore ├── .prettierrc ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs └── api.md ├── examples └── next-app │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── app │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ ├── stream │ │ ├── route.ts │ │ └── types.ts │ └── streamClient.tsx │ ├── next.config.js │ ├── package.json │ ├── postcss.config.js │ ├── public │ ├── next.svg │ └── vercel.svg │ ├── tailwind.config.ts │ └── tsconfig.json ├── jest.config.js ├── package.json ├── src ├── index.ts ├── utils.spec.ts ├── utils.ts ├── writer.spec.ts └── writer.ts ├── tsconfig.build.json └── tsconfig.json /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.env -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | src/types/global.d.ts 2 | examples/** -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/workflows/pr.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/README.md -------------------------------------------------------------------------------- /docs/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/docs/api.md -------------------------------------------------------------------------------- /examples/next-app/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /examples/next-app/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/.gitignore -------------------------------------------------------------------------------- /examples/next-app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/README.md -------------------------------------------------------------------------------- /examples/next-app/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/favicon.ico -------------------------------------------------------------------------------- /examples/next-app/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/globals.css -------------------------------------------------------------------------------- /examples/next-app/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/layout.tsx -------------------------------------------------------------------------------- /examples/next-app/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/page.tsx -------------------------------------------------------------------------------- /examples/next-app/app/stream/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/stream/route.ts -------------------------------------------------------------------------------- /examples/next-app/app/stream/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/stream/types.ts -------------------------------------------------------------------------------- /examples/next-app/app/streamClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/app/streamClient.tsx -------------------------------------------------------------------------------- /examples/next-app/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/next.config.js -------------------------------------------------------------------------------- /examples/next-app/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/package.json -------------------------------------------------------------------------------- /examples/next-app/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/postcss.config.js -------------------------------------------------------------------------------- /examples/next-app/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/public/next.svg -------------------------------------------------------------------------------- /examples/next-app/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/public/vercel.svg -------------------------------------------------------------------------------- /examples/next-app/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/tailwind.config.ts -------------------------------------------------------------------------------- /examples/next-app/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/examples/next-app/tsconfig.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/package.json -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/src/utils.spec.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/src/utils.ts -------------------------------------------------------------------------------- /src/writer.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/src/writer.spec.ts -------------------------------------------------------------------------------- /src/writer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/src/writer.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelangeloio/ts-sse/HEAD/tsconfig.json --------------------------------------------------------------------------------