tempest.games 0.2.76 → 0.2.77
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 +7 -0
- package/app/assets/{index-C1BYFcMH.js → index-B3RQO18a.js} +6 -6
- package/app/index.html +1 -1
- package/bin/backend.bun.js +25 -22
- package/bin/backend.worker.game.bun.js +17 -14
- package/bin/backend.worker.tribunal.bun.js +17 -14
- package/bin/frontend.bun.js +17 -14
- package/package.json +4 -4
package/app/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>TEMPEST</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-B3RQO18a.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-DZ_4vJcE.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/bin/backend.bun.js
CHANGED
|
@@ -50791,7 +50791,7 @@ var Join = class {
|
|
|
50791
50791
|
}
|
|
50792
50792
|
store;
|
|
50793
50793
|
[Symbol.dispose]() {}
|
|
50794
|
-
constructor(
|
|
50794
|
+
constructor(store, options) {
|
|
50795
50795
|
this.store = store;
|
|
50796
50796
|
this.options = options;
|
|
50797
50797
|
this.store.miscResources.set(`join:${options.key}`, this);
|
|
@@ -50966,7 +50966,7 @@ var Join = class {
|
|
|
50966
50966
|
}
|
|
50967
50967
|
};
|
|
50968
50968
|
function createJoin(store, options) {
|
|
50969
|
-
store.joins.set(options.key, new Join(options));
|
|
50969
|
+
store.joins.set(options.key, new Join(store, options));
|
|
50970
50970
|
return {
|
|
50971
50971
|
key: options.key,
|
|
50972
50972
|
type: `join`,
|
|
@@ -50975,20 +50975,19 @@ function createJoin(store, options) {
|
|
|
50975
50975
|
cardinality: options.cardinality
|
|
50976
50976
|
};
|
|
50977
50977
|
}
|
|
50978
|
-
function getJoin(
|
|
50978
|
+
function getJoin(store, token) {
|
|
50979
50979
|
let myJoin = store.joins.get(token.key);
|
|
50980
50980
|
if (myJoin === undefined) {
|
|
50981
50981
|
const rootJoin = IMPLICIT.STORE.joins.get(token.key);
|
|
50982
50982
|
if (rootJoin === undefined)
|
|
50983
50983
|
throw new Error(`Join "${token.key}" not found in store "${store.config.name}"`);
|
|
50984
|
-
|
|
50985
|
-
myJoin = new Join(rootJoin.options, root);
|
|
50984
|
+
myJoin = new Join(eldest(store), rootJoin.options);
|
|
50986
50985
|
store.joins.set(token.key, myJoin);
|
|
50987
50986
|
}
|
|
50988
50987
|
return myJoin;
|
|
50989
50988
|
}
|
|
50990
|
-
function editRelationsInStore(token, change
|
|
50991
|
-
const myJoin = getJoin(
|
|
50989
|
+
function editRelationsInStore(store, token, change) {
|
|
50990
|
+
const myJoin = getJoin(store, token);
|
|
50992
50991
|
const target = newest(store);
|
|
50993
50992
|
if (isChildStore(target)) {
|
|
50994
50993
|
const { toolkit } = target.transactionMeta;
|
|
@@ -50998,8 +50997,8 @@ function editRelationsInStore(token, change, store) {
|
|
|
50998
50997
|
} else
|
|
50999
50998
|
change(myJoin.relations);
|
|
51000
50999
|
}
|
|
51001
|
-
function findRelationsInStore(token, key
|
|
51002
|
-
const myJoin = getJoin(
|
|
51000
|
+
function findRelationsInStore(store, token, key) {
|
|
51001
|
+
const myJoin = getJoin(store, token);
|
|
51003
51002
|
let relations;
|
|
51004
51003
|
switch (token.cardinality) {
|
|
51005
51004
|
case `1:1`: {
|
|
@@ -51049,8 +51048,11 @@ function findRelationsInStore(token, key, store) {
|
|
|
51049
51048
|
}
|
|
51050
51049
|
return relations;
|
|
51051
51050
|
}
|
|
51052
|
-
function getInternalRelationsFromStore(token,
|
|
51053
|
-
|
|
51051
|
+
function getInternalRelationsFromStore(store, token, split) {
|
|
51052
|
+
const myJoin = getJoin(store, token);
|
|
51053
|
+
if (split === `split`)
|
|
51054
|
+
return [myJoin.relatedKeysAtoms, myJoin.relatedKeysAtoms];
|
|
51055
|
+
return myJoin.relatedKeysAtoms;
|
|
51054
51056
|
}
|
|
51055
51057
|
|
|
51056
51058
|
// ../../packages/atom.io/dist/main/index.js
|
|
@@ -51066,8 +51068,8 @@ function getState(...params) {
|
|
|
51066
51068
|
function join(options) {
|
|
51067
51069
|
return createJoin(IMPLICIT.STORE, options);
|
|
51068
51070
|
}
|
|
51069
|
-
function getInternalRelations(token) {
|
|
51070
|
-
return getInternalRelationsFromStore(token,
|
|
51071
|
+
function getInternalRelations(token, split) {
|
|
51072
|
+
return getInternalRelationsFromStore(IMPLICIT.STORE, token, split);
|
|
51071
51073
|
}
|
|
51072
51074
|
var PRETTY_TOKEN_TYPES = {
|
|
51073
51075
|
atom_family: `atom family`,
|
|
@@ -59485,7 +59487,8 @@ var usersInRooms = join({
|
|
|
59485
59487
|
var usersInMyRoomView = selectorFamily({
|
|
59486
59488
|
key: `usersInMyRoomView`,
|
|
59487
59489
|
get: (myUsername) => ({ find }) => {
|
|
59488
|
-
|
|
59490
|
+
const [, roomsOfUsersAtoms] = getInternalRelations(usersInRooms, `split`);
|
|
59491
|
+
return [find(roomsOfUsersAtoms, myUsername)];
|
|
59489
59492
|
}
|
|
59490
59493
|
});
|
|
59491
59494
|
|
|
@@ -67479,9 +67482,9 @@ function summarizeAccountAction({
|
|
|
67479
67482
|
return { subjectExternal, subjectInternal, summary };
|
|
67480
67483
|
}
|
|
67481
67484
|
|
|
67482
|
-
// ../../node_modules/.pnpm/resend@6.5.
|
|
67485
|
+
// ../../node_modules/.pnpm/resend@6.5.2_@react-email+render@2.0.0_react-dom@19.2.0_react@19.2.0__react@19.2.0_/node_modules/resend/dist/index.mjs
|
|
67483
67486
|
var import_svix = __toESM(require_dist5(), 1);
|
|
67484
|
-
var version2 = "6.5.
|
|
67487
|
+
var version2 = "6.5.2";
|
|
67485
67488
|
function buildPaginationQuery(options) {
|
|
67486
67489
|
const searchParams = new URLSearchParams;
|
|
67487
67490
|
if (options.limit !== undefined)
|
|
@@ -84432,9 +84435,9 @@ var sessionMiddleware = async (socket, next2) => {
|
|
|
84432
84435
|
if (userSessions?.has(user.id, sessionKey)) {
|
|
84433
84436
|
const socketState = findInStore(IMPLICIT.STORE, socketAtoms, socketKey);
|
|
84434
84437
|
setIntoStore(IMPLICIT.STORE, socketState, socket);
|
|
84435
|
-
editRelationsInStore(usersOfSockets, (relations) => {
|
|
84438
|
+
editRelationsInStore(IMPLICIT.STORE, usersOfSockets, (relations) => {
|
|
84436
84439
|
relations.set(userKey, socketKey);
|
|
84437
|
-
}
|
|
84440
|
+
});
|
|
84438
84441
|
setIntoStore(IMPLICIT.STORE, userKeysAtom, (index) => index.add(userKey));
|
|
84439
84442
|
setIntoStore(IMPLICIT.STORE, socketKeysAtom, (index) => index.add(socketKey));
|
|
84440
84443
|
logger.info(`${username} connected on ${socket.id}`);
|
|
@@ -84446,7 +84449,7 @@ var sessionMiddleware = async (socket, next2) => {
|
|
|
84446
84449
|
};
|
|
84447
84450
|
var serveSocket = (socket) => {
|
|
84448
84451
|
const socketKey = `socket::${socket.id}`;
|
|
84449
|
-
const userOfSocketSelector = findRelationsInStore(usersOfSockets, socketKey
|
|
84452
|
+
const userOfSocketSelector = findRelationsInStore(IMPLICIT.STORE, usersOfSockets, socketKey).userKeyOfSocket;
|
|
84450
84453
|
const userKeyOfSocket = getFromStore(IMPLICIT.STORE, userOfSocketSelector);
|
|
84451
84454
|
const rawUserId = userKeyOfSocket?.replace(/^user::/, ``);
|
|
84452
84455
|
socket.on(`changeUsername`, async (username) => {
|
|
@@ -84457,11 +84460,11 @@ var serveSocket = (socket) => {
|
|
|
84457
84460
|
}
|
|
84458
84461
|
});
|
|
84459
84462
|
socket.on(`disconnect`, () => {
|
|
84460
|
-
const userKeyState = findRelationsInStore(usersOfSockets, socketKey
|
|
84463
|
+
const userKeyState = findRelationsInStore(IMPLICIT.STORE, usersOfSockets, socketKey).userKeyOfSocket;
|
|
84461
84464
|
const userKey = getFromStore(IMPLICIT.STORE, userKeyState);
|
|
84462
|
-
editRelationsInStore(usersOfSockets, (relations) => {
|
|
84465
|
+
editRelationsInStore(IMPLICIT.STORE, usersOfSockets, (relations) => {
|
|
84463
84466
|
relations.delete(socketKey);
|
|
84464
|
-
}
|
|
84467
|
+
});
|
|
84465
84468
|
if (userKey) {
|
|
84466
84469
|
setIntoStore(IMPLICIT.STORE, userKeysAtom, (index) => (index.delete(userKey), index));
|
|
84467
84470
|
}
|
|
@@ -42,8 +42,8 @@ function getState(...params) {
|
|
|
42
42
|
function join(options) {
|
|
43
43
|
return createJoin(IMPLICIT.STORE, options);
|
|
44
44
|
}
|
|
45
|
-
function getInternalRelations(token) {
|
|
46
|
-
return getInternalRelationsFromStore(token,
|
|
45
|
+
function getInternalRelations(token, split) {
|
|
46
|
+
return getInternalRelationsFromStore(IMPLICIT.STORE, token, split);
|
|
47
47
|
}
|
|
48
48
|
var PRETTY_TOKEN_TYPES = {
|
|
49
49
|
atom_family: `atom family`,
|
|
@@ -2615,7 +2615,7 @@ var Join = class {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
store;
|
|
2617
2617
|
[Symbol.dispose]() {}
|
|
2618
|
-
constructor(
|
|
2618
|
+
constructor(store, options) {
|
|
2619
2619
|
this.store = store;
|
|
2620
2620
|
this.options = options;
|
|
2621
2621
|
this.store.miscResources.set(`join:${options.key}`, this);
|
|
@@ -2790,7 +2790,7 @@ var Join = class {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
};
|
|
2792
2792
|
function createJoin(store, options) {
|
|
2793
|
-
store.joins.set(options.key, new Join(options));
|
|
2793
|
+
store.joins.set(options.key, new Join(store, options));
|
|
2794
2794
|
return {
|
|
2795
2795
|
key: options.key,
|
|
2796
2796
|
type: `join`,
|
|
@@ -2799,20 +2799,19 @@ function createJoin(store, options) {
|
|
|
2799
2799
|
cardinality: options.cardinality
|
|
2800
2800
|
};
|
|
2801
2801
|
}
|
|
2802
|
-
function getJoin(
|
|
2802
|
+
function getJoin(store, token) {
|
|
2803
2803
|
let myJoin = store.joins.get(token.key);
|
|
2804
2804
|
if (myJoin === undefined) {
|
|
2805
2805
|
const rootJoin = IMPLICIT.STORE.joins.get(token.key);
|
|
2806
2806
|
if (rootJoin === undefined)
|
|
2807
2807
|
throw new Error(`Join "${token.key}" not found in store "${store.config.name}"`);
|
|
2808
|
-
|
|
2809
|
-
myJoin = new Join(rootJoin.options, root);
|
|
2808
|
+
myJoin = new Join(eldest(store), rootJoin.options);
|
|
2810
2809
|
store.joins.set(token.key, myJoin);
|
|
2811
2810
|
}
|
|
2812
2811
|
return myJoin;
|
|
2813
2812
|
}
|
|
2814
|
-
function editRelationsInStore(token, change
|
|
2815
|
-
const myJoin = getJoin(
|
|
2813
|
+
function editRelationsInStore(store, token, change) {
|
|
2814
|
+
const myJoin = getJoin(store, token);
|
|
2816
2815
|
const target = newest(store);
|
|
2817
2816
|
if (isChildStore(target)) {
|
|
2818
2817
|
const { toolkit } = target.transactionMeta;
|
|
@@ -2822,8 +2821,8 @@ function editRelationsInStore(token, change, store) {
|
|
|
2822
2821
|
} else
|
|
2823
2822
|
change(myJoin.relations);
|
|
2824
2823
|
}
|
|
2825
|
-
function findRelationsInStore(token, key
|
|
2826
|
-
const myJoin = getJoin(
|
|
2824
|
+
function findRelationsInStore(store, token, key) {
|
|
2825
|
+
const myJoin = getJoin(store, token);
|
|
2827
2826
|
let relations;
|
|
2828
2827
|
switch (token.cardinality) {
|
|
2829
2828
|
case `1:1`: {
|
|
@@ -2873,8 +2872,11 @@ function findRelationsInStore(token, key, store) {
|
|
|
2873
2872
|
}
|
|
2874
2873
|
return relations;
|
|
2875
2874
|
}
|
|
2876
|
-
function getInternalRelationsFromStore(token,
|
|
2877
|
-
|
|
2875
|
+
function getInternalRelationsFromStore(store, token, split) {
|
|
2876
|
+
const myJoin = getJoin(store, token);
|
|
2877
|
+
if (split === `split`)
|
|
2878
|
+
return [myJoin.relatedKeysAtoms, myJoin.relatedKeysAtoms];
|
|
2879
|
+
return myJoin.relatedKeysAtoms;
|
|
2878
2880
|
}
|
|
2879
2881
|
|
|
2880
2882
|
// ../../packages/atom.io/dist/realtime/index.js
|
|
@@ -2957,7 +2959,8 @@ var usersInRooms = join({
|
|
|
2957
2959
|
var usersInMyRoomView = selectorFamily({
|
|
2958
2960
|
key: `usersInMyRoomView`,
|
|
2959
2961
|
get: (myUsername) => ({ find }) => {
|
|
2960
|
-
|
|
2962
|
+
const [, roomsOfUsersAtoms] = getInternalRelations(usersInRooms, `split`);
|
|
2963
|
+
return [find(roomsOfUsersAtoms, myUsername)];
|
|
2961
2964
|
}
|
|
2962
2965
|
});
|
|
2963
2966
|
|
|
@@ -160,8 +160,8 @@ function getState(...params) {
|
|
|
160
160
|
function join(options) {
|
|
161
161
|
return createJoin(IMPLICIT.STORE, options);
|
|
162
162
|
}
|
|
163
|
-
function getInternalRelations(token) {
|
|
164
|
-
return getInternalRelationsFromStore(token,
|
|
163
|
+
function getInternalRelations(token, split) {
|
|
164
|
+
return getInternalRelationsFromStore(IMPLICIT.STORE, token, split);
|
|
165
165
|
}
|
|
166
166
|
var PRETTY_TOKEN_TYPES = {
|
|
167
167
|
atom_family: `atom family`,
|
|
@@ -2733,7 +2733,7 @@ var Join = class {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
store;
|
|
2735
2735
|
[Symbol.dispose]() {}
|
|
2736
|
-
constructor(
|
|
2736
|
+
constructor(store, options) {
|
|
2737
2737
|
this.store = store;
|
|
2738
2738
|
this.options = options;
|
|
2739
2739
|
this.store.miscResources.set(`join:${options.key}`, this);
|
|
@@ -2908,7 +2908,7 @@ var Join = class {
|
|
|
2908
2908
|
}
|
|
2909
2909
|
};
|
|
2910
2910
|
function createJoin(store, options) {
|
|
2911
|
-
store.joins.set(options.key, new Join(options));
|
|
2911
|
+
store.joins.set(options.key, new Join(store, options));
|
|
2912
2912
|
return {
|
|
2913
2913
|
key: options.key,
|
|
2914
2914
|
type: `join`,
|
|
@@ -2917,20 +2917,19 @@ function createJoin(store, options) {
|
|
|
2917
2917
|
cardinality: options.cardinality
|
|
2918
2918
|
};
|
|
2919
2919
|
}
|
|
2920
|
-
function getJoin(
|
|
2920
|
+
function getJoin(store, token) {
|
|
2921
2921
|
let myJoin = store.joins.get(token.key);
|
|
2922
2922
|
if (myJoin === undefined) {
|
|
2923
2923
|
const rootJoin = IMPLICIT.STORE.joins.get(token.key);
|
|
2924
2924
|
if (rootJoin === undefined)
|
|
2925
2925
|
throw new Error(`Join "${token.key}" not found in store "${store.config.name}"`);
|
|
2926
|
-
|
|
2927
|
-
myJoin = new Join(rootJoin.options, root);
|
|
2926
|
+
myJoin = new Join(eldest(store), rootJoin.options);
|
|
2928
2927
|
store.joins.set(token.key, myJoin);
|
|
2929
2928
|
}
|
|
2930
2929
|
return myJoin;
|
|
2931
2930
|
}
|
|
2932
|
-
function editRelationsInStore(token, change
|
|
2933
|
-
const myJoin = getJoin(
|
|
2931
|
+
function editRelationsInStore(store, token, change) {
|
|
2932
|
+
const myJoin = getJoin(store, token);
|
|
2934
2933
|
const target = newest(store);
|
|
2935
2934
|
if (isChildStore(target)) {
|
|
2936
2935
|
const { toolkit } = target.transactionMeta;
|
|
@@ -2940,8 +2939,8 @@ function editRelationsInStore(token, change, store) {
|
|
|
2940
2939
|
} else
|
|
2941
2940
|
change(myJoin.relations);
|
|
2942
2941
|
}
|
|
2943
|
-
function findRelationsInStore(token, key
|
|
2944
|
-
const myJoin = getJoin(
|
|
2942
|
+
function findRelationsInStore(store, token, key) {
|
|
2943
|
+
const myJoin = getJoin(store, token);
|
|
2945
2944
|
let relations;
|
|
2946
2945
|
switch (token.cardinality) {
|
|
2947
2946
|
case `1:1`: {
|
|
@@ -2991,8 +2990,11 @@ function findRelationsInStore(token, key, store) {
|
|
|
2991
2990
|
}
|
|
2992
2991
|
return relations;
|
|
2993
2992
|
}
|
|
2994
|
-
function getInternalRelationsFromStore(token,
|
|
2995
|
-
|
|
2993
|
+
function getInternalRelationsFromStore(store, token, split) {
|
|
2994
|
+
const myJoin = getJoin(store, token);
|
|
2995
|
+
if (split === `split`)
|
|
2996
|
+
return [myJoin.relatedKeysAtoms, myJoin.relatedKeysAtoms];
|
|
2997
|
+
return myJoin.relatedKeysAtoms;
|
|
2996
2998
|
}
|
|
2997
2999
|
|
|
2998
3000
|
// ../../packages/atom.io/dist/realtime/index.js
|
|
@@ -3075,7 +3077,8 @@ var usersInRooms = join({
|
|
|
3075
3077
|
var usersInMyRoomView = selectorFamily({
|
|
3076
3078
|
key: `usersInMyRoomView`,
|
|
3077
3079
|
get: (myUsername) => ({ find }) => {
|
|
3078
|
-
|
|
3080
|
+
const [, roomsOfUsersAtoms] = getInternalRelations(usersInRooms, `split`);
|
|
3081
|
+
return [find(roomsOfUsersAtoms, myUsername)];
|
|
3079
3082
|
}
|
|
3080
3083
|
});
|
|
3081
3084
|
|
package/bin/frontend.bun.js
CHANGED
|
@@ -8159,8 +8159,8 @@ function getState(...params) {
|
|
|
8159
8159
|
function join(options) {
|
|
8160
8160
|
return createJoin(IMPLICIT.STORE, options);
|
|
8161
8161
|
}
|
|
8162
|
-
function getInternalRelations(token) {
|
|
8163
|
-
return getInternalRelationsFromStore(token,
|
|
8162
|
+
function getInternalRelations(token, split) {
|
|
8163
|
+
return getInternalRelationsFromStore(IMPLICIT.STORE, token, split);
|
|
8164
8164
|
}
|
|
8165
8165
|
var PRETTY_TOKEN_TYPES = {
|
|
8166
8166
|
atom_family: `atom family`,
|
|
@@ -10732,7 +10732,7 @@ var Join = class {
|
|
|
10732
10732
|
}
|
|
10733
10733
|
store;
|
|
10734
10734
|
[Symbol.dispose]() {}
|
|
10735
|
-
constructor(
|
|
10735
|
+
constructor(store, options) {
|
|
10736
10736
|
this.store = store;
|
|
10737
10737
|
this.options = options;
|
|
10738
10738
|
this.store.miscResources.set(`join:${options.key}`, this);
|
|
@@ -10907,7 +10907,7 @@ var Join = class {
|
|
|
10907
10907
|
}
|
|
10908
10908
|
};
|
|
10909
10909
|
function createJoin(store, options) {
|
|
10910
|
-
store.joins.set(options.key, new Join(options));
|
|
10910
|
+
store.joins.set(options.key, new Join(store, options));
|
|
10911
10911
|
return {
|
|
10912
10912
|
key: options.key,
|
|
10913
10913
|
type: `join`,
|
|
@@ -10916,20 +10916,19 @@ function createJoin(store, options) {
|
|
|
10916
10916
|
cardinality: options.cardinality
|
|
10917
10917
|
};
|
|
10918
10918
|
}
|
|
10919
|
-
function getJoin(
|
|
10919
|
+
function getJoin(store, token) {
|
|
10920
10920
|
let myJoin = store.joins.get(token.key);
|
|
10921
10921
|
if (myJoin === undefined) {
|
|
10922
10922
|
const rootJoin = IMPLICIT.STORE.joins.get(token.key);
|
|
10923
10923
|
if (rootJoin === undefined)
|
|
10924
10924
|
throw new Error(`Join "${token.key}" not found in store "${store.config.name}"`);
|
|
10925
|
-
|
|
10926
|
-
myJoin = new Join(rootJoin.options, root2);
|
|
10925
|
+
myJoin = new Join(eldest(store), rootJoin.options);
|
|
10927
10926
|
store.joins.set(token.key, myJoin);
|
|
10928
10927
|
}
|
|
10929
10928
|
return myJoin;
|
|
10930
10929
|
}
|
|
10931
|
-
function editRelationsInStore(token, change
|
|
10932
|
-
const myJoin = getJoin(
|
|
10930
|
+
function editRelationsInStore(store, token, change) {
|
|
10931
|
+
const myJoin = getJoin(store, token);
|
|
10933
10932
|
const target = newest(store);
|
|
10934
10933
|
if (isChildStore(target)) {
|
|
10935
10934
|
const { toolkit } = target.transactionMeta;
|
|
@@ -10939,8 +10938,8 @@ function editRelationsInStore(token, change, store) {
|
|
|
10939
10938
|
} else
|
|
10940
10939
|
change(myJoin.relations);
|
|
10941
10940
|
}
|
|
10942
|
-
function findRelationsInStore(token, key
|
|
10943
|
-
const myJoin = getJoin(
|
|
10941
|
+
function findRelationsInStore(store, token, key) {
|
|
10942
|
+
const myJoin = getJoin(store, token);
|
|
10944
10943
|
let relations;
|
|
10945
10944
|
switch (token.cardinality) {
|
|
10946
10945
|
case `1:1`: {
|
|
@@ -10990,8 +10989,11 @@ function findRelationsInStore(token, key, store) {
|
|
|
10990
10989
|
}
|
|
10991
10990
|
return relations;
|
|
10992
10991
|
}
|
|
10993
|
-
function getInternalRelationsFromStore(token,
|
|
10994
|
-
|
|
10992
|
+
function getInternalRelationsFromStore(store, token, split) {
|
|
10993
|
+
const myJoin = getJoin(store, token);
|
|
10994
|
+
if (split === `split`)
|
|
10995
|
+
return [myJoin.relatedKeysAtoms, myJoin.relatedKeysAtoms];
|
|
10996
|
+
return myJoin.relatedKeysAtoms;
|
|
10995
10997
|
}
|
|
10996
10998
|
|
|
10997
10999
|
// ../../packages/atom.io/dist/introspection/index.js
|
|
@@ -11433,7 +11435,8 @@ var usersInRooms = join({
|
|
|
11433
11435
|
var usersInMyRoomView = selectorFamily({
|
|
11434
11436
|
key: `usersInMyRoomView`,
|
|
11435
11437
|
get: (myUsername) => ({ find }) => {
|
|
11436
|
-
|
|
11438
|
+
const [, roomsOfUsersAtoms] = getInternalRelations(usersInRooms, `split`);
|
|
11439
|
+
return [find(roomsOfUsersAtoms, myUsername)];
|
|
11437
11440
|
}
|
|
11438
11441
|
});
|
|
11439
11442
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest.games",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.77",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"react": "19.2.0",
|
|
42
42
|
"react-dom": "19.2.0",
|
|
43
43
|
"react-email": "5.0.4",
|
|
44
|
-
"resend": "6.5.
|
|
44
|
+
"resend": "6.5.2",
|
|
45
45
|
"safegen": "0.8.2",
|
|
46
46
|
"socket.io": "4.8.1",
|
|
47
47
|
"socket.io-client": "4.8.1",
|
|
48
|
-
"atom.io": "0.44.
|
|
48
|
+
"atom.io": "0.44.8",
|
|
49
49
|
"safedeposit": "0.1.2",
|
|
50
50
|
"treetrunks": "0.1.5"
|
|
51
51
|
},
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"sass-embedded": "1.93.3",
|
|
70
70
|
"vite": "7.2.2",
|
|
71
71
|
"vitest": "4.0.10",
|
|
72
|
-
"flightdeck": "0.3.
|
|
72
|
+
"flightdeck": "0.3.6",
|
|
73
73
|
"varmint": "0.5.11"
|
|
74
74
|
},
|
|
75
75
|
"scripts": {
|