@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
22 lines • 766 B
TypeScript
import type { IRole, IUser } from "../entities";
export interface MaskOptions {
/**
* @default *
*/
char?: string;
}
export declare const basicUserFields: string[];
export declare function isMasked(value: string): boolean;
export declare const mask: (str: string, leftUnmaskLength?: number, rightUnmaskLength?: number, options?: MaskOptions) => string;
export declare const maskSensitiveInfo: (data: any, user?: IUser, role?: IRole, route?: string) => any;
/**
* Mask fields of an object
* @param data - The object to mask
* @param options - The options
* @returns The masked object
*/
export declare const maskObject: (data: any, options: {
fields: string[];
char?: string;
}) => any;
//# sourceMappingURL=mask-sensitive-info.d.ts.map