@jskit-ai/realtime 0.1.147 → 0.1.149

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/realtime",
3
- "version": "0.1.147",
3
+ "version": "0.1.149",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -15,8 +15,8 @@
15
15
  "./client/runtime": "./src/client/runtime.js"
16
16
  },
17
17
  "dependencies": {
18
- "@jskit-ai/kernel": "0.1.150",
19
- "@jskit-ai/shell-web": "0.1.154",
18
+ "@jskit-ai/kernel": "0.1.152",
19
+ "@jskit-ai/shell-web": "0.1.156",
20
20
  "@socket.io/redis-adapter": "^8.3.0",
21
21
  "redis": "^5.8.2",
22
22
  "socket.io": "^4.8.3",
@@ -118,8 +118,8 @@
118
118
  "mutations": {
119
119
  "dependencies": {
120
120
  "runtime": {
121
- "@jskit-ai/kernel": "0.1.150",
122
- "@jskit-ai/shell-web": "0.1.154",
121
+ "@jskit-ai/kernel": "0.1.152",
122
+ "@jskit-ai/shell-web": "0.1.156",
123
123
  "@socket.io/redis-adapter": "^8.3.0",
124
124
  "redis": "^5.8.2",
125
125
  "socket.io": "^4.8.3",
@@ -504,7 +504,7 @@ async function resolveSocketActorId(authService, socket) {
504
504
  if (!authResult || authResult.authenticated !== true) {
505
505
  return null;
506
506
  }
507
- return normalizeRecordId(authResult?.profile?.id, { fallback: null });
507
+ return normalizeRecordId(authResult?.actor?.id, { fallback: null });
508
508
  }
509
509
 
510
510
  async function resolveActorWorkspaceIds(workspaceMembershipsRepository, actorId) {
@@ -157,7 +157,7 @@ test("RealtimeServiceProvider boot authenticates sockets from handshake cookies
157
157
  authenticateCalls.push(input);
158
158
  return {
159
159
  authenticated: true,
160
- profile: {
160
+ actor: {
161
161
  id: 9
162
162
  }
163
163
  };