Fix storybook errors

This commit is contained in:
Fedor Indutny 2021-06-01 13:40:55 -07:00 committed by GitHub
parent 6e19383a7d
commit c63871d71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export const _redactPath = (filePath: string): RedactFunction => {
throw new TypeError("'filePath' must be a string");
}
const filePathPattern = exports._pathToRegExp(filePath);
const filePathPattern = _pathToRegExp(filePath);
return (text: string): string => {
if (!is.string(text)) {
@ -102,7 +102,7 @@ export const redactGroupIds = (text: string): string => {
const createRedactSensitivePaths = (
paths: ReadonlyArray<string>
): RedactFunction => {
return compose(paths.map(filePath => exports._redactPath(filePath)));
return compose(paths.map(filePath => _redactPath(filePath)));
};
const sensitivePaths: Array<string> = [];