From 7892f110ea5ab14b15d245ef5cdfb07abef8274d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Nov 2021 22:47:54 +0100 Subject: [PATCH] Update dependency SteamKit2 to v2.4.0-Beta.1 (#2454) * Update dependency SteamKit2 to v2.4.0-Beta.1 * Fix warnings Co-authored-by: Renovate Bot Co-authored-by: Archi --- .../Steam/Integration/ArchiWebHandler.cs | 15 +++++---------- Directory.Packages.props | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs b/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs index 23996cedd..1933f48ce 100644 --- a/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs +++ b/ArchiSteamFarm/Steam/Integration/ArchiWebHandler.cs @@ -257,8 +257,7 @@ public sealed class ArchiWebHandler : IDisposable { return null; } - // Extra entry for format - Dictionary arguments = new(3, StringComparer.Ordinal) { + Dictionary arguments = new(2, StringComparer.Ordinal) { // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework { "access_token", accessToken! }, @@ -1323,8 +1322,7 @@ public sealed class ArchiWebHandler : IDisposable { return false; } - // Extra entry for format - Dictionary arguments = new(3, StringComparer.Ordinal) { + Dictionary arguments = new(2, StringComparer.Ordinal) { // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework { "key", steamApiKey! }, @@ -1381,8 +1379,7 @@ public sealed class ArchiWebHandler : IDisposable { return null; } - // Extra entry for format - Dictionary arguments = new(6, StringComparer.Ordinal) { + Dictionary arguments = new(5, StringComparer.Ordinal) { { "active_only", 1 }, { "get_descriptions", 1 }, { "get_received_offers", 1 }, @@ -1872,8 +1869,7 @@ public sealed class ArchiWebHandler : IDisposable { return null; } - // Extra entry for format - Dictionary arguments = new(!string.IsNullOrEmpty(tradeToken) ? 4 : 3, StringComparer.Ordinal) { + Dictionary arguments = new(!string.IsNullOrEmpty(tradeToken) ? 3 : 2, StringComparer.Ordinal) { // ReSharper disable once RedundantSuppressNullableWarningExpression - required for .NET Framework { "key", steamApiKey! }, @@ -2056,8 +2052,7 @@ public sealed class ArchiWebHandler : IDisposable { // AES encrypt our login key with our session key byte[] encryptedLoginKey = CryptoHelper.SymmetricEncrypt(loginKey, sessionKey); - // Extra entry for format - Dictionary arguments = new(4, StringComparer.Ordinal) { + Dictionary arguments = new(3, StringComparer.Ordinal) { { "encrypted_loginkey", encryptedLoginKey }, { "sessionkey", encryptedSessionKey }, { "steamid", steamID } diff --git a/Directory.Packages.props b/Directory.Packages.props index 33fcfb3d6..e35d6b720 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -12,7 +12,7 @@ - +