@absolutejs/voice 0.0.22-beta.218 → 0.0.22-beta.219
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25021,7 +25021,7 @@ var buildVoiceObservabilityExport = async (options = {}) => {
|
|
|
25021
25021
|
operationsRecords: baseOperationsRecords,
|
|
25022
25022
|
sessionIds: options.sessionIds
|
|
25023
25023
|
});
|
|
25024
|
-
const shouldBuildOperationsRecords = options.includeOperationsRecords
|
|
25024
|
+
const shouldBuildOperationsRecords = options.includeOperationsRecords === true && options.store;
|
|
25025
25025
|
const builtOperationsRecords = shouldBuildOperationsRecords ? await Promise.all(sessionIds.map((sessionId) => buildVoiceOperationsRecord({
|
|
25026
25026
|
audit: options.audit,
|
|
25027
25027
|
redact: options.redact,
|
|
@@ -25038,9 +25038,9 @@ var buildVoiceObservabilityExport = async (options = {}) => {
|
|
|
25038
25038
|
const auditDeliverySummary = auditDeliveries ? await summarizeVoiceAuditSinkDeliveries(auditDeliveries) : undefined;
|
|
25039
25039
|
const operationArtifacts = operationsRecords.map((record) => createOperationArtifact(record, options.links?.operationsRecord?.(record.sessionId)));
|
|
25040
25040
|
const artifacts = [...operationArtifacts, ...options.artifacts ?? []];
|
|
25041
|
-
const operationHrefBySessionId = new Map(
|
|
25042
|
-
|
|
25043
|
-
options.links?.operationsRecord?.(
|
|
25041
|
+
const operationHrefBySessionId = new Map(sessionIds.map((sessionId) => [
|
|
25042
|
+
sessionId,
|
|
25043
|
+
options.links?.operationsRecord?.(sessionId)
|
|
25044
25044
|
]));
|
|
25045
25045
|
const envelopes = [
|
|
25046
25046
|
...events.map((event) => buildTraceEnvelope(event, operationHrefBySessionId.get(event.sessionId))),
|