UNPKG

n8n

Version:

n8n Workflow Automation Tool

21 lines 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveOutputRedaction = resolveOutputRedaction; const agents_1 = require("@n8n/agents"); function resolveOutputRedaction(config) { if (config.durableLog) return false; if (!config.outputRedactionEnabled) return false; const detect = config.outputRedactionPii .split(',') .map((value) => value.trim()) .filter((value) => agents_1.SUPPORTED_PII_CATEGORIES.includes(value)); const placeholder = config.outputRedactionPlaceholder; return { secrets: config.outputRedactionSecrets, detect, ...(placeholder ? { placeholder } : {}), }; } //# sourceMappingURL=output-redaction-config.js.map