codeproof 1.2.0 → 1.2.1
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/commands/reportDashboard.js +5 -15
- package/commands/run.js +6 -17
- package/package.json +1 -1
|
@@ -40,21 +40,11 @@ export async function runReportDashboard({ cwd }) {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
withFailOpenIntegration(() => {
|
|
49
|
-
sendReportToServer(latestReport, {
|
|
50
|
-
enabled: true,
|
|
51
|
-
endpointUrl: integration.endpointUrl
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
logInfo("Report sent to server.");
|
|
55
|
-
} else {
|
|
56
|
-
reportFeatureDisabled("Integration", verbose, logInfo);
|
|
57
|
-
}
|
|
43
|
+
// Integrations are fail-open: never throw on network errors.
|
|
44
|
+
withFailOpenIntegration(() => {
|
|
45
|
+
sendReportToServer(latestReport, { enabled: true });
|
|
46
|
+
});
|
|
47
|
+
logInfo("Report sent to server.");
|
|
58
48
|
|
|
59
49
|
if (latestReport?.projectId) {
|
|
60
50
|
logInfo(`View dashboard: https://dashboard.codeproof.dev/project/${latestReport.projectId}`);
|
package/commands/run.js
CHANGED
|
@@ -160,23 +160,12 @@ export async function runCli({ args = [], cwd }) {
|
|
|
160
160
|
writeReport({ projectRoot: gitRoot, report });
|
|
161
161
|
logSuccess("Report saved locally.");
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
await withFailOpenIntegration(async () => {
|
|
170
|
-
// Network calls are fail-open; never affect exit codes.
|
|
171
|
-
return await sendReportToServer(report, {
|
|
172
|
-
enabled: true,
|
|
173
|
-
endpointUrl: integration.endpointUrl
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
logSuccess("Report synced to server.");
|
|
177
|
-
} else {
|
|
178
|
-
reportFeatureDisabled("Integration", verbose, logInfo);
|
|
179
|
-
}
|
|
163
|
+
logInfo("Syncing report to server...");
|
|
164
|
+
await withFailOpenIntegration(async () => {
|
|
165
|
+
// Network calls are fail-open; never affect exit codes.
|
|
166
|
+
return await sendReportToServer(report, { enabled: true });
|
|
167
|
+
});
|
|
168
|
+
logSuccess("Report synced to server.");
|
|
180
169
|
}, () => {
|
|
181
170
|
logWarn("Failed to process report. Continuing without blocking.");
|
|
182
171
|
});
|