@songfreedom/sse-client 0.1.1 → 0.1.2
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/README.md +16 -0
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -297,6 +297,22 @@ parser.feed("event: ping\ndata: 1\n\n");
|
|
|
297
297
|
- Timers are always cleared on close, and the connection loop only exits when the client is
|
|
298
298
|
finally closed, so suspending and resuming cannot leak a loop.
|
|
299
299
|
|
|
300
|
+
## Development
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
pnpm install
|
|
304
|
+
pnpm test # vitest
|
|
305
|
+
pnpm typecheck # tsc --noEmit
|
|
306
|
+
pnpm lint # eslint
|
|
307
|
+
pnpm build # dist/ + dist/package.json
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Releasing: bump the version, then
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
pnpm publish:npm # build + publish to npmjs (access: public)
|
|
314
|
+
```
|
|
315
|
+
|
|
300
316
|
## License
|
|
301
317
|
|
|
302
318
|
[MIT](./LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@songfreedom/sse-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Dependency-free Server-Sent Events client: fetch transport, typed event routing, reconnect with Last-Event-ID resume, idle watchdog and shared connections",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sse",
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "https://
|
|
19
|
-
"directory": "packages/sse-client"
|
|
18
|
+
"url": "git+https://github.com/hesetiema/simple-sse-client.git"
|
|
20
19
|
},
|
|
21
20
|
"engines": {
|
|
22
21
|
"node": ">=18"
|