chore(deps): bump all dependencies; regenerate lockfile (#6580)

This commit is contained in:
Joshua Chen 2022-02-02 13:00:31 +08:00 committed by GitHub
parent d8eac86775
commit 661bc32402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1416 additions and 1767 deletions

View file

@ -74,8 +74,8 @@ type FacetFilters = Required<
function mergeFacetFilters(f1: FacetFilters, f2: FacetFilters): FacetFilters {
const normalize = (
f: FacetFilters,
): readonly string[] | ReadonlyArray<readonly string[]> =>
f instanceof Array ? f : [f];
): readonly string[] | ReadonlyArray<string | readonly string[]> =>
typeof f === 'string' ? [f] : f;
return [...normalize(f1), ...normalize(f2)] as FacetFilters;
}