Fix storybook errors
This commit is contained in:
parent
6e19383a7d
commit
c63871d71b
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ export const _redactPath = (filePath: string): RedactFunction => {
|
||||||
throw new TypeError("'filePath' must be a string");
|
throw new TypeError("'filePath' must be a string");
|
||||||
}
|
}
|
||||||
|
|
||||||
const filePathPattern = exports._pathToRegExp(filePath);
|
const filePathPattern = _pathToRegExp(filePath);
|
||||||
|
|
||||||
return (text: string): string => {
|
return (text: string): string => {
|
||||||
if (!is.string(text)) {
|
if (!is.string(text)) {
|
||||||
|
@ -102,7 +102,7 @@ export const redactGroupIds = (text: string): string => {
|
||||||
const createRedactSensitivePaths = (
|
const createRedactSensitivePaths = (
|
||||||
paths: ReadonlyArray<string>
|
paths: ReadonlyArray<string>
|
||||||
): RedactFunction => {
|
): RedactFunction => {
|
||||||
return compose(paths.map(filePath => exports._redactPath(filePath)));
|
return compose(paths.map(filePath => _redactPath(filePath)));
|
||||||
};
|
};
|
||||||
|
|
||||||
const sensitivePaths: Array<string> = [];
|
const sensitivePaths: Array<string> = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue