aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-07-18 15:33:18 -0500
committerGitHub <noreply@github.com>2026-07-18 15:33:18 -0500
commit2b31f8a4d50ac347929cddb7170a0e54dfdf47c1 (patch)
tree9410347298ce5d3192891967a4d61e8b5e8d83e1 /src/slskd
parent4b09b8c13c1c709bf0046134696211755a470866 (diff)
parent9d3f4bd76a2fa37aa50148c18eebc9e097827629 (diff)
downloadslskd-2b31f8a4d50ac347929cddb7170a0e54dfdf47c1.tar.gz
Merge branch 'master' into stricter-cors
Diffstat (limited to 'src/slskd')
-rw-r--r--src/slskd/Program.cs11
-rw-r--r--src/slskd/Telemetry/API/ReportsController.cs52
-rw-r--r--src/slskd/Telemetry/ReportsService.cs98
-rw-r--r--src/slskd/Telemetry/Types/TransferExceptionDetail.cs1
-rw-r--r--src/slskd/Transfers/API/Controllers/TransfersController.cs12
-rw-r--r--src/slskd/Transfers/API/DTO/EnqueueDownloadBatchRequest.cs (renamed from src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs)2
-rw-r--r--src/slskd/Transfers/API/DTO/EnqueueDownloadBatchResponse.cs (renamed from src/slskd/Transfers/API/DTO/QueueDownloadBatchResponse.cs)6
-rw-r--r--src/slskd/Transfers/TransferService.cs92
-rw-r--r--src/slskd/slskd.csproj20
9 files changed, 238 insertions, 56 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index f0603102..df20270d 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -63,6 +63,7 @@ namespace slskd
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.FileProviders.Physical;
using Microsoft.IdentityModel.Tokens;
+ using Microsoft.Net.Http.Headers;
using Microsoft.OpenApi;
using Prometheus;
using Prometheus.DotNetRuntime;
@@ -1106,6 +1107,16 @@ namespace slskd
RequestPath = string.Empty,
EnableDirectoryBrowsing = false,
EnableDefaultFiles = true,
+ StaticFileOptions =
+ {
+ OnPrepareResponse = ctx =>
+ {
+ if (ctx.File.Name == "index.html" || ctx.File.Name == "default.html")
+ {
+ ctx.Context.Response.GetTypedHeaders().CacheControl = new CacheControlHeaderValue { NoCache = true };
+ }
+ },
+ },
};
if (!OptionsAtStartup.Headless)
diff --git a/src/slskd/Telemetry/API/ReportsController.cs b/src/slskd/Telemetry/API/ReportsController.cs
index 5ced2def..ccb45daf 100644
--- a/src/slskd/Telemetry/API/ReportsController.cs
+++ b/src/slskd/Telemetry/API/ReportsController.cs
@@ -40,6 +40,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Serilog;
+using slskd.Transfers;
using Soulseek;
/// <summary>
@@ -55,12 +56,16 @@ public class ReportsController : ControllerBase
/// <summary>
/// Initializes a new instance of the <see cref="ReportsController"/> class.
/// </summary>
- public ReportsController(TelemetryService telemetryService)
+ public ReportsController(
+ TelemetryService telemetryService,
+ TransferService transferService)
{
Telemetry = telemetryService;
+ Transfers = transferService;
}
private TelemetryService Telemetry { get; }
+ private TransferService Transfers { get; }
private ILogger Log { get; } = Serilog.Log.ForContext<ReportsController>();
/// <summary>
@@ -128,7 +133,8 @@ public class ReportsController : ControllerBase
/// </summary>
/// <param name="start">The start time of the window (default: 7 days ago).</param>
/// <param name="end">The end time of the window (default: now).</param>
- /// <param name="interval">The interval, in minutes (default: 60).</param>
+ /// <param name="buckets">The number of evenly sized buckets that the data will be divided into (default: 100).</param>
+ /// <param name="interval">The interval, in minutes (default: null).</param>
/// <param name="direction">An optional direction (Upload, Download) by which to filter records.</param>
/// <param name="username">An optional username by which to filter records.</param>
/// <returns></returns>
@@ -143,7 +149,8 @@ public class ReportsController : ControllerBase
public IActionResult GetTransferHistogram(
[FromQuery] DateTime? start = null,
[FromQuery] DateTime? end = null,
- [FromQuery] int interval = 60,
+ [FromQuery] int? buckets = null,
+ [FromQuery] int? interval = null,
[FromQuery] string direction = null,
[FromQuery] string username = null)
{
@@ -157,20 +164,42 @@ public class ReportsController : ControllerBase
return BadRequest("End time must be later than start time");
}
- // clamp the start time to the earliest reasonable date to avoid returning a ton of empty intervals
- // and introducing performance issues client side
- if (start < Program.GenesisDateTime)
+ if (end < Program.GenesisDateTime)
+ {
+ return BadRequest($"End time impossibly early (earlier than slskd genesis time {Program.GenesisDateTime})");
+ }
+
+ if (buckets.HasValue && interval.HasValue)
+ {
+ return BadRequest("Specify either interval or buckets, not both");
+ }
+
+ if (buckets.HasValue && (buckets < 1 || buckets > 1000))
{
- Log.Warning("A start time prior to the genesis date of the application was supplied; the start time has been adjusted to the genesis time {Genesis}", Program.GenesisDateTime);
- start = Program.GenesisDateTime;
+ return BadRequest("Buckets must be between 1 and 1000, if specified");
}
- if (interval < 5)
+ if (interval.HasValue && interval <= 1)
{
- return BadRequest("Interval must be greater than or equal to 5");
+ return BadRequest("Interval must be greater than 1");
}
- var intervalTimeSpan = TimeSpan.FromMinutes(interval);
+ if (!buckets.HasValue && !interval.HasValue)
+ {
+ buckets = 100; // the default, according to API docs. update the docs if this changes
+ }
+
+ // at this point it is either buckets or interval, and both would have valid values, so convert
+ // interval to a timespan if it exists and send both values into the service, it will sort things out
+ TimeSpan? intervalTimeSpan = !buckets.HasValue ? TimeSpan.FromMinutes(interval.Value) : null;
+
+ // if a caller supplies a start timestamp that is equal to, or is earlier than the genesis time for slskd (12/30/2020 6:22:00 UTC)
+ // then replace the provided timestamp with the oldest transfer record (regardless of direction); there's no data older than that
+ // and this will let the caller avoid a bunch of empty series on their histogram
+ if (start < Program.GenesisDateTime)
+ {
+ start = Transfers.Query(q => q.Select(t => (DateTime?)t.RequestedAt).Min()) ?? Program.GenesisDateTime;
+ }
TransferDirection? transferDirection = null;
@@ -189,6 +218,7 @@ public class ReportsController : ControllerBase
return Ok(Telemetry.Reports.GetTransferHistogram(
start: start.Value,
end: end.Value,
+ buckets: buckets,
interval: intervalTimeSpan,
direction: transferDirection,
username: username));
diff --git a/src/slskd/Telemetry/ReportsService.cs b/src/slskd/Telemetry/ReportsService.cs
index ae2d1129..7cd245bf 100644
--- a/src/slskd/Telemetry/ReportsService.cs
+++ b/src/slskd/Telemetry/ReportsService.cs
@@ -137,32 +137,80 @@ public class ReportsService
}
/// <summary>
- /// Returns a histogram of all transfer data, aggregated into fixed size time intervals and grouped by
- /// direction and final transfer state. Includes only completed transfers.
+ /// Returns a histogram of all transfer data, aggregated into either fixed size time intervals or a fixed
+ /// number of evenly sized buckets, and grouped by direction and final transfer state. Includes only
+ /// completed transfers.
/// </summary>
/// <param name="start">The start time of the histogram window.</param>
/// <param name="end">The end time of the histogram window.</param>
- /// <param name="interval">The interval for the histogram.</param>
+ /// <param name="interval">
+ /// The interval for the histogram. Mutually exclusive with <paramref name="buckets"/>; exactly one must
+ /// be specified.
+ /// </param>
+ /// <param name="buckets">
+ /// The number of evenly sized buckets into which the histogram window should be divided. Mutually
+ /// exclusive with <paramref name="interval"/>; exactly one must be specified.
+ /// </param>
/// <param name="direction">The optional direction (Upload or Download) by which to filter results.</param>
/// <param name="username">The optional username by which to filter results.</param>
/// <returns>A nested dictionary keyed by direction and state and containing summary information.</returns>
- /// <exception cref="ArgumentException">Thrown if end time is not later than start time.</exception>
+ /// <exception cref="ArgumentException">
+ /// Thrown if either <paramref name="start"/> or <paramref name="end"/> is default, if both <paramref name="interval"/>
+ /// and <paramref name="buckets"/> are specified, if neither is specified.
+ /// </exception>
+ /// <exception cref="ArgumentOutOfRangeException">
+ /// Thrown if <paramref name="end"/> is not later than <paramref name="start"/>, or if <paramref name="buckets"/>
+ /// is outside of the allowed range.
+ /// </exception>
public Dictionary<DateTime, Dictionary<TransferDirection, Dictionary<TransferStates, TransferSummary>>> GetTransferHistogram(
DateTime start,
DateTime end,
- TimeSpan interval,
+ TimeSpan? interval = null,
+ int? buckets = null,
TransferDirection? direction = null,
string username = null)
{
+ if (start == default || end == default)
+ {
+ throw new ArgumentException("Start and end times are both required");
+ }
+
if (end <= start)
{
- throw new ArgumentException("End time must be later than start time");
+ throw new ArgumentOutOfRangeException(nameof(end), "End time must be later than start time");
+ }
+
+ if (interval.HasValue && buckets.HasValue)
+ {
+ throw new ArgumentException("Interval and buckets are mutually exclusive, provide one or the other, not both");
+ }
+
+ if (!interval.HasValue && !buckets.HasValue)
+ {
+ throw new ArgumentException("Either interval or buckets must be supplied");
}
+ if (buckets.HasValue && (buckets.Value > 1000 || buckets.Value < 1))
+ {
+ throw new ArgumentOutOfRangeException(nameof(buckets), buckets, "Buckets must be between 1 and 1000");
+ }
+
+ if (interval.HasValue && interval.Value <= TimeSpan.Zero)
+ {
+ throw new ArgumentOutOfRangeException(nameof(interval), interval, "Interval must be greater than zero");
+ }
+
+ // if interval was provided, just use that. otherwise, compute the interval from the seconds between start and end
+ // divided by the desired buckets
+ var effectiveInterval = interval ?? TimeSpan.FromSeconds(Math.Max(1, (long)(end - start).TotalSeconds / buckets!.Value));
+
var dict = new Dictionary<DateTime, Dictionary<TransferDirection, Dictionary<TransferStates, TransferSummary>>>();
// fill the dictionary with gapless intervals and empty dictionaries
- var currentInterval = new DateTime(start.Ticks / interval.Ticks * interval.Ticks, DateTimeKind.Utc);
+ // snap to Unix epoch to match the SQL bucket formula: strftime('%s', ...) / interval * interval, otherwise
+ // we may end up with an empty/partial first bucket
+ var intervalSeconds = (long)effectiveInterval.TotalSeconds;
+ var currentInterval = DateTime.UnixEpoch.AddSeconds((long)(start - DateTime.UnixEpoch).TotalSeconds / intervalSeconds * intervalSeconds);
while (currentInterval < end)
{
@@ -171,7 +219,7 @@ public class ReportsService
{ TransferDirection.Download, new Dictionary<TransferStates, TransferSummary>() },
{ TransferDirection.Upload, new Dictionary<TransferStates, TransferSummary>() },
};
- currentInterval = currentInterval.Add(interval);
+ currentInterval = currentInterval.Add(effectiveInterval);
}
var sql = @$"
@@ -181,8 +229,8 @@ public class ReportsService
StateDescription,
SUM(Size) AS TotalBytes,
COUNT(*) AS Count,
- COUNT(DISTINCT Username) AS Users,
- AVG(AverageSpeed) AS AverageSpeed,
+ COUNT(DISTINCT Username) AS DistinctUsers,
+ COALESCE(CAST(SUM(Size) AS REAL) / NULLIF(SUM(strftime('%s', EndedAt) - strftime('%s', StartedAt)), 0), 0.0) AS AverageSpeed,
COALESCE(AVG(strftime('%s', StartedAt) - strftime('%s', EnqueuedAt)), 0.0) AS AverageWait,
COALESCE(AVG(strftime('%s', EndedAt) - strftime('%s', StartedAt)), 0.0) AS AverageDuration
FROM Transfers
@@ -203,7 +251,7 @@ public class ReportsService
Username = username,
Start = start,
End = end,
- Interval = (int)interval.TotalSeconds,
+ Interval = (int)effectiveInterval.TotalSeconds,
};
var results = connection.Query<TransferSummaryRow>(sql, param);
@@ -222,8 +270,7 @@ public class ReportsService
if (result.Interval.HasValue)
{
- // normalize the result interval to match the bucket interval
- var bucketInterval = new DateTime(result.Interval.Value.Ticks / interval.Ticks * interval.Ticks, DateTimeKind.Utc);
+ var bucketInterval = DateTime.SpecifyKind(result.Interval.Value, DateTimeKind.Utc);
if (dict.TryGetValue(bucketInterval, out var intervalDict))
{
@@ -361,22 +408,23 @@ public class ReportsService
Direction,
Filename,
Size,
- StartOffset,
State,
- RequestedAt
+ RequestedAt,
EnqueuedAt,
StartedAt,
EndedAt,
BytesTransferred,
AverageSpeed,
- CASE
- WHEN INSTR(Exception, ':') > 0
+ CASE
+ WHEN INSTR(Exception, ':') > 0
THEN SUBSTR(Exception, INSTR(Exception, ':') + 2)
ELSE Exception
END as Exception
- FROM transfers
+ FROM transfers
WHERE state & ~48
AND Direction = @Direction
+ AND EndedAt IS NOT NULL
+ AND EndedAt BETWEEN @Start AND @End
{(username is not null ? "AND Username = @Username" : string.Empty)}
ORDER BY EndedAt {sortOrder}
LIMIT @Limit
@@ -434,21 +482,23 @@ public class ReportsService
}
var sql = @$"
- SELECT
- CASE
- WHEN INSTR(Exception, ':') > 0
+ SELECT
+ CASE
+ WHEN INSTR(Exception, ':') > 0
THEN SUBSTR(Exception, INSTR(Exception, ':') + 2)
ELSE Exception
END as Exception,
COUNT(*) as Count,
COUNT(DISTINCT Username) as DistinctUsers
- FROM transfers
+ FROM transfers
WHERE state & ~48
AND Direction = @Direction
+ AND EndedAt IS NOT NULL
+ AND EndedAt BETWEEN @Start AND @End
{(username is not null ? "AND Username = @Username" : string.Empty)}
GROUP BY Direction,
- CASE
- WHEN INSTR(Exception, ':') > 0
+ CASE
+ WHEN INSTR(Exception, ':') > 0
THEN SUBSTR(Exception, INSTR(Exception, ':') + 2)
ELSE Exception
END
diff --git a/src/slskd/Telemetry/Types/TransferExceptionDetail.cs b/src/slskd/Telemetry/Types/TransferExceptionDetail.cs
index af20cc63..ea0b2a67 100644
--- a/src/slskd/Telemetry/Types/TransferExceptionDetail.cs
+++ b/src/slskd/Telemetry/Types/TransferExceptionDetail.cs
@@ -42,7 +42,6 @@ public record TransferExceptionDetail
public TransferDirection Direction { get; init; }
public string Filename { get; init; }
public long Size { get; set; }
- public long StartOffset { get; init; }
public TransferStates State { get; set; } = TransferStates.None;
public DateTime RequestedAt { get; set; }
public DateTime? EnqueuedAt { get; set; }
diff --git a/src/slskd/Transfers/API/Controllers/TransfersController.cs b/src/slskd/Transfers/API/Controllers/TransfersController.cs
index 147921ef..83eb04ef 100644
--- a/src/slskd/Transfers/API/Controllers/TransfersController.cs
+++ b/src/slskd/Transfers/API/Controllers/TransfersController.cs
@@ -303,15 +303,15 @@ namespace slskd.Transfers.API
/// <response code="500">An unexpected error was encountered.</response>
[HttpPost("downloads/batches")]
[Authorize(Policy = AuthPolicy.Any)]
- [ProducesResponseType(typeof(QueueDownloadBatchResponse), StatusCodes.Status200OK)]
- [ProducesResponseType(typeof(QueueDownloadBatchResponse), StatusCodes.Status201Created)]
- [ProducesResponseType(typeof(QueueDownloadBatchResponse), StatusCodes.Status207MultiStatus)]
+ [ProducesResponseType(typeof(EnqueueDownloadBatchResponse), StatusCodes.Status200OK)]
+ [ProducesResponseType(typeof(EnqueueDownloadBatchResponse), StatusCodes.Status201Created)]
+ [ProducesResponseType(typeof(EnqueueDownloadBatchResponse), StatusCodes.Status207MultiStatus)]
[ProducesResponseType(typeof(string), StatusCodes.Status400BadRequest)]
[ProducesResponseType(typeof(string), StatusCodes.Status403Forbidden)]
[ProducesResponseType(typeof(string), StatusCodes.Status409Conflict)]
[ProducesResponseType(typeof(string), StatusCodes.Status429TooManyRequests)]
[ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]
- public async Task<IActionResult> EnqueueBatchAsync([FromBody] QueueDownloadBatchRequest request)
+ public async Task<IActionResult> EnqueueBatchAsync([FromBody] EnqueueDownloadBatchRequest request)
{
if (Program.IsRelayAgent)
{
@@ -393,10 +393,10 @@ namespace slskd.Transfers.API
// properly finalized and marked as a failure
var batch = await Transfers.Downloads.Batches.FindAsync(b => b.Id == batchId);
- var response = new QueueDownloadBatchResponse
+ var response = new EnqueueDownloadBatchResponse
{
Batch = batch,
- Failures = failed.Select(f => new QueueDownloadBatchResponseFailure { Filename = f.Filename, Message = f.Message }).ToList(),
+ Failures = failed.Select(f => new EnqueueDownloadBatchResponseFailure { Filename = f.Filename, Message = f.Message }).ToList(),
};
// basically a no-op, but we did create the batch record (and it's useless, but it's there)
diff --git a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs b/src/slskd/Transfers/API/DTO/EnqueueDownloadBatchRequest.cs
index fe34bfec..7af36fcb 100644
--- a/src/slskd/Transfers/API/DTO/QueueDownloadBatchRequest.cs
+++ b/src/slskd/Transfers/API/DTO/EnqueueDownloadBatchRequest.cs
@@ -40,7 +40,7 @@ namespace slskd.Transfers.API;
/// <summary>
/// Enqueue a batch of downloads.
/// </summary>
-public record QueueDownloadBatchRequest
+public record EnqueueDownloadBatchRequest
{
/// <summary>
/// The ID of the Batch.
diff --git a/src/slskd/Transfers/API/DTO/QueueDownloadBatchResponse.cs b/src/slskd/Transfers/API/DTO/EnqueueDownloadBatchResponse.cs
index 84b570bc..3d066fe9 100644
--- a/src/slskd/Transfers/API/DTO/QueueDownloadBatchResponse.cs
+++ b/src/slskd/Transfers/API/DTO/EnqueueDownloadBatchResponse.cs
@@ -34,13 +34,13 @@ using System.Collections.Generic;
namespace slskd.Transfers.API;
-public record QueueDownloadBatchResponse
+public record EnqueueDownloadBatchResponse
{
public Batch Batch { get; init; }
- public IReadOnlyCollection<QueueDownloadBatchResponseFailure> Failures { get; init; } = [];
+ public IReadOnlyCollection<EnqueueDownloadBatchResponseFailure> Failures { get; init; } = [];
}
-public record QueueDownloadBatchResponseFailure
+public record EnqueueDownloadBatchResponseFailure
{
public string Filename { get; init; }
public string Message { get; init; }
diff --git a/src/slskd/Transfers/TransferService.cs b/src/slskd/Transfers/TransferService.cs
index 6dd852a0..156b63ec 100644
--- a/src/slskd/Transfers/TransferService.cs
+++ b/src/slskd/Transfers/TransferService.cs
@@ -32,6 +32,12 @@
namespace slskd.Transfers;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Linq.Expressions;
+using Microsoft.EntityFrameworkCore;
+using Serilog;
using slskd.Transfers.Downloads;
using slskd.Transfers.Uploads;
@@ -44,9 +50,12 @@ public class TransferService
/// Initializes a new instance of the <see cref="TransferService"/> class.
/// </summary>
public TransferService(
+ IDbContextFactory<TransfersDbContext> contextFactory,
IUploadService uploadService = null,
IDownloadService downloadService = null)
{
+ ContextFactory = contextFactory;
+
Uploads = uploadService;
Downloads = downloadService;
}
@@ -60,4 +69,87 @@ public class TransferService
/// Gets the download service.
/// </summary>
public virtual IDownloadService Downloads { get; init; }
+
+ private IDbContextFactory<TransfersDbContext> ContextFactory { get; }
+ private ILogger Log { get; } = Serilog.Log.ForContext<TransferService>();
+
+ /// <summary>
+ /// Finds a single transfer matching the specified <paramref name="expression"/>.
+ /// </summary>
+ /// <remarks>
+ /// Use this only to avoid needing to call this method on both the Upload and Download services. If the expression
+ /// contains a direction, this method is being used in error.
+ /// </remarks>
+ /// <param name="expression">The expression to use to match transfers.</param>
+ /// <returns>The found transfer, or default if not found.</returns>
+ public virtual Transfer Find(Expression<Func<Transfer, bool>> expression)
+ {
+ ArgumentNullException.ThrowIfNull(expression);
+
+ try
+ {
+ using var context = ContextFactory.CreateDbContext();
+
+ return context.Transfers
+ .AsNoTracking()
+ .Where(expression)
+ .SingleOrDefault();
+ }
+ catch (Exception ex)
+ {
+ Log.Error(ex, "Failed to list transfers: {Message}", ex.Message);
+ throw;
+ }
+ }
+
+ /// <summary>
+ /// Returns a list of all transfers matching the optional <paramref name="expression"/>.
+ /// </summary>
+ /// <remarks>
+ /// Use this only to avoid needing to call this method on both the Upload and Download services. If the expression
+ /// contains a direction, this method is being used in error.
+ /// </remarks>
+ /// <param name="expression">An optional expression used to match transfers.</param>
+ /// <param name="includeRemoved">A value indicating whether to include transfers that have been removed previously.</param>
+ /// <returns>The list of transfers matching the specified expression, or all transfers if no expression is specified.</returns>
+ public virtual List<Transfer> List(Expression<Func<Transfer, bool>> expression, bool includeRemoved)
+ {
+ expression ??= t => true;
+
+ try
+ {
+ using var context = ContextFactory.CreateDbContext();
+
+ return context.Transfers
+ .AsNoTracking()
+ .Where(t => !t.Removed || includeRemoved)
+ .Where(expression)
+ .ToList();
+ }
+ catch (Exception ex)
+ {
+ Log.Error(ex, "Failed to list uploads: {Message}", ex.Message);
+ throw;
+ }
+ }
+
+ /// <summary>
+ /// Query the Transfers database arbitrarily. Only use if there's no better way.
+ /// </summary>
+ /// <typeparam name="TResult">The result Type.</typeparam>
+ /// <param name="query">The query function.</param>
+ /// <returns>The result.</returns>
+ public virtual TResult Query<TResult>(Func<IQueryable<Transfer>, TResult> query)
+ {
+ try
+ {
+ using var context = ContextFactory.CreateDbContext();
+ return query(context.Transfers.AsNoTracking());
+ }
+ catch (Exception ex)
+ {
+ Log.Error(ex, "Failed to query transfers: {Message}", ex.Message);
+ throw;
+ }
+ }
} \ No newline at end of file
diff --git a/src/slskd/slskd.csproj b/src/slskd/slskd.csproj
index cb6a7d83..03fc4af4 100644
--- a/src/slskd/slskd.csproj
+++ b/src/slskd/slskd.csproj
@@ -47,15 +47,15 @@
<PackageReference Include="Dapper" Version="2.1.79" />
<PackageReference Include="FluentFTP" Version="49.0.2" />
<PackageReference Include="IPAddressRange" Version="6.3.0" />
- <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.8" />
- <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.8" />
- <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.300">
+ <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.9" />
+ <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.9" />
+ <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.301">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.8" />
- <PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.8" />
- <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="10.0.8" />
+ <PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.9" />
+ <PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.9" />
+ <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="10.0.9" />
<PackageReference Include="OneOf" Version="3.0.271" />
<PackageReference Include="prometheus-net" Version="8.2.1" />
<PackageReference Include="prometheus-net.AspNetCore" Version="8.2.1" />
@@ -67,17 +67,17 @@
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
- <PackageReference Include="Serilog.Sinks.Grafana.Loki" Version="9.0.0" />
+ <PackageReference Include="Serilog.Sinks.Grafana.Loki" Version="9.0.1" />
<PackageReference Include="Serilog.Sinks.Http" Version="9.2.1" />
- <PackageReference Include="Soulseek" Version="10.0.1" />
+ <PackageReference Include="Soulseek" Version="10.0.2" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="Swashbuckle.AspNetCore" Version="10.2.1" />
+ <PackageReference Include="Swashbuckle.AspNetCore" Version="10.2.3" />
<PackageReference Include="TagLibSharp" Version="2.3.0" />
<PackageReference Include="Utility.CommandLine.Arguments" Version="6.0.0" />
<PackageReference Include="Utility.EnvironmentVariables" Version="1.0.5" />
- <PackageReference Include="YamlDotNet" Version="18.0.0" />
+ <PackageReference Include="YamlDotNet" Version="18.1.0" />
</ItemGroup>
</Project>