tempest.games 0.2.89 → 0.2.91
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 +14 -0
- package/app/assets/{index-QD24YUgJ.js → index-Dgr9mfA0.js} +22 -22
- package/app/index.html +1 -1
- package/bin/backend.bun.js +1646 -1651
- package/bin/backend.worker.game.bun.js +6 -13
- package/bin/backend.worker.tribunal.bun.js +93 -100
- package/bin/frontend.bun.js +89 -96
- package/bin/setup-db.bun.js +52 -52
- package/package.json +9 -9
|
@@ -2148,15 +2148,9 @@ var subscribeToRootDependency = (target, selector, atom) => {
|
|
|
2148
2148
|
};
|
|
2149
2149
|
function subscribeToState(store, token, key, handleUpdate) {
|
|
2150
2150
|
function safelyHandleUpdate(update) {
|
|
2151
|
-
if (store.operation.open)
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
const unsubscribe$1 = store.on.operationClose.subscribe(`state subscription ${key}`, () => {
|
|
2155
|
-
unsubscribe$1();
|
|
2156
|
-
handleUpdate(update);
|
|
2157
|
-
});
|
|
2158
|
-
} else
|
|
2159
|
-
handleUpdate(update);
|
|
2151
|
+
if (store.operation.open && state?.type === `atom` && hasRole(state, `tracker:signal`) && `*` + store.operation.token.key === token.key && `inboundTracker` in handleUpdate)
|
|
2152
|
+
return;
|
|
2153
|
+
handleUpdate(update);
|
|
2160
2154
|
}
|
|
2161
2155
|
reduceReference(store, token);
|
|
2162
2156
|
const state = withdraw(store, token);
|
|
@@ -3280,11 +3274,10 @@ var ParentSocket = class extends CustomSocket {
|
|
|
3280
3274
|
});
|
|
3281
3275
|
if (this.proc.pid)
|
|
3282
3276
|
this.id = this.proc.pid?.toString();
|
|
3283
|
-
this.on(`user-joins`, (
|
|
3284
|
-
this.logger.info(`\uD83D\uDC64`, `user`,
|
|
3285
|
-
const userKey = `user::${username}`;
|
|
3277
|
+
this.on(`user-joins`, (userKey) => {
|
|
3278
|
+
this.logger.info(`\uD83D\uDC64`, `user`, userKey, `joined`);
|
|
3286
3279
|
const relay = new SubjectSocket(userKey);
|
|
3287
|
-
this.relays.set(
|
|
3280
|
+
this.relays.set(userKey, relay);
|
|
3288
3281
|
this.logger.info(`\uD83D\uDD17`, `attaching services:`, `[${[...this.relayServices.keys()].join(`, `)}]`);
|
|
3289
3282
|
for (const attachRelay of this.relayServices) {
|
|
3290
3283
|
const cleanupRelay = attachRelay(relay, userKey);
|