@absolutejs/voice 0.0.22-beta.389 → 0.0.22-beta.390

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.
@@ -6413,10 +6413,12 @@ var buildRealCallProfileReadinessIssues = (report, options) => {
6413
6413
  }
6414
6414
  }
6415
6415
  }
6416
- if (report.recommendations.profiles.some((item) => item.status === "fail")) {
6416
+ const requiredProfileIds = new Set(options.requiredProfileIds ?? []);
6417
+ const recommendationProfiles = requiredProfileIds.size === 0 ? report.recommendations.profiles : report.recommendations.profiles.filter((item) => requiredProfileIds.has(item.id));
6418
+ if (recommendationProfiles.some((item) => item.status === "fail")) {
6417
6419
  issues.push("At least one real-call profile recommendation is failing.");
6418
6420
  }
6419
- if (report.recommendations.profiles.some((item) => item.status === "warn")) {
6421
+ if (recommendationProfiles.some((item) => item.status === "warn")) {
6420
6422
  warnings.push("At least one real-call profile recommendation is warning.");
6421
6423
  }
6422
6424
  return { issues, warnings };
package/dist/index.js CHANGED
@@ -16932,10 +16932,12 @@ var buildRealCallProfileReadinessIssues = (report, options) => {
16932
16932
  }
16933
16933
  }
16934
16934
  }
16935
- if (report.recommendations.profiles.some((item) => item.status === "fail")) {
16935
+ const requiredProfileIds = new Set(options.requiredProfileIds ?? []);
16936
+ const recommendationProfiles = requiredProfileIds.size === 0 ? report.recommendations.profiles : report.recommendations.profiles.filter((item) => requiredProfileIds.has(item.id));
16937
+ if (recommendationProfiles.some((item) => item.status === "fail")) {
16936
16938
  issues.push("At least one real-call profile recommendation is failing.");
16937
16939
  }
16938
- if (report.recommendations.profiles.some((item) => item.status === "warn")) {
16940
+ if (recommendationProfiles.some((item) => item.status === "warn")) {
16939
16941
  warnings.push("At least one real-call profile recommendation is warning.");
16940
16942
  }
16941
16943
  return { issues, warnings };
@@ -4000,10 +4000,12 @@ var buildRealCallProfileReadinessIssues = (report, options) => {
4000
4000
  }
4001
4001
  }
4002
4002
  }
4003
- if (report.recommendations.profiles.some((item) => item.status === "fail")) {
4003
+ const requiredProfileIds = new Set(options.requiredProfileIds ?? []);
4004
+ const recommendationProfiles = requiredProfileIds.size === 0 ? report.recommendations.profiles : report.recommendations.profiles.filter((item) => requiredProfileIds.has(item.id));
4005
+ if (recommendationProfiles.some((item) => item.status === "fail")) {
4004
4006
  issues.push("At least one real-call profile recommendation is failing.");
4005
4007
  }
4006
- if (report.recommendations.profiles.some((item) => item.status === "warn")) {
4008
+ if (recommendationProfiles.some((item) => item.status === "warn")) {
4007
4009
  warnings.push("At least one real-call profile recommendation is warning.");
4008
4010
  }
4009
4011
  return { issues, warnings };
package/dist/vue/index.js CHANGED
@@ -3921,10 +3921,12 @@ var buildRealCallProfileReadinessIssues = (report, options) => {
3921
3921
  }
3922
3922
  }
3923
3923
  }
3924
- if (report.recommendations.profiles.some((item) => item.status === "fail")) {
3924
+ const requiredProfileIds = new Set(options.requiredProfileIds ?? []);
3925
+ const recommendationProfiles = requiredProfileIds.size === 0 ? report.recommendations.profiles : report.recommendations.profiles.filter((item) => requiredProfileIds.has(item.id));
3926
+ if (recommendationProfiles.some((item) => item.status === "fail")) {
3925
3927
  issues.push("At least one real-call profile recommendation is failing.");
3926
3928
  }
3927
- if (report.recommendations.profiles.some((item) => item.status === "warn")) {
3929
+ if (recommendationProfiles.some((item) => item.status === "warn")) {
3928
3930
  warnings.push("At least one real-call profile recommendation is warning.");
3929
3931
  }
3930
3932
  return { issues, warnings };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.389",
3
+ "version": "0.0.22-beta.390",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",