svelte-adapter-uws-extensions 0.5.0 → 0.5.1
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 +2 -2
- package/redis/pubsub.js +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-adapter-uws-extensions",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"tag": "latest"
|
|
6
6
|
},
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"node": ">=22.0.0"
|
|
155
155
|
},
|
|
156
156
|
"peerDependencies": {
|
|
157
|
-
"svelte-adapter-uws": "^0.5.
|
|
157
|
+
"svelte-adapter-uws": "^0.5.1"
|
|
158
158
|
},
|
|
159
159
|
"dependencies": {
|
|
160
160
|
"ioredis": "^5.0.0"
|
package/redis/pubsub.js
CHANGED
|
@@ -243,11 +243,14 @@ export function createPubSubBus(client, options = {}) {
|
|
|
243
243
|
get maxPayloadLength() { return platform.maxPayloadLength; },
|
|
244
244
|
bufferedAmount: platform.bufferedAmount.bind(platform),
|
|
245
245
|
// Framework conventions stashed on the source platform by
|
|
246
|
-
// app init code (e.g. `platform.replay = createReplay(...)
|
|
247
|
-
// must survive the wrap so
|
|
248
|
-
// can discover them on the
|
|
249
|
-
// post-wrap reassignment
|
|
246
|
+
// app init code (e.g. `platform.replay = createReplay(...)`,
|
|
247
|
+
// `platform.redis = ioredisClient`) must survive the wrap so
|
|
248
|
+
// downstream framework auto-routing can discover them on the
|
|
249
|
+
// wrapped seam too. Live getters so post-wrap reassignment
|
|
250
|
+
// propagates.
|
|
250
251
|
get replay() { return platform.replay; },
|
|
252
|
+
get redis() { return platform.redis; },
|
|
253
|
+
get presence() { return platform.presence; },
|
|
251
254
|
topic(t) {
|
|
252
255
|
return {
|
|
253
256
|
publish(event, data) { wrapped.publish(t, event, data); },
|