@localstack/appinspector-ui 1.0.196 → 1.0.198

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.
@@ -179,7 +179,7 @@
179
179
  const enforcements = new Set(events.map((event) => event.enforcement).filter(Boolean));
180
180
  if (enforcements.size > 0) {
181
181
  if (enforcements.has("deny")) return "deny";
182
- if (enforcements.has("warn")) return "warn";
182
+ if (enforcements.has("allow_with_warning")) return "allow_with_warning";
183
183
  return void 0;
184
184
  }
185
185
  return getIamEnforcementFromOperationStatus(span);
@@ -187,7 +187,7 @@
187
187
  var getIamEnforcementFromOperationStatus = (span) => {
188
188
  const status = span.operation_status;
189
189
  if (status === "iam_explicit_deny" || status === "iam_implicit_deny") return "deny";
190
- if (status === "iam_explicit_warn" || status === "iam_implicit_warn") return "warn";
190
+ if (status === "iam_explicit_warn" || status === "iam_implicit_warn") return "allow_with_warning";
191
191
  return void 0;
192
192
  };
193
193
 
@@ -199,7 +199,7 @@
199
199
  const iamEvents = getIamEvents(span);
200
200
  const enforcement = getIamEnforcement(span, iamEvents);
201
201
  const iamDenied = enforcement === "deny";
202
- const iamWarned = enforcement === "warn";
202
+ const iamWarned = enforcement === "allow_with_warning";
203
203
  const errorMessages = (span.errors ?? []).filter((item) => item.level === "error");
204
204
  const warningMessages = (span.errors ?? []).filter((item) => item.level === "warning");
205
205
  const denials = iamEvents.flatMap((event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localstack/appinspector-ui",
3
- "version": "1.0.196",
3
+ "version": "1.0.198",
4
4
  "description": "LocalStack AppInspector UI",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",