Skip to content

routier-collection


routier-collection / core/src / redactEntity

Function: redactEntity() ​

redactEntity<TEntity, TValue>(schema, row): UnknownRecord | TValue

Defined in: core/src/schema/utils/redactEntity.ts:27

A copy of row with the value of every sensitive property replaced by REDACTED, for Routier's own logs. The row itself is not changed, and a row with nothing sensitive in it is returned as it is.

Type Parameters ​

TEntity ​

TEntity extends object

TValue ​

TValue

Parameters ​

schema ​

sensitiveProperties ​

readonly PropertyInfo<TEntity>[]

row ​

TValue

Returns ​

UnknownRecord | TValue

Released under the MIT License.