UNPKG

simple-redact

Version:
27 lines (26 loc) 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toMask = exports.example = void 0; var ConfigRedact_1 = require("../typings/ConfigRedact"); exports.example = { a: '1', b: '2', c: { d: '4', e: '5', f: { g: '6', }, }, }; exports.toMask = [ { field: 'b', type: ConfigRedact_1.RedactMethod.REDACT }, { field: 'c', type: ConfigRedact_1.RedactMethod.REDACT, data: [ { field: 'd', type: ConfigRedact_1.RedactMethod.MASK }, { field: 'f', type: ConfigRedact_1.RedactMethod.MASK, data: [{ field: 'g' }] }, ], }, ];