@bymax-one/nest-realtime 1.0.0 → 1.0.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/CHANGELOG.md +74 -1
- package/README.md +17 -31
- package/dist/server/index.cjs +226 -884
- package/dist/server/index.d.cts +45 -636
- package/dist/server/index.d.ts +45 -636
- package/dist/server/index.mjs +227 -884
- package/dist/websocket/index.cjs +2018 -0
- package/dist/websocket/index.d.cts +1083 -0
- package/dist/websocket/index.d.ts +1083 -0
- package/dist/websocket/index.mjs +2016 -0
- package/package.json +54 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-realtime",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Realtime backend → frontend communication for NestJS — dual-transport SSE (default) and WebSocket (opt-in) with a unified server-side API.",
|
|
5
5
|
"author": "Bymax One <support@bymax.one>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,6 +54,16 @@
|
|
|
54
54
|
"default": "./dist/react/index.cjs"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
+
"./websocket": {
|
|
58
|
+
"import": {
|
|
59
|
+
"types": "./dist/websocket/index.d.ts",
|
|
60
|
+
"default": "./dist/websocket/index.mjs"
|
|
61
|
+
},
|
|
62
|
+
"require": {
|
|
63
|
+
"types": "./dist/websocket/index.d.cts",
|
|
64
|
+
"default": "./dist/websocket/index.cjs"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
57
67
|
"./package.json": "./package.json"
|
|
58
68
|
},
|
|
59
69
|
"typesVersions": {
|
|
@@ -63,9 +73,34 @@
|
|
|
63
73
|
],
|
|
64
74
|
"react": [
|
|
65
75
|
"./dist/react/index.d.cts"
|
|
76
|
+
],
|
|
77
|
+
"websocket": [
|
|
78
|
+
"./dist/websocket/index.d.cts"
|
|
66
79
|
]
|
|
67
80
|
}
|
|
68
81
|
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "pnpm clean && tsup",
|
|
84
|
+
"check:exports": "attw --pack . --profile strict",
|
|
85
|
+
"check:published": "node scripts/check-published-surface.mjs",
|
|
86
|
+
"clean": "rm -rf dist coverage",
|
|
87
|
+
"lint": "eslint src",
|
|
88
|
+
"lint:fix": "eslint src --fix",
|
|
89
|
+
"mutation": "stryker run",
|
|
90
|
+
"mutation:dry-run": "stryker run --dryRunOnly",
|
|
91
|
+
"mutation:incremental": "stryker run --incremental",
|
|
92
|
+
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test:cov:all && pnpm build && pnpm check:published",
|
|
93
|
+
"release": "npm publish --provenance --access public",
|
|
94
|
+
"size": "node scripts/check-size.mjs",
|
|
95
|
+
"test": "jest",
|
|
96
|
+
"test:all": "pnpm test && pnpm test:e2e",
|
|
97
|
+
"test:cov": "jest --config jest.coverage.config.ts --coverage",
|
|
98
|
+
"test:cov:all": "jest --config jest.coverage.config.ts --coverage",
|
|
99
|
+
"test:e2e": "jest --config jest.e2e.config.ts",
|
|
100
|
+
"test:e2e:cross-instance": "jest --config jest.e2e.cross-instance.config.ts --runInBand",
|
|
101
|
+
"test:watch": "jest --watch",
|
|
102
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.server.json"
|
|
103
|
+
},
|
|
69
104
|
"peerDependencies": {
|
|
70
105
|
"@nestjs/common": "^11.0.16",
|
|
71
106
|
"@nestjs/core": "^11.1.18",
|
|
@@ -156,32 +191,28 @@
|
|
|
156
191
|
"tsup": "^8.0.0",
|
|
157
192
|
"typescript": "^5.6.0"
|
|
158
193
|
},
|
|
194
|
+
"packageManager": "pnpm@11.0.0",
|
|
159
195
|
"engines": {
|
|
160
196
|
"node": ">=24.0.0"
|
|
161
197
|
},
|
|
198
|
+
"keywords": [
|
|
199
|
+
"nestjs",
|
|
200
|
+
"realtime",
|
|
201
|
+
"sse",
|
|
202
|
+
"server-sent-events",
|
|
203
|
+
"websocket",
|
|
204
|
+
"socket.io",
|
|
205
|
+
"pubsub",
|
|
206
|
+
"redis",
|
|
207
|
+
"multi-tenant",
|
|
208
|
+
"presence",
|
|
209
|
+
"event-replay",
|
|
210
|
+
"offline-queue",
|
|
211
|
+
"react-hooks",
|
|
212
|
+
"typescript"
|
|
213
|
+
],
|
|
162
214
|
"publishConfig": {
|
|
163
215
|
"access": "public",
|
|
164
216
|
"registry": "https://registry.npmjs.org/"
|
|
165
|
-
},
|
|
166
|
-
"scripts": {
|
|
167
|
-
"build": "pnpm clean && tsup",
|
|
168
|
-
"check:exports": "attw --pack . --profile strict",
|
|
169
|
-
"check:published": "node scripts/check-published-surface.mjs",
|
|
170
|
-
"clean": "rm -rf dist coverage",
|
|
171
|
-
"lint": "eslint src",
|
|
172
|
-
"lint:fix": "eslint src --fix",
|
|
173
|
-
"mutation": "stryker run",
|
|
174
|
-
"mutation:dry-run": "stryker run --dryRunOnly",
|
|
175
|
-
"mutation:incremental": "stryker run --incremental",
|
|
176
|
-
"release": "pnpm publish --provenance",
|
|
177
|
-
"size": "node scripts/check-size.mjs",
|
|
178
|
-
"test": "jest",
|
|
179
|
-
"test:all": "pnpm test && pnpm test:e2e",
|
|
180
|
-
"test:cov": "jest --config jest.coverage.config.ts --coverage",
|
|
181
|
-
"test:cov:all": "jest --config jest.coverage.config.ts --coverage",
|
|
182
|
-
"test:e2e": "jest --config jest.e2e.config.ts",
|
|
183
|
-
"test:e2e:cross-instance": "jest --config jest.e2e.cross-instance.config.ts --runInBand",
|
|
184
|
-
"test:watch": "jest --watch",
|
|
185
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.server.json"
|
|
186
217
|
}
|
|
187
|
-
}
|
|
218
|
+
}
|