diff --git a/package-lock.json b/package-lock.json index 87ed1a137..800d8f807 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "@betarena/ad-engine": "0.0.47", - "@betarena/scores-lib": "3.1.7", + "@betarena/scores-lib": "3.1.8", "@lukeed/uuid": "2.0.1", "@metamask/sdk": "0.1.0", "@moralisweb3/client-firebase-auth-utils": "2.18.4", @@ -903,9 +903,9 @@ } }, "node_modules/@betarena/scores-lib": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@betarena/scores-lib/-/scores-lib-3.1.7.tgz", - "integrity": "sha512-Yh4cZuJRuel/V4XegbngX5WS6g2mzICZgPBkT63jBAI15MOUCjBgEyPuq+ixBxq+ootFtGtdH5wrNyR1XWAaNg==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@betarena/scores-lib/-/scores-lib-3.1.8.tgz", + "integrity": "sha512-dZro2u5ar9fgV6mz/xzPDLDtIyOvGnc59YSbDIHDob1mGp21KUH6f2/esnm6iSd9Q1YUhhJhGjBQgB4zwfqzwg==", "dependencies": { "chalk": "5.3.0", "firebase": "9.17.2", diff --git a/package.json b/package.json index 344d998e0..e89e445fa 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "dependencies": { "@betarena/ad-engine": "0.0.47", - "@betarena/scores-lib": "3.1.7", + "@betarena/scores-lib": "3.1.8", "@lukeed/uuid": "2.0.1", "@metamask/sdk": "0.1.0", "@moralisweb3/client-firebase-auth-utils": "2.18.4", diff --git a/src/lib/sveltekit/load/load.player.ts b/src/lib/sveltekit/load/load.player.ts index 3e7f84cfb..928664268 100644 --- a/src/lib/sveltekit/load/load.player.ts +++ b/src/lib/sveltekit/load/load.player.ts @@ -14,19 +14,19 @@ // #region ➤ 📦 Package Imports -import { LoadEvent } from '@sveltejs/kit'; import { ERROR_CODE_INVALID, PRELOAD_ERROR_MSG_PLAYER, dlog, dlogv2 } from '$lib/utils/debug'; -import { preloadExitLogic, promiseUrlsPreload, promiseValidUrlCheck } from '$lib/utils/navigation.js'; import { tryCatch } from '$lib/utils/miscellenous.js'; +import { preloadExitLogic, promiseUrlsPreload, promiseValidUrlCheck } from '$lib/utils/navigation.js'; import type { Main_Data, Opengraph_Data, Twitter_Data } from '@betarena/scores-lib/types/_HASURA_.js'; import type { B_PSEO_D, B_PSEO_T } from '@betarena/scores-lib/types/player-seo.js'; import type { B_PSTAT_T } from '@betarena/scores-lib/types/player-statistics.js'; import type { B_PTEAM_D, B_PTEAM_T } from '@betarena/scores-lib/types/player-team.js'; import type { B_SAP_D1, B_SAP_D2, B_SAP_PP_D, B_SAP_PP_T } from '@betarena/scores-lib/types/seo-pages'; -import type { B_PFIX_D, B_PFIX_T } from 'node_modules/@betarena/scores-lib/types/player-fixtures'; -import type { B_PPRO_T } from 'node_modules/@betarena/scores-lib/types/player-profile'; +import type { ServerLoadEvent } from '@sveltejs/kit'; +import type { B_PFIX_D, B_PFIX_T } from '@betarena/scores-lib/types/player-fixtures'; +import type { B_PPRO_T } from '@betarena/scores-lib/types/player-profile'; // #endregion ➤ 📦 Package Imports @@ -92,7 +92,7 @@ type IPreloadData2 = */ export async function main ( - event: LoadEvent, + event: ServerLoadEvent, parentData: { langParam: string diff --git a/src/routes/(scores)/[[lang=lang]]/[player=player]/[...player_fill]/+page.ts b/src/routes/(scores)/[[lang=lang]]/[player=player]/[...player_fill]/+page.server.ts similarity index 100% rename from src/routes/(scores)/[[lang=lang]]/[player=player]/[...player_fill]/+page.ts rename to src/routes/(scores)/[[lang=lang]]/[player=player]/[...player_fill]/+page.server.ts