UNPKG

@mittwald/kubernetes

Version:

Kubernetes client library

18 lines 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.redactResponseBodyForLogging = void 0; function redactResponseBodyForLogging(body) { if (typeof body !== "object") { return body; } if ("kind" in body && body.kind === "Secret") { const out = structuredClone(body); for (const key of Object.keys(out.data)) { out.data[key] = "[REDACTED]"; } return out; } return body; } exports.redactResponseBodyForLogging = redactResponseBodyForLogging; //# sourceMappingURL=security.js.map