simple-redact
Version:
A simple redact lib
27 lines (26 loc) • 670 B
JavaScript
;
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' }] },
],
},
];