@timardex/cluemart-shared 1.5.46 → 1.5.48
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/dist/{chunk-YMR3FUUS.mjs → chunk-466GQ5SI.mjs} +6 -2
- package/dist/{chunk-YMR3FUUS.mjs.map → chunk-466GQ5SI.mjs.map} +1 -1
- package/dist/{chunk-5LQJSAW4.mjs → chunk-EJMSNCV3.mjs} +8 -7
- package/dist/{chunk-5LQJSAW4.mjs.map → chunk-EJMSNCV3.mjs.map} +1 -1
- package/dist/graphql/index.cjs +7 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +4 -3
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +11 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Dearc1Z1.d.ts → post-CbMvLv2F.d.ts} +4 -2
- package/dist/{post-Ca2z3WFl.d.mts → post-Cn44Ciiw.d.mts} +4 -2
- package/dist/types/index.cjs +7 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +5 -3
- package/package.json +1 -1
package/dist/graphql/index.cjs
CHANGED
|
@@ -3430,12 +3430,13 @@ var GET_GAME = import_client55.gql`
|
|
|
3430
3430
|
}
|
|
3431
3431
|
${GAME_FIELDS_FRAGMENT}
|
|
3432
3432
|
`;
|
|
3433
|
-
var
|
|
3434
|
-
query
|
|
3435
|
-
|
|
3433
|
+
var GET_GAME_LEADERBOARD = import_client55.gql`
|
|
3434
|
+
query getGameLeaderboard {
|
|
3435
|
+
gameLeaderboard {
|
|
3436
3436
|
gameHistory {
|
|
3437
3437
|
...GameHistoryFields
|
|
3438
3438
|
}
|
|
3439
|
+
overallPoints
|
|
3439
3440
|
owner {
|
|
3440
3441
|
...OwnerFields
|
|
3441
3442
|
}
|
|
@@ -3778,11 +3779,11 @@ var useGetGame = (_id) => {
|
|
|
3778
3779
|
return { error, game, loading, refetch };
|
|
3779
3780
|
};
|
|
3780
3781
|
var useGetGameLeaderboard = () => {
|
|
3781
|
-
const { loading, error, data, refetch } = (0, import_client66.useQuery)(
|
|
3782
|
+
const { loading, error, data, refetch } = (0, import_client66.useQuery)(GET_GAME_LEADERBOARD, {
|
|
3782
3783
|
fetchPolicy: "network-only"
|
|
3783
3784
|
});
|
|
3784
|
-
const
|
|
3785
|
-
return { error,
|
|
3785
|
+
const gameLeaderboard = data?.gameLeaderboard || [];
|
|
3786
|
+
return { error, gameLeaderboard, loading, refetch };
|
|
3786
3787
|
};
|
|
3787
3788
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3788
3789
|
0 && (module.exports = {
|