@golproductions/check 3.1.9 → 3.2.0
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.
- package/package.json +1 -1
- package/src/index.js +6 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { homedir, platform, arch } from "node:os";
|
|
|
5
5
|
import { pipeline } from "node:stream/promises";
|
|
6
6
|
import { Readable } from "node:stream";
|
|
7
7
|
|
|
8
|
-
const VERSION = "3.
|
|
8
|
+
const VERSION = "3.2.0";
|
|
9
9
|
const BINARY_VERSION = "3.0.0";
|
|
10
10
|
const API = "https://triage.golproductions.com/preflight";
|
|
11
11
|
const CDN = "https://pub-e55366a7f5994be9be04f0e205179f4a.r2.dev/releases";
|
|
@@ -764,7 +764,11 @@ async function main() {
|
|
|
764
764
|
|
|
765
765
|
if (d.verdict === "runnable") { out(f, true); }
|
|
766
766
|
else { out(f, false, d.reason || "denied — address the issue before continuing"); }
|
|
767
|
-
} catch {
|
|
767
|
+
} catch {
|
|
768
|
+
// Network failure or timeout: fail OPEN. An unreachable validation
|
|
769
|
+
// service must never block the user's work (Terms, section 5).
|
|
770
|
+
outCreditsExhausted(f, "check: validation service unreachable, command ran unverified. Check resumes automatically.");
|
|
771
|
+
}
|
|
768
772
|
}
|
|
769
773
|
|
|
770
774
|
main();
|