File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1- version : 1.1 .{build}
1+ version : 2.0 .{build}
22skip_tags : true
33skip_branch_with_pr : true
44test : off
Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-authorization" ,
3- "version" : " 1.1 " ,
3+ "version" : " 2.0 " ,
44 "main" : " index.js" ,
55 "repository" : " git@github.com:graphql-dotnet/authorization.git" ,
66 "author" : " Joe McBride <joe@uicraftsman.com>" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ public static Task<AuthorizationResult> Authorize(
3030 public static void AuthorizeWith ( this IProvideMetadata type , string policy )
3131 {
3232 var list = GetPolicies ( type ) ;
33- list . Fill ( policy ) ;
33+ if ( ! list . Contains ( policy ) )
34+ {
35+ list . Add ( policy ) ;
36+ }
3437 type . Metadata [ PolicyKey ] = list ;
3538 }
3639
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <Description >A toolset for authorizing access to graph types for GraphQL .NET</Description >
5- <VersionPrefix >1.1 </VersionPrefix >
5+ <VersionPrefix >2.0 </VersionPrefix >
66 <Authors >Joe McBride</Authors >
77 <TargetFrameworks >netstandard1.3;net46</TargetFrameworks >
88 <AssemblyName >GraphQL.Authorization</AssemblyName >
2424 </ItemGroup >
2525
2626 <ItemGroup >
27- <PackageReference Include =" GraphQL" Version =" 2.0 .0" />
27+ <PackageReference Include =" GraphQL" Version =" 2.3 .0" />
2828 </ItemGroup >
2929
3030 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.3'" >
Original file line number Diff line number Diff line change 1313 </ItemGroup >
1414
1515 <ItemGroup >
16- <PackageReference Include =" GraphQL" Version =" 2.0 .0" />
16+ <PackageReference Include =" GraphQL" Version =" 2.3 .0" />
1717 <PackageReference Include =" GraphQL.Server.Ui.GraphiQL" Version =" 3.1.0" />
1818 <PackageReference Include =" GraphQL.Server.Transports.AspNetCore" Version =" 3.1.0" />
19- <PackageReference Include =" Microsoft.AspNetCore.All" Version =" 2.0.5 " />
19+ <PackageReference Include =" Microsoft.AspNetCore.All" Version =" 2.0.9 " />
2020 </ItemGroup >
2121
2222 <ItemGroup >
You can’t perform that action at this time.
0 commit comments