flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
15
BACK_BACK/node_modules/@elastic/transport/lib/security.d.ts
generated
vendored
Executable file
15
BACK_BACK/node_modules/@elastic/transport/lib/security.d.ts
generated
vendored
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
import { DiagnosticResult } from './types';
|
||||
import { RedactionOptions } from './Transport';
|
||||
/**
|
||||
* Clones an object and recursively loops through all keys, redacting their values if the key matches any of a list of strings.
|
||||
* @param obj: Object to clone and redact
|
||||
* @param additionalKeys: Extra keys that can be matched for redaction. Does not overwrite the default set.
|
||||
*/
|
||||
export declare function redactObject(obj: Record<string, any>, additionalKeys?: string[]): Record<string, any>;
|
||||
/**
|
||||
* Redacts a DiagnosticResult object using the provided options.
|
||||
* - 'off' does nothing
|
||||
* - 'remove' removes most optional properties, replaces non-optional properties with the simplest possible alternative
|
||||
* - 'replace' runs `redactObject`, which replaces secret keys with `[redacted]`
|
||||
*/
|
||||
export declare function redactDiagnostic(diag: DiagnosticResult, options: RedactionOptions): DiagnosticResult;
|
||||
Loading…
Add table
Add a link
Reference in a new issue