silgi 0.51.6 → 0.51.7

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.
Files changed (2) hide show
  1. package/dist/silgi.mjs +3 -1
  2. package/package.json +2 -2
package/dist/silgi.mjs CHANGED
@@ -126,7 +126,9 @@ function silgi(config) {
126
126
  let wsInitPromise;
127
127
  async function initWsHooks() {
128
128
  const { _createWSHooks } = await import("./ws.mjs");
129
- wsHooks = _createWSHooks(routerDef);
129
+ wsHooks = _createWSHooks(routerDef, { context: (peer) => {
130
+ return contextFactory(peer?.request instanceof Request ? peer.request : peer);
131
+ } });
130
132
  }
131
133
  const wsPath = prefix ? `${prefix}/_ws` : "/_ws";
132
134
  return async (request) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "silgi",
3
- "version": "0.51.6",
3
+ "version": "0.51.7",
4
4
  "private": false,
5
5
  "description": "The fastest end-to-end type-safe RPC framework for TypeScript — compiled pipelines, single package, every runtime",
6
6
  "keywords": [
@@ -240,7 +240,7 @@
240
240
  "@standard-schema/spec": "^1.1.0",
241
241
  "cookie-es": "^3.1.1",
242
242
  "croner": "^10.0.1",
243
- "crossws": "^0.4.4",
243
+ "crossws": "^0.4.5",
244
244
  "defu": "^6.1.4",
245
245
  "devalue": "^5.6.4",
246
246
  "get-port-please": "^3.2.0",