1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 05:00:10 +00:00
This commit is contained in:
✨ Audrey ✨
2025-03-07 18:25:31 -05:00
parent 2248340956
commit 090c19fa5e

View File

@@ -1,11 +1,20 @@
import { Algorithm as AlgorithmData, AlgorithmsByType as AlgorithmsByTypeData, Type as TypeData } from "./data";
import {
Algorithm as AlgorithmData,
AlgorithmsByType as AlgorithmsByTypeData,
Type as TypeData,
} from "./data";
import { CredentialType, CredentialAlgorithm } from "./type";
// `CredentialAlgorithm` is defined in terms of `ABT`; supplying
// type information in the barrel file breaks a circular dependency.
/** Credential generation algorithms grouped by purpose. */
export const AlgorithmsByType: Record<CredentialType, ReadonlyArray<CredentialAlgorithm>> = AlgorithmsByTypeData;
export const Algorithms: ReadonlyArray<CredentialAlgorithm> = Object.freeze(Object.values(AlgorithmData));
export const AlgorithmsByType: Record<
CredentialType,
ReadonlyArray<CredentialAlgorithm>
> = AlgorithmsByTypeData;
export const Algorithms: ReadonlyArray<CredentialAlgorithm> = Object.freeze(
Object.values(AlgorithmData),
);
export const Types: ReadonlyArray<CredentialType> = Object.freeze(Object.values(TypeData));
export { Profile, Type, Algorithm } from "./data";