UNPKG

@qiwi/masker-secret-key

Version:

Hide sensitive data by key/path pattern match

11 lines (10 loc) 541 B
import { IMaskerPipe, IMaskerPipeName, IMaskerPipeline, SyncGuard, IEnrichedContext, IMaskerPipeOutput } from '@qiwi/masker-common'; export declare const name: IMaskerPipeName; export interface TSecretDirective { pattern: RegExp | string; pipeline: IMaskerPipeline; } export declare const defaultOpts: TSecretDirective; export declare const exec: <C extends IEnrichedContext>({ path, context, execute, opts: { pipeline, pattern } }: C) => SyncGuard<IMaskerPipeOutput, C>; export declare const pipe: IMaskerPipe; export default pipe;