Browse Source
Merge pull request #25520 from abpframework/skoc/nuget-packages
Remove unused project reference for AspNetCore.Components.Server in common.ps1
pull/25521/head
Volosoft Agent
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
3 deletions
-
nupkg/common.ps1
-
nupkg/push_packages.ps1
|
|
|
@ -112,7 +112,6 @@ $projects = ( |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.WebAssembly", |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.WebAssembly.Theming", |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.WebAssembly.Theming.Bundling", |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.Server", |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.Server.Theming", |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.MauiBlazor.Bundling", |
|
|
|
"framework/src/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming", |
|
|
|
|
|
|
|
@ -35,8 +35,13 @@ foreach($project in $projects) { |
|
|
|
if ($maxPushesPerHour -gt 0) |
|
|
|
{ |
|
|
|
$windowStart = (Get-Date).AddHours(-1) |
|
|
|
$recentPushes = $pushTimestamps | Where-Object { $_ -gt $windowStart } |
|
|
|
$pushTimestamps = [System.Collections.Generic.List[datetime]]$recentPushes |
|
|
|
$recentPushes = @($pushTimestamps | Where-Object { $_ -gt $windowStart }) |
|
|
|
$trimmedPushTimestamps = [System.Collections.Generic.List[datetime]]::new() |
|
|
|
foreach ($timestamp in $recentPushes) |
|
|
|
{ |
|
|
|
[void]$trimmedPushTimestamps.Add($timestamp) |
|
|
|
} |
|
|
|
$pushTimestamps = $trimmedPushTimestamps |
|
|
|
|
|
|
|
if ($pushTimestamps.Count -ge $maxPushesPerHour) |
|
|
|
{ |
|
|
|
|