@localstack/appinspector-ui 1.0.90 → 1.0.91
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 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26527,12 +26527,13 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26527
26527
|
requestPayload.MessageBody = tryParseJson(requestPayload.MessageBody);
|
|
26528
26528
|
}
|
|
26529
26529
|
}
|
|
26530
|
+
const isResponseSuppressed = selectedEvent.attributes?.["localstack.aws.service.response_suppressed"] === true;
|
|
26530
26531
|
const responsePayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.response"]);
|
|
26531
26532
|
if (parseNestedJson && isLambdaInvoke && responsePayload && typeof responsePayload === "object" && "Payload" in responsePayload) {
|
|
26532
26533
|
responsePayload.Payload = tryParseJson(responsePayload.Payload);
|
|
26533
26534
|
}
|
|
26534
26535
|
const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
|
|
26535
|
-
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0;
|
|
26536
|
+
const hasPayloads = requestPayload !== void 0 || responsePayload !== void 0 || exceptionPayload !== void 0 || isResponseSuppressed;
|
|
26536
26537
|
const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
|
|
26537
26538
|
return /* @__PURE__ */ jsxs130(Box14, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
|
|
26538
26539
|
/* @__PURE__ */ jsxs130(
|
|
@@ -26638,9 +26639,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26638
26639
|
/* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Request" }),
|
|
26639
26640
|
/* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
|
|
26640
26641
|
] }),
|
|
26641
|
-
responsePayload !== void 0 && /* @__PURE__ */ jsxs130(Box14, { children: [
|
|
26642
|
+
(responsePayload !== void 0 || isResponseSuppressed) && /* @__PURE__ */ jsxs130(Box14, { children: [
|
|
26642
26643
|
/* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Response" }),
|
|
26643
|
-
/* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
26644
|
+
isResponseSuppressed ? /* @__PURE__ */ jsx137(Box14, { sx: { py: 1 }, children: /* @__PURE__ */ jsx137(Alert3, { severity: "warning", sx: { mb: 1 }, children: "Response payload is available \u2014 upgrade your license to view" }) }) : /* @__PURE__ */ jsx137(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
|
|
26644
26645
|
] }),
|
|
26645
26646
|
exceptionPayload !== void 0 && /* @__PURE__ */ jsxs130(Box14, { children: [
|
|
26646
26647
|
/* @__PURE__ */ jsx137(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Exception" }),
|
|
@@ -26684,7 +26685,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
26684
26685
|
};
|
|
26685
26686
|
var PayloadViewer = memo10(({ testId, value }) => {
|
|
26686
26687
|
const theme = useTheme3();
|
|
26687
|
-
return /* @__PURE__ */ jsx137(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto",
|
|
26688
|
+
return /* @__PURE__ */ jsx137(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", py: 1 }, children: /* @__PURE__ */ jsx137(
|
|
26688
26689
|
JsonViewer,
|
|
26689
26690
|
{
|
|
26690
26691
|
displayDataTypes: false,
|