Skip to content

Commit 300ae4c

Browse files
committed
nuget updates
1 parent 7b78069 commit 300ae4c

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

src/Communicator/Communicator.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageReadmeFile>Readme.md</PackageReadmeFile>
99
<Authors>Pandatech</Authors>
1010
<Copyright>MIT</Copyright>
11-
<Version>2.1.2</Version>
11+
<Version>2.1.3</Version>
1212
<PackageId>Pandatech.Communicator</PackageId>
1313
<Title>SMS and Email Communication helper</Title>
1414
<PackageTags>Pandatech, library, Sms, Email, Messages</PackageTags>
@@ -23,10 +23,10 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="MailKit" Version="4.10.0" />
27-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.2" />
28-
<PackageReference Include="MimeKit" Version="4.10.0" />
29-
<PackageReference Include="Pandatech.RegexBox" Version="3.0.1" />
26+
<PackageReference Include="MailKit" Version="4.12.1" />
27+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5" />
28+
<PackageReference Include="MimeKit" Version="4.12.0" />
29+
<PackageReference Include="Pandatech.SharedKernel" Version="1.3.8" />
3030
</ItemGroup>
3131

3232
</Project>

src/Communicator/Helpers/EmailMessageValidator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Communicator.Models;
2-
using RegexBox;
2+
using SharedKernel.Helpers;
33

44
namespace Communicator.Helpers;
55

@@ -12,17 +12,17 @@ internal static void Validate(EmailMessage emailMessage)
1212
throw new ArgumentException("At least one recipient is required", nameof(emailMessage.Recipients));
1313
}
1414

15-
if (emailMessage.Recipients.Any(email => !PandaValidator.IsEmail(email)))
15+
if (emailMessage.Recipients.Any(email => !ValidationHelper.IsEmail(email)))
1616
{
1717
throw new ArgumentException("Invalid email address", nameof(emailMessage.Recipients));
1818
}
1919

20-
if (emailMessage.Cc.Count != 0 && emailMessage.Cc.Any(email => !PandaValidator.IsEmail(email)))
20+
if (emailMessage.Cc.Count != 0 && emailMessage.Cc.Any(email => !ValidationHelper.IsEmail(email)))
2121
{
2222
throw new ArgumentException("Invalid email address", nameof(emailMessage.Cc));
2323
}
2424

25-
if (emailMessage.Bcc.Count != 0 && emailMessage.Bcc.Any(email => !PandaValidator.IsEmail(email)))
25+
if (emailMessage.Bcc.Count != 0 && emailMessage.Bcc.Any(email => !ValidationHelper.IsEmail(email)))
2626
{
2727
throw new ArgumentException("Invalid email address", nameof(emailMessage.Bcc));
2828
}

src/Communicator/Helpers/SmsRecipients.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Communicator.Extensions;
2-
using RegexBox;
2+
using SharedKernel.Helpers;
33

44
namespace Communicator.Helpers;
55

@@ -9,7 +9,7 @@ internal static class SmsRecipients
99

1010
internal static string Transform(this string recipient)
1111
{
12-
if (PandaValidator.IsPandaFormattedPhoneNumber(recipient)
12+
if (ValidationHelper.IsPandaFormattedPhoneNumber(recipient)
1313
|| recipient.Any(c => CharsToCheck.Contains(c)))
1414
{
1515
recipient = recipient.RemovePhoneFormatParenthesesAndAdditionSign();
@@ -20,7 +20,7 @@ internal static string Transform(this string recipient)
2020

2121
internal static List<string> Transform(this List<string> recipients)
2222
{
23-
foreach (var recipient in recipients.Where(PandaValidator.IsPandaFormattedPhoneNumber))
23+
foreach (var recipient in recipients.Where(ValidationHelper.IsPandaFormattedPhoneNumber))
2424
{
2525
recipient.RemovePhoneFormatParenthesesAndAdditionSign();
2626
}

test/Communicator.Demo/Communicator.Demo.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.2" />
12-
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5" />
12+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.2" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

test/Communicator.Tests/Communicator.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1414
<PackageReference Include="xunit" Version="2.9.3" />
15-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
15+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.0">
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
<PrivateAssets>all</PrivateAssets>
1818
</PackageReference>

0 commit comments

Comments
 (0)