From de5973a83214b49b18e4f1c2afa047d7df060f12 Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 3 Dec 2022 12:17:37 +0000 Subject: [PATCH] chore: lint --- PluralKit.API/MetricsRunner.cs | 2 +- PluralKit.API/Startup.cs | 2 +- PluralKit.API/packages.lock.json | 37 ++++++++++++++++++------------ PluralKit.Tests/packages.lock.json | 37 ++++++++++++++++++------------ 4 files changed, 46 insertions(+), 32 deletions(-) diff --git a/PluralKit.API/MetricsRunner.cs b/PluralKit.API/MetricsRunner.cs index 0dbdd36e..db9e4fbc 100644 --- a/PluralKit.API/MetricsRunner.cs +++ b/PluralKit.API/MetricsRunner.cs @@ -4,7 +4,7 @@ using NodaTime; namespace PluralKit.API; -public class MetricsRunner : IHostedService, IDisposable +public class MetricsRunner: IHostedService, IDisposable { private readonly Serilog.ILogger _logger; private readonly IMetrics _metrics; diff --git a/PluralKit.API/Startup.cs b/PluralKit.API/Startup.cs index 0efeebe5..de326850 100644 --- a/PluralKit.API/Startup.cs +++ b/PluralKit.API/Startup.cs @@ -26,7 +26,7 @@ public class Startup options.InvalidModelStateResponseFactory = context => throw Errors.GenericBadRequest ); - + services.AddHostedService(); } diff --git a/PluralKit.API/packages.lock.json b/PluralKit.API/packages.lock.json index 14799afe..ba6b068a 100644 --- a/PluralKit.API/packages.lock.json +++ b/PluralKit.API/packages.lock.json @@ -648,8 +648,8 @@ }, "Serilog": { "type": "Transitive", - "resolved": "2.10.0", - "contentHash": "+QX0hmf37a0/OZLxM3wL7V6/ADvC1XihXN4Kq/p6d8lCPfgkRdiuhbWlMaFjR9Av0dy5F0+MBeDmDdRZN/YwQA==" + "resolved": "2.12.0", + "contentHash": "xaiJLIdu6rYMKfQMYUZgTy8YK7SMZjB4Yk50C/u//Z4OsvxkUfSPJy4nknfvwAC34yr13q7kcyh4grbwhSxyZg==" }, "Serilog.Extensions.Hosting": { "type": "Transitive", @@ -752,23 +752,29 @@ }, "Serilog.Sinks.File": { "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "U0b34w+ZikbqWEZ3ui7BdzxY/19zwrdhLtI3o6tfmLdD3oXxg7n2TZJjwCCTlKPgRuYic9CBWfrZevbb70mTaw==", + "resolved": "5.0.0", + "contentHash": "uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "dependencies": { - "Serilog": "2.5.0", - "System.IO.FileSystem": "4.0.1", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Threading.Timer": "4.0.1" + "Serilog": "2.10.0" } }, "Serilog.Sinks.PeriodicBatching": { "type": "Transitive", - "resolved": "2.1.1", - "contentHash": "L1iZtcEzQdEIYCPvhYJYB2RofPg+i1NhHJfS+DpXLyLSMS6OXebqaI1fxWhmJRIjD9D9BuXi23FkZTQDiP7cHw==", + "resolved": "3.1.0", + "contentHash": "NDWR7m3PalVlGEq3rzoktrXikjFMLmpwF0HI4sowo8YDdU+gqPlTHlDQiOGxHfB0sTfjPA9JjA7ctKG9zqjGkw==", "dependencies": { - "Serilog": "2.0.0", - "System.Collections.Concurrent": "4.0.12", - "System.Threading.Timer": "4.0.1" + "Serilog": "2.0.0" + } + }, + "Serilog.Sinks.Seq": { + "type": "Transitive", + "resolved": "5.2.2", + "contentHash": "1Csmo5ua7NKUe0yXUx+zsRefjAniPWcXFhUXxXG8pwo0iMiw2gjn9SOkgYnnxbgWqmlGv236w0N/dHc2v5XwMg==", + "dependencies": { + "Serilog": "2.12.0", + "Serilog.Formatting.Compact": "1.1.0", + "Serilog.Sinks.File": "5.0.0", + "Serilog.Sinks.PeriodicBatching": "3.1.0" } }, "SqlKata": { @@ -1633,14 +1639,15 @@ "NodaTime.Serialization.JsonNet": "[3.0.0, )", "Npgsql": "[4.1.5, )", "Npgsql.NodaTime": "[4.1.5, )", - "Serilog": "[2.10.0, )", + "Serilog": "[2.12.0, )", "Serilog.Extensions.Logging": "[3.0.1, )", "Serilog.Formatting.Compact": "[1.1.0, )", "Serilog.NodaTime": "[3.0.0, )", "Serilog.Sinks.Async": "[1.4.1-dev-00071, )", "Serilog.Sinks.Console": "[4.0.0-dev-00834, )", "Serilog.Sinks.Elasticsearch": "[8.4.1, )", - "Serilog.Sinks.File": "[4.1.0, )", + "Serilog.Sinks.File": "[5.0.0, )", + "Serilog.Sinks.Seq": "[5.2.2, )", "SqlKata": "[2.3.7, )", "SqlKata.Execution": "[2.3.7, )", "StackExchange.Redis": "[2.2.88, )", diff --git a/PluralKit.Tests/packages.lock.json b/PluralKit.Tests/packages.lock.json index e10a125d..ba9f8af9 100644 --- a/PluralKit.Tests/packages.lock.json +++ b/PluralKit.Tests/packages.lock.json @@ -744,8 +744,8 @@ }, "Serilog": { "type": "Transitive", - "resolved": "2.10.0", - "contentHash": "+QX0hmf37a0/OZLxM3wL7V6/ADvC1XihXN4Kq/p6d8lCPfgkRdiuhbWlMaFjR9Av0dy5F0+MBeDmDdRZN/YwQA==" + "resolved": "2.12.0", + "contentHash": "xaiJLIdu6rYMKfQMYUZgTy8YK7SMZjB4Yk50C/u//Z4OsvxkUfSPJy4nknfvwAC34yr13q7kcyh4grbwhSxyZg==" }, "Serilog.AspNetCore": { "type": "Transitive", @@ -864,23 +864,29 @@ }, "Serilog.Sinks.File": { "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "U0b34w+ZikbqWEZ3ui7BdzxY/19zwrdhLtI3o6tfmLdD3oXxg7n2TZJjwCCTlKPgRuYic9CBWfrZevbb70mTaw==", + "resolved": "5.0.0", + "contentHash": "uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "dependencies": { - "Serilog": "2.5.0", - "System.IO.FileSystem": "4.0.1", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Threading.Timer": "4.0.1" + "Serilog": "2.10.0" } }, "Serilog.Sinks.PeriodicBatching": { "type": "Transitive", - "resolved": "2.1.1", - "contentHash": "L1iZtcEzQdEIYCPvhYJYB2RofPg+i1NhHJfS+DpXLyLSMS6OXebqaI1fxWhmJRIjD9D9BuXi23FkZTQDiP7cHw==", + "resolved": "3.1.0", + "contentHash": "NDWR7m3PalVlGEq3rzoktrXikjFMLmpwF0HI4sowo8YDdU+gqPlTHlDQiOGxHfB0sTfjPA9JjA7ctKG9zqjGkw==", "dependencies": { - "Serilog": "2.0.0", - "System.Collections.Concurrent": "4.0.12", - "System.Threading.Timer": "4.0.1" + "Serilog": "2.0.0" + } + }, + "Serilog.Sinks.Seq": { + "type": "Transitive", + "resolved": "5.2.2", + "contentHash": "1Csmo5ua7NKUe0yXUx+zsRefjAniPWcXFhUXxXG8pwo0iMiw2gjn9SOkgYnnxbgWqmlGv236w0N/dHc2v5XwMg==", + "dependencies": { + "Serilog": "2.12.0", + "Serilog.Formatting.Compact": "1.1.0", + "Serilog.Sinks.File": "5.0.0", + "Serilog.Sinks.PeriodicBatching": "3.1.0" } }, "SixLabors.ImageSharp": { @@ -1830,14 +1836,15 @@ "NodaTime.Serialization.JsonNet": "[3.0.0, )", "Npgsql": "[4.1.5, )", "Npgsql.NodaTime": "[4.1.5, )", - "Serilog": "[2.10.0, )", + "Serilog": "[2.12.0, )", "Serilog.Extensions.Logging": "[3.0.1, )", "Serilog.Formatting.Compact": "[1.1.0, )", "Serilog.NodaTime": "[3.0.0, )", "Serilog.Sinks.Async": "[1.4.1-dev-00071, )", "Serilog.Sinks.Console": "[4.0.0-dev-00834, )", "Serilog.Sinks.Elasticsearch": "[8.4.1, )", - "Serilog.Sinks.File": "[4.1.0, )", + "Serilog.Sinks.File": "[5.0.0, )", + "Serilog.Sinks.Seq": "[5.2.2, )", "SqlKata": "[2.3.7, )", "SqlKata.Execution": "[2.3.7, )", "StackExchange.Redis": "[2.2.88, )",