@git.zone/tsdocker 1.17.2 → 1.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@git.zone/tsdocker',
|
|
6
|
-
version: '1.17.
|
|
6
|
+
version: '1.17.4',
|
|
7
7
|
description: 'develop npm modules cross platform with docker'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxvQkFBb0I7SUFDMUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLGdEQUFnRDtDQUM5RCxDQUFBIn0=
|
|
@@ -14,7 +14,7 @@ export class RegistryCopy {
|
|
|
14
14
|
* Retries on network errors and 5xx; does NOT retry on 4xx client errors.
|
|
15
15
|
* On 401, clears the token cache entry so the next attempt re-authenticates.
|
|
16
16
|
*/
|
|
17
|
-
async fetchWithRetry(url, options, timeoutMs = 300_000, maxRetries =
|
|
17
|
+
async fetchWithRetry(url, options, timeoutMs = 300_000, maxRetries = 6) {
|
|
18
18
|
const method = (options.method || 'GET').toUpperCase();
|
|
19
19
|
let lastError = null;
|
|
20
20
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -29,7 +29,7 @@ export class RegistryCopy {
|
|
|
29
29
|
url: string,
|
|
30
30
|
options: RequestInit & { duplex?: string },
|
|
31
31
|
timeoutMs: number = 300_000,
|
|
32
|
-
maxRetries: number =
|
|
32
|
+
maxRetries: number = 6,
|
|
33
33
|
): Promise<Response> {
|
|
34
34
|
const method = (options.method || 'GET').toUpperCase();
|
|
35
35
|
let lastError: Error | null = null;
|