@tashiscool/sse 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @tashiscool/sse
3
+ * SSE (Server-Sent Events) encoder and parser
4
+ */
5
+ export { sse, streamToResponse, parseSSEResponse, streamToNodeResponse, createAIEvent, toEventStream, } from '@tashiscool/stream';
6
+ export type { StreamProtocol, StreamResponseOptions, ProtocolEncoder, NodeServerResponse, StreamEvent, } from '@tashiscool/stream';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,WAAW,GACZ,MAAM,oBAAoB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @tashiscool/sse
3
+ * SSE (Server-Sent Events) encoder and parser
4
+ */
5
+ export { sse, streamToResponse, parseSSEResponse, streamToNodeResponse, createAIEvent, toEventStream, } from '@tashiscool/stream';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,MAAM,oBAAoB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@tashiscool/sse",
3
+ "version": "0.1.0",
4
+ "description": "SSE (Server-Sent Events) encoder and parser",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc",
19
+ "typecheck": "tsc --noEmit",
20
+ "clean": "rm -rf dist"
21
+ },
22
+ "keywords": [
23
+ "llm",
24
+ "sse",
25
+ "server-sent-events",
26
+ "streaming",
27
+ "http"
28
+ ],
29
+ "license": "MIT",
30
+ "peerDependencies": {
31
+ "@tashiscool/stream": ">=0.1.0"
32
+ },
33
+ "devDependencies": {
34
+ "@tashiscool/stream": "workspace:*",
35
+ "typescript": "^5.4.0"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/tashiscool/llm-utils.git",
40
+ "directory": "packages/sse"
41
+ }
42
+ }