@domain.js/main 0.3.23 → 0.3.24

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.
@@ -116,15 +116,12 @@ function BridgeSocket(io, domain) {
116
116
  try {
117
117
  if (!client.profile || !client.inited)
118
118
  return;
119
- const res = await entrance({ roomId, ...client.profile }, client);
119
+ const res = await entrance({ ...client.profile, roomId }, client);
120
120
  client.profile.roomId = roomId;
121
121
  client.roomId = roomId;
122
122
  client.emit("entranced", res);
123
123
  }
124
124
  catch (e) {
125
- client.roomId = undefined;
126
- if (client.profile)
127
- client.profile.roomId = undefined;
128
125
  if (e instanceof MyError) {
129
126
  client.emit("internalError", e.message, e.code || "unknown");
130
127
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {