@osfactory/har 0.45.0 → 0.46.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/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32051,6 +32051,7 @@ async function buildPortalPayload(repoPath, controlApiUrl, since, full = false)
|
|
|
32051
32051
|
const workUnits = listWorkUnits(harnessRoot);
|
|
32052
32052
|
const attempts = listWorkAttempts(harnessRoot);
|
|
32053
32053
|
const validationBindings = listValidationBindings(harnessRoot);
|
|
32054
|
+
const userEmail = resolvePortalUserEmail();
|
|
32054
32055
|
const { usage: usage2, events, maxSyncedAt } = await collectPortalTelemetry(
|
|
32055
32056
|
repoPath,
|
|
32056
32057
|
status.slots,
|
|
@@ -32069,13 +32070,16 @@ async function buildPortalPayload(repoPath, controlApiUrl, since, full = false)
|
|
|
32069
32070
|
...stagesRegistry ? { stagesRegistry } : {},
|
|
32070
32071
|
slots: status.slots,
|
|
32071
32072
|
generatedAt: status.generatedAt,
|
|
32072
|
-
...validations.length > 0 ? {
|
|
32073
|
+
...validations.length > 0 ? {
|
|
32074
|
+
validations: userEmail ? validations.map((v2) => ({ ...v2, userEmail })) : validations
|
|
32075
|
+
} : {},
|
|
32073
32076
|
...workUnits.length > 0 ? { workUnits } : {},
|
|
32074
32077
|
...attempts.length > 0 ? { attempts } : {},
|
|
32075
32078
|
...validationBindings.length > 0 ? { validationBindings } : {},
|
|
32076
32079
|
...usage2.length > 0 ? { usage: usage2 } : {}
|
|
32077
32080
|
};
|
|
32078
|
-
|
|
32081
|
+
const runsPayload = userEmail ? runs.map((run2) => ({ ...run2, userEmail })) : runs;
|
|
32082
|
+
return { syncBody, runs: runsPayload, events, maxSyncedAt };
|
|
32079
32083
|
}
|
|
32080
32084
|
async function isControlApiReachable(apiUrl = getControlApiUrl()) {
|
|
32081
32085
|
try {
|