@localstack/appinspector-ui 1.0.196 → 1.0.197
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.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/spans-worker.js +3 -3
- package/package.json +1 -1
package/dist/spans-worker.js
CHANGED
|
@@ -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("
|
|
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 "
|
|
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 === "
|
|
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) => {
|