Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

redactValue

redactValue(value, keys?): unknown

Defined in: safeStringify.ts:335

Returns a copy of value with the given keys masked with REDACTED.

Copies in the 'clone' mode of SanitizeOptions: Date, RegExp, Map, Set, and binary values keep their classes; an Error becomes a plain Error with the same name, message, stack, and own enumerable properties; any other object becomes a plain object. A cyclic reference becomes '[Circular]', streams and Multer files become placeholder strings, and functions are returned by reference.

unknown

readonly string[] = DEFAULT_REDACT_KEYS

unknown