@absolutejs/voice 0.0.22-beta.307 → 0.0.22-beta.308

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.
@@ -4478,7 +4478,7 @@ var assertVoiceLiveOpsEvidence = (input = {}) => {
4478
4478
  };
4479
4479
  var evaluateVoiceLiveOpsControlEvidence = (input = {}) => {
4480
4480
  const issues = [];
4481
- const results = input.results ?? [];
4481
+ const results = (input.results ?? []).filter((result) => Boolean(result));
4482
4482
  const controls = results.map((result) => result.control).filter((control) => Boolean(control));
4483
4483
  const finalControl = input.finalControl ?? controls.at(-1);
4484
4484
  const actions = uniqueSorted(results.map((result) => result.action).filter((action) => isVoiceLiveOpsAction(action)));
package/dist/index.js CHANGED
@@ -14668,7 +14668,7 @@ var assertVoiceLiveOpsEvidence = (input = {}) => {
14668
14668
  };
14669
14669
  var evaluateVoiceLiveOpsControlEvidence = (input = {}) => {
14670
14670
  const issues = [];
14671
- const results = input.results ?? [];
14671
+ const results = (input.results ?? []).filter((result) => Boolean(result));
14672
14672
  const controls = results.map((result) => result.control).filter((control) => Boolean(control));
14673
14673
  const finalControl = input.finalControl ?? controls.at(-1);
14674
14674
  const actions = uniqueSorted2(results.map((result) => result.action).filter((action) => isVoiceLiveOpsAction(action)));
package/dist/liveOps.d.ts CHANGED
@@ -77,9 +77,9 @@ export type VoiceLiveOpsControlEvidenceInput = {
77
77
  requireFinalOperatorTakeover?: boolean;
78
78
  requiredActions?: VoiceLiveOpsAction[];
79
79
  requiredStatuses?: VoiceLiveOpsControlStatus[];
80
- results?: Array<Partial<Omit<VoiceLiveOpsActionResult, 'ok'>> & {
80
+ results?: Array<(Partial<Omit<VoiceLiveOpsActionResult, 'ok'>> & {
81
81
  ok?: boolean;
82
- }>;
82
+ }) | null | undefined>;
83
83
  };
84
84
  export type VoiceLiveOpsControlEvidenceReport = {
85
85
  actionCount: number;
@@ -1839,7 +1839,7 @@ var assertVoiceLiveOpsEvidence = (input = {}) => {
1839
1839
  };
1840
1840
  var evaluateVoiceLiveOpsControlEvidence = (input = {}) => {
1841
1841
  const issues = [];
1842
- const results = input.results ?? [];
1842
+ const results = (input.results ?? []).filter((result) => Boolean(result));
1843
1843
  const controls = results.map((result) => result.control).filter((control) => Boolean(control));
1844
1844
  const finalControl = input.finalControl ?? controls.at(-1);
1845
1845
  const actions = uniqueSorted(results.map((result) => result.action).filter((action) => isVoiceLiveOpsAction(action)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.307",
3
+ "version": "0.0.22-beta.308",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",