From c9e0b35272ac4a62da9399d6957eb6c21e0dd840 Mon Sep 17 00:00:00 2001 From: AnthonyFuller <24512050+AnthonyFuller@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:35:58 +0100 Subject: [PATCH] chore: bump server versions --- components/index.ts | 4 ++-- components/menus/menuSystem.ts | 2 +- components/officialServerAuth.ts | 2 +- packaging/extractChallengeData.mjs | 2 +- packaging/extractElusivesChallengeData.mjs | 2 +- packaging/extractFeaturedContracts.mjs | 2 +- static/ServerVersionConfig.json | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/index.ts b/components/index.ts index ee03cf0a..54ed88cf 100644 --- a/components/index.ts +++ b/components/index.ts @@ -306,7 +306,7 @@ app.use( break case "fghi4567xQOCheZIin0pazB47qGUvZw4": case STEAM_NAMESPACE_2021: - req.serverVersion = "8-16" + req.serverVersion = "8-17" break default: res.status(400).json({ message: "no game data" }) @@ -439,7 +439,7 @@ app.use( } if ( - ["6-74", "7-3", "7-17", "8-16"].includes( + ["6-74", "7-3", "7-17", "8-17"].includes( req.serverVersion, ) ) { diff --git a/components/menus/menuSystem.ts b/components/menus/menuSystem.ts index de57bb76..c50c1940 100644 --- a/components/menus/menuSystem.ts +++ b/components/menus/menuSystem.ts @@ -33,7 +33,7 @@ import { SyncBailHook, SyncHook } from "../hooksImpl" const menuSystemPreRouter = Router() const menuSystemRouter = Router() -// /resources-8-16/ +// /resources-8-17/ /** * A class for managing the menu system's fetched JSON data. diff --git a/components/officialServerAuth.ts b/components/officialServerAuth.ts index 49e6244e..1bc114d3 100644 --- a/components/officialServerAuth.ts +++ b/components/officialServerAuth.ts @@ -45,7 +45,7 @@ function createUrlencodedBody(params: Record): string { const requestHeadersH3 = { "User-agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", - Version: "8.15.0", + Version: "8.17.0", } const requestHeadersH2 = { diff --git a/packaging/extractChallengeData.mjs b/packaging/extractChallengeData.mjs index 2683013d..c3c4f897 100644 --- a/packaging/extractChallengeData.mjs +++ b/packaging/extractChallengeData.mjs @@ -114,7 +114,7 @@ async function extract(locationParent, jwt, gameVersion, pro1) { "User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", "Content-Type": "application/json", Accept: "application/json, text/*, image/*, application/json", - Version: gameVersion === "h1" ? "6.74.0" : "8.15.0", + Version: gameVersion === "h1" ? "6.74.0" : "8.17.0", Authorization: `bearer ${jwt}`, }, }) diff --git a/packaging/extractElusivesChallengeData.mjs b/packaging/extractElusivesChallengeData.mjs index fb2c3aec..00d4e331 100644 --- a/packaging/extractElusivesChallengeData.mjs +++ b/packaging/extractElusivesChallengeData.mjs @@ -422,7 +422,7 @@ async function extract(locationParent, jwt, apiUrl) { "User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", "Content-Type": "application/json", Accept: "application/json, text/*, image/*, application/json", - Version: "8.15.0", + Version: "8.17.0", Authorization: `bearer ${jwt}`, }, }) diff --git a/packaging/extractFeaturedContracts.mjs b/packaging/extractFeaturedContracts.mjs index 1e9a502a..64aaa43c 100644 --- a/packaging/extractFeaturedContracts.mjs +++ b/packaging/extractFeaturedContracts.mjs @@ -71,7 +71,7 @@ async function extract(jwt, gameVersion) { "User-Agent": "G2 Http/1.0 (Windows NT 10.0; DX12/1; d3d12/1)", "Content-Type": "application/json", Accept: "application/json, text/*, image/*, application/json", - Version: gameVersion === "h1" ? "6.74.0" : "8.15.0", + Version: gameVersion === "h1" ? "6.74.0" : "8.17.0", Authorization: `bearer ${jwt}`, }, }) diff --git a/static/ServerVersionConfig.json b/static/ServerVersionConfig.json index c662f027..cf56125a 100644 --- a/static/ServerVersionConfig.json +++ b/static/ServerVersionConfig.json @@ -2,7 +2,7 @@ "Versions": [ { "Name": "pc-prod", - "GAME_VER": "8.15.0", + "GAME_VER": "8.17.0", "SERVER_VER": { "Metrics": { "MetricsServerHost": "http://localhost",