Dependency Upgrades
This commit is contained in:
parent
ff968a490f
commit
3108a68407
5 changed files with 32 additions and 19 deletions
|
@ -252,7 +252,7 @@ namespace Geekbot.net.Commands.Utils.Quote
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var list = Context.Channel.GetMessagesAsync().Flatten();
|
var list = Context.Channel.GetMessagesAsync().Flatten();
|
||||||
return await list.FirstOrDefault(msg =>
|
return await list.FirstOrDefaultAsync(msg =>
|
||||||
msg.Author.Id == user.Id &&
|
msg.Author.Id == user.Id &&
|
||||||
msg.Embeds.Count == 0 &&
|
msg.Embeds.Count == 0 &&
|
||||||
msg.Id != Context.Message.Id &&
|
msg.Id != Context.Message.Id &&
|
||||||
|
|
|
@ -20,28 +20,28 @@
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CommandLineParser" Version="2.7.82" />
|
<PackageReference Include="CommandLineParser" Version="2.8.0" />
|
||||||
<PackageReference Include="Discord.Net" Version="2.1.1" />
|
<PackageReference Include="Discord.Net" Version="2.2.0" />
|
||||||
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.43.0.1834" />
|
<PackageReference Include="Google.Apis.YouTube.v3" Version="1.45.0.1929" />
|
||||||
<PackageReference Include="HtmlAgilityPack" Version="1.11.18" />
|
<PackageReference Include="HtmlAgilityPack" Version="1.11.24" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.7" />
|
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.2.7" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Cors" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.Cors" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.1" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.1" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.4" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.1" />
|
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.4" />
|
||||||
<PackageReference Include="MtgApiManager.Lib" Version="1.2.2" />
|
<PackageReference Include="MtgApiManager.Lib" Version="1.2.2" />
|
||||||
<PackageReference Include="MyAnimeListSharp" Version="1.3.4" />
|
<PackageReference Include="MyAnimeListSharp" Version="1.3.4" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="NLog" Version="4.6.8" />
|
<PackageReference Include="NLog" Version="4.7.2" />
|
||||||
<PackageReference Include="NLog.Config" Version="4.6.8" />
|
<PackageReference Include="NLog.Config" Version="4.7.2" />
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.1.1.2" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.1.4" />
|
||||||
<PackageReference Include="PokeApi.NET" Version="1.1.2" />
|
<PackageReference Include="PokeApi.NET" Version="1.1.2" />
|
||||||
<PackageReference Include="prometheus-net" Version="3.5.0" />
|
<PackageReference Include="prometheus-net" Version="3.5.0" />
|
||||||
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
<PackageReference Include="SharpRaven" Version="2.4.0" />
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
@ -13,5 +14,15 @@ namespace Geekbot.net.Lib.Extensions
|
||||||
var exists = predicate != null ? dbSet.Any(predicate) : dbSet.Any();
|
var exists = predicate != null ? dbSet.Any(predicate) : dbSet.Any();
|
||||||
return !exists ? dbSet.Add(entity) : null;
|
return !exists ? dbSet.Add(entity) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/dotnet/efcore/issues/18124
|
||||||
|
public static IAsyncEnumerable<TEntity> AsAsyncEnumerable<TEntity>(this Microsoft.EntityFrameworkCore.DbSet<TEntity> obj) where TEntity : class
|
||||||
|
{
|
||||||
|
return Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.AsAsyncEnumerable(obj);
|
||||||
|
}
|
||||||
|
public static IQueryable<TEntity> Where<TEntity>(this Microsoft.EntityFrameworkCore.DbSet<TEntity> obj, System.Linq.Expressions.Expression<Func<TEntity, bool>> predicate) where TEntity : class
|
||||||
|
{
|
||||||
|
return System.Linq.Queryable.Where(obj, predicate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Immutable;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Discord;
|
using Discord;
|
||||||
|
|
||||||
|
@ -11,6 +12,7 @@ namespace Geekbot.net.Lib.Polyfills
|
||||||
public string Mention { get; set; }
|
public string Mention { get; set; }
|
||||||
public IActivity Activity { get; }
|
public IActivity Activity { get; }
|
||||||
public UserStatus Status { get; set; }
|
public UserStatus Status { get; set; }
|
||||||
|
public IImmutableSet<ClientType> ActiveClients { get; }
|
||||||
public string AvatarId { get; set; }
|
public string AvatarId { get; set; }
|
||||||
public string Discriminator { get; set; }
|
public string Discriminator { get; set; }
|
||||||
public ushort DiscriminatorValue { get; set; }
|
public ushort DiscriminatorValue { get; set; }
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<NoWarn>xUnit1026</NoWarn>
|
<NoWarn>xUnit1026</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentAssertions" Version="5.10.0" />
|
<PackageReference Include="FluentAssertions" Version="5.10.3" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
|
||||||
<PackageReference Include="Moq" Version="4.13.1" />
|
<PackageReference Include="Moq" Version="4.14.1" />
|
||||||
<PackageReference Include="xunit" Version="2.4.1" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
|
||||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
|
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
|
||||||
|
|
Loading…
Reference in a new issue