@stackline/sse 1.0.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.
package/package.json ADDED
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "@stackline/sse",
3
+ "version": "1.0.0",
4
+ "description": "Universal, spec-correct and memory-safe Server-Sent Events toolkit for AI streaming, browsers, servers and edge runtimes",
5
+ "keywords": [
6
+ "sse",
7
+ "server-sent-events",
8
+ "eventsource",
9
+ "event-stream",
10
+ "streaming",
11
+ "ai-streaming",
12
+ "llm",
13
+ "fetch",
14
+ "reconnect",
15
+ "web-streams",
16
+ "typescript",
17
+ "browser",
18
+ "node",
19
+ "edge",
20
+ "zero-dependency"
21
+ ],
22
+ "license": "MIT",
23
+ "author": {
24
+ "name": "Alexandro Paixao Marques",
25
+ "url": "https://github.com/alexandroit"
26
+ },
27
+ "homepage": "https://alexandro.net/docs/vanilla/sse/",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/alexandroit/stackline-sse.git"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/alexandroit/stackline-sse/issues"
34
+ },
35
+ "type": "module",
36
+ "main": "./dist/index.cjs",
37
+ "module": "./dist/index.js",
38
+ "types": "./dist/index.d.ts",
39
+ "unpkg": "./dist/index.min.js",
40
+ "jsdelivr": "./dist/index.min.js",
41
+ "exports": {
42
+ ".": {
43
+ "browser": {
44
+ "types": "./dist/index.d.mts",
45
+ "default": "./dist/index.js"
46
+ },
47
+ "import": {
48
+ "types": "./dist/index.d.mts",
49
+ "default": "./dist/index.js"
50
+ },
51
+ "require": {
52
+ "types": "./dist/index.d.cts",
53
+ "default": "./dist/index.cjs"
54
+ }
55
+ },
56
+ "./package.json": "./package.json"
57
+ },
58
+ "sideEffects": false,
59
+ "engines": {
60
+ "node": ">=14.17.0"
61
+ },
62
+ "files": [
63
+ "dist",
64
+ "CHANGELOG.md",
65
+ "CONTRIBUTING.md",
66
+ "LICENSE",
67
+ "NOTICE",
68
+ "README.md",
69
+ "SECURITY.md"
70
+ ],
71
+ "publishConfig": {
72
+ "access": "public"
73
+ },
74
+ "scripts": {
75
+ "clean": "node scripts/clean.mjs",
76
+ "build": "node scripts/build.mjs",
77
+ "lint": "eslint . && node scripts/check-markdown.mjs",
78
+ "test": "npm run build && npm run lint && npm run test:coverage && npm run test:types && npm run test:package && npm run test:install && npm run test:docs",
79
+ "test:unit": "node --test --test-reporter=spec test/*.test.mjs",
80
+ "test:coverage": "c8 --all --src src --check-coverage --lines 100 --functions 100 --statements 100 --branches 95 node --test test/parser.test.mjs test/encoder.test.mjs test/iterable.test.mjs test/client.test.mjs test/server.test.mjs test/security.test.mjs",
81
+ "test:types": "node scripts/test-types.mjs",
82
+ "test:package": "node --test test/package.test.mjs && node scripts/check-dist.mjs && publint",
83
+ "test:install": "node scripts/smoke-install.mjs",
84
+ "test:docs": "npm run docs:build && node scripts/check-docs.mjs",
85
+ "test:attw": "attw --pack .",
86
+ "audit:dependencies": "npm audit --audit-level=low && npm audit signatures",
87
+ "benchmark": "npm run build && node benchmark/benchmark.mjs",
88
+ "docs:build": "npm run build && node scripts/build-docs.mjs",
89
+ "docs:serve": "node scripts/serve-docs.mjs",
90
+ "prepack": "npm run clean && npm run build && npm run lint && npm run test:coverage && npm run test:types && npm run test:package"
91
+ },
92
+ "devDependencies": {
93
+ "@arethetypeswrong/cli": "0.18.5",
94
+ "@eslint/js": "10.0.1",
95
+ "c8": "12.0.0",
96
+ "esbuild": "0.28.2",
97
+ "eslint": "10.8.1",
98
+ "eventsource-parser": "3.1.1",
99
+ "publint": "0.3.23",
100
+ "typescript": "7.0.2"
101
+ }
102
+ }