mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 07:32:54 +00:00
* fix(ci): reduce flaky failures and PR runtime * fix(ci): avoid label scope failures * fix(ci): tolerate GitHub download outages * fix(ci): cover packaged inputs in PR triggers * fix(ci): keep test-only changes out of package builds * perf(ci): reuse unchanged ET PR builds * fix: address Codex review on PR #2474 * fix(ci): harden automation PR handoffs * fix(ci): preserve reused implementation branches * fix(ci): deduplicate automation follow-ups * fix(ci): deduplicate automation follow-ups * fix(ci): ignore remapped stale Codex findings * fix(ci): use the established handoff label * fix(ci): isolate manual package validations * fix(ci): refresh existing Nix metadata PRs * fix(ci): hand off divergent implementation branches * fix(ci): serialize Homebrew tap updates --------- Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com>
21 lines
1.2 KiB
Diff
21 lines
1.2 KiB
Diff
diff --git a/node_modules/app-builder-lib/out/util/electronGet.js b/node_modules/app-builder-lib/out/util/electronGet.js
|
|
index c433dbb..1274151 100644
|
|
--- a/node_modules/app-builder-lib/out/util/electronGet.js
|
|
+++ b/node_modules/app-builder-lib/out/util/electronGet.js
|
|
@@ -252,12 +252,12 @@ async function downloadArtifactToFile(config, label) {
|
|
interval: 2000,
|
|
backoff: 2000,
|
|
shouldRetry: (e) => {
|
|
- var _a;
|
|
if (e instanceof builder_util_runtime_1.HttpError) {
|
|
return e.isServerError();
|
|
}
|
|
- if (typeof ((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.statusCode) === "number") {
|
|
- return e.response.statusCode >= 500;
|
|
+ const responseStatus = e?.response?.statusCode ?? e?.response?.status;
|
|
+ if (typeof responseStatus === "number") {
|
|
+ return responseStatus >= 500;
|
|
}
|
|
return typeof (e === null || e === void 0 ? void 0 : e.code) === "string" && ["ENOTFOUND", "ETIMEDOUT", "ECONNRESET", "EPIPE", "ENOENT"].includes(e.code);
|
|
},
|