Skip to content

Commit 6ef3b2e

Browse files
jasonsummersdaveaglick
authored andcommitted
Revert EPPlus to v4.5.2.1 in Statiq.Tables.csproj due to licensing issues.
Pin dependencies Newtonsoft.Json and System.Drawing.Common to resolve security issues.
1 parent 79bfdf6 commit 6ef3b2e

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/extensions/Statiq.Tables/ExcelHelper.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ internal static class ExcelHelper
1111
{
1212
public static IReadOnlyList<IReadOnlyList<string>> GetTable(Stream stream, int sheetNumber = 0)
1313
{
14-
SetLicense();
1514
using (ExcelPackage excel = new ExcelPackage(stream))
1615
{
1716
excel.Compatibility.IsWorksheets1Based = false;
@@ -28,7 +27,6 @@ public static IReadOnlyList<IReadOnlyList<string>> GetTable(Stream stream, int s
2827

2928
public static IReadOnlyList<IReadOnlyList<string>> GetTable(ExcelWorksheet sheet)
3029
{
31-
SetLicense();
3230
ExcelAddressBase dimension = sheet.Dimension;
3331

3432
if (dimension is null)
@@ -54,10 +52,5 @@ public static IReadOnlyList<IReadOnlyList<string>> GetTable(ExcelWorksheet sheet
5452

5553
return table;
5654
}
57-
58-
private static void SetLicense()
59-
{
60-
ExcelPackage.License.SetNonCommercialOrganization("StatiqDev");
61-
}
6255
}
6356
}

src/extensions/Statiq.Tables/Statiq.Tables.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageReference Include="CsvHelper" Version="33.1.0" />
8-
<PackageReference Include="EPPlus" Version="8.4.0" />
8+
<PackageReference Include="EPPlus" Version="4.5.2.1" />
9+
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
10+
<PackageReference Include="System.Drawing.Common" Version="10.0.1" />
911
</ItemGroup>
1012
<ItemGroup>
1113
<ProjectReference Include="..\..\core\Statiq.Common\Statiq.Common.csproj" />

0 commit comments

Comments
 (0)