fix(registry): increase default maxRetries in fetchWithRetry from 3 to 6 to improve resilience when fetching registry resources

This commit is contained in:
2026-02-07 12:58:44 +00:00
parent 4585801f32
commit a4552498ac
3 changed files with 9 additions and 2 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tsdocker',
version: '1.17.2',
version: '1.17.3',
description: 'develop npm modules cross platform with docker'
}

View File

@@ -29,7 +29,7 @@ export class RegistryCopy {
url: string,
options: RequestInit & { duplex?: string },
timeoutMs: number = 300_000,
maxRetries: number = 3,
maxRetries: number = 6,
): Promise<Response> {
const method = (options.method || 'GET').toUpperCase();
let lastError: Error | null = null;