Skip to content

Commit 731d07f

Browse files
Bump csharpier from 0.29.2 to 0.30.1 (#387)
* Bump csharpier from 0.29.2 to 0.30.1 Bumps [csharpier](https://github.com/belav/csharpier) from 0.29.2 to 0.30.1. - [Release notes](https://github.com/belav/csharpier/releases) - [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md) - [Commits](belav/csharpier@0.29.2...0.30.1) --- updated-dependencies: - dependency-name: csharpier dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Reformat files after csharpier update --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Butler <[email protected]>
1 parent c553c50 commit 731d07f

File tree

4 files changed

+115
-111
lines changed

4 files changed

+115
-111
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"csharpier": {
6-
"version": "0.29.2",
6+
"version": "0.30.1",
77
"commands": [
88
"dotnet-csharpier"
99
],

src/LogOtter.CosmosDb.ContainerMock/CosmosExpressionValidatorConstants.cs

Lines changed: 105 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -7,117 +7,116 @@ namespace LogOtter.CosmosDb.ContainerMock;
77

88
internal static class CosmosExpressionValidatorConstants
99
{
10-
public static readonly Dictionary<Type, List<string>> AllowList =
11-
new()
10+
public static readonly Dictionary<Type, List<string>> AllowList = new()
11+
{
1212
{
13+
typeof(string),
14+
new List<string>
1315
{
14-
typeof(string),
15-
new List<string>
16-
{
17-
"Concat",
18-
"Contains",
19-
"Count",
20-
"EndsWith",
21-
"IndexOf",
22-
"Replace",
23-
"Reverse",
24-
"StartsWith",
25-
"SubString",
26-
"ToLower",
27-
"ToUpper",
28-
"TrimEnd",
29-
"TrimStart",
30-
"Equals",
31-
}
32-
},
33-
{
34-
typeof(Math),
35-
new List<string>
36-
{
37-
"Abs",
38-
"Acos",
39-
"Asin",
40-
"Atan",
41-
"Ceiling",
42-
"Cos",
43-
"Exp",
44-
"Floor",
45-
"Log",
46-
"Log10",
47-
"Pow",
48-
"Round",
49-
"Sign",
50-
"Sin",
51-
"Sqrt",
52-
"Tan",
53-
"Truncate",
54-
}
55-
},
56-
{
57-
typeof(Array),
58-
new List<string> { "Concat", "Contains", "Count" }
59-
},
16+
"Concat",
17+
"Contains",
18+
"Count",
19+
"EndsWith",
20+
"IndexOf",
21+
"Replace",
22+
"Reverse",
23+
"StartsWith",
24+
"SubString",
25+
"ToLower",
26+
"ToUpper",
27+
"TrimEnd",
28+
"TrimStart",
29+
"Equals",
30+
}
31+
},
32+
{
33+
typeof(Math),
34+
new List<string>
6035
{
61-
typeof(Queryable),
62-
new List<string>
63-
{
64-
"Select",
65-
"Contains",
66-
"Where",
67-
"Single",
68-
"SelectMany",
69-
"OrderBy",
70-
"OrderByDescending",
71-
"ThenBy",
72-
"ThenByDescending",
73-
"Count",
74-
"Sum",
75-
"Min",
76-
"Max",
77-
"Average",
78-
"CountAsync",
79-
"SumAsync",
80-
"MinAsync",
81-
"MaxAsync",
82-
"AverageAsync",
83-
"Skip",
84-
"Take",
85-
}
86-
},
87-
// Any is only on enumerable as it is supported as a sub-query but not as an aggregation
36+
"Abs",
37+
"Acos",
38+
"Asin",
39+
"Atan",
40+
"Ceiling",
41+
"Cos",
42+
"Exp",
43+
"Floor",
44+
"Log",
45+
"Log10",
46+
"Pow",
47+
"Round",
48+
"Sign",
49+
"Sin",
50+
"Sqrt",
51+
"Tan",
52+
"Truncate",
53+
}
54+
},
55+
{
56+
typeof(Array),
57+
new List<string> { "Concat", "Contains", "Count" }
58+
},
59+
{
60+
typeof(Queryable),
61+
new List<string>
8862
{
89-
typeof(Enumerable),
90-
new List<string>
91-
{
92-
"Select",
93-
"Contains",
94-
"Where",
95-
"Single",
96-
"SelectMany",
97-
"OrderBy",
98-
"OrderByDescending",
99-
"ThenBy",
100-
"ThenByDescending",
101-
"Count",
102-
"Sum",
103-
"Min",
104-
"Max",
105-
"Average",
106-
"CountAsync",
107-
"SumAsync",
108-
"MinAsync",
109-
"MaxAsync",
110-
"AverageAsync",
111-
"Skip",
112-
"Take",
113-
"Any",
114-
}
115-
},
63+
"Select",
64+
"Contains",
65+
"Where",
66+
"Single",
67+
"SelectMany",
68+
"OrderBy",
69+
"OrderByDescending",
70+
"ThenBy",
71+
"ThenByDescending",
72+
"Count",
73+
"Sum",
74+
"Min",
75+
"Max",
76+
"Average",
77+
"CountAsync",
78+
"SumAsync",
79+
"MinAsync",
80+
"MaxAsync",
81+
"AverageAsync",
82+
"Skip",
83+
"Take",
84+
}
85+
},
86+
// Any is only on enumerable as it is supported as a sub-query but not as an aggregation
87+
{
88+
typeof(Enumerable),
89+
new List<string>
11690
{
117-
typeof(object),
118-
new List<string> { "ToString" }
119-
},
120-
};
91+
"Select",
92+
"Contains",
93+
"Where",
94+
"Single",
95+
"SelectMany",
96+
"OrderBy",
97+
"OrderByDescending",
98+
"ThenBy",
99+
"ThenByDescending",
100+
"Count",
101+
"Sum",
102+
"Min",
103+
"Max",
104+
"Average",
105+
"CountAsync",
106+
"SumAsync",
107+
"MinAsync",
108+
"MaxAsync",
109+
"AverageAsync",
110+
"Skip",
111+
"Take",
112+
"Any",
113+
}
114+
},
115+
{
116+
typeof(object),
117+
new List<string> { "ToString" }
118+
},
119+
};
121120

122121
public static readonly MethodInfo IsNull = typeof(CosmosLinqExtensions).GetMethod(nameof(CosmosLinqExtensions.IsNull))!;
123122

src/LogOtter.CosmosDb.EventStore/EventStreamApi/Handlers/BaseHandler.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ namespace LogOtter.CosmosDb.EventStore.EventStreamApi.Handlers;
66

77
internal abstract class BaseHandler : IHandler
88
{
9-
private static readonly JsonSerializerOptions JsonSerializerOptions =
10-
new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, DictionaryKeyPolicy = JsonNamingPolicy.CamelCase };
9+
private static readonly JsonSerializerOptions JsonSerializerOptions = new()
10+
{
11+
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
12+
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
13+
};
1114

1215
protected EventStreamsApiOptions Options { get; private set; } = null!;
1316

src/LogOtter.Obfuscate/Obfuscate.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ public static class Obfuscate
66
{
77
private const string ObfuscationString = "****";
88

9-
private static readonly Regex EmailRegex =
10-
new(@"^(?<Username>[A-Z0-9._%+-]+)@(?<DomainName>[A-Z0-9.-]+\.[A-Z]{2,})$", RegexOptions.IgnoreCase | RegexOptions.Compiled);
9+
private static readonly Regex EmailRegex = new(
10+
@"^(?<Username>[A-Z0-9._%+-]+)@(?<DomainName>[A-Z0-9.-]+\.[A-Z]{2,})$",
11+
RegexOptions.IgnoreCase | RegexOptions.Compiled
12+
);
1113

1214
public static string? Email(string? email)
1315
{

0 commit comments

Comments
 (0)