Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update IdentityGenerator return type (#1010)
Leendert de Borst0dac97f4ff60
diff --git a/apps/browser-extension/src/utils/dist/shared/identity-generator/index.d.ts b/apps/browser-extension/src/utils/dist/shared/identity-generator/index.d.tsindex c469aaa27..a59362854 100644--- a/apps/browser-extension/src/utils/dist/shared/identity-generator/index.d.ts+++ b/apps/browser-extension/src/utils/dist/shared/identity-generator/index.d.ts@@ -137,7 +137,7 @@ declare class UsernameEmailGenerator {* @param language - The language to use for generating the identity (e.g. "en", "nl").* @returns A new identity generator instance.*/-declare const CreateIdentityGenerator: (language: string) => IIdentityGenerator;+declare const CreateIdentityGenerator: (language: string) => IdentityGenerator;/*** Creates a new username email generator. This is used by the .NET Blazor WASM JSinteropdiff --git a/apps/mobile-app/utils/dist/shared/identity-generator/index.d.ts b/apps/mobile-app/utils/dist/shared/identity-generator/index.d.tsindex c469aaa27..a59362854 100644--- a/apps/mobile-app/utils/dist/shared/identity-generator/index.d.ts+++ b/apps/mobile-app/utils/dist/shared/identity-generator/index.d.ts@@ -137,7 +137,7 @@ declare class UsernameEmailGenerator {* @param language - The language to use for generating the identity (e.g. "en", "nl").* @returns A new identity generator instance.*/-declare const CreateIdentityGenerator: (language: string) => IIdentityGenerator;+declare const CreateIdentityGenerator: (language: string) => IdentityGenerator;/*** Creates a new username email generator. This is used by the .NET Blazor WASM JSinteropdiff --git a/apps/server/AliasVault.Client/wwwroot/js/dist/shared/identity-generator/index.d.ts b/apps/server/AliasVault.Client/wwwroot/js/dist/shared/identity-generator/index.d.tsindex c469aaa27..a59362854 100644--- a/apps/server/AliasVault.Client/wwwroot/js/dist/shared/identity-generator/index.d.ts+++ b/apps/server/AliasVault.Client/wwwroot/js/dist/shared/identity-generator/index.d.ts@@ -137,7 +137,7 @@ declare class UsernameEmailGenerator {* @param language - The language to use for generating the identity (e.g. "en", "nl").* @returns A new identity generator instance.*/-declare const CreateIdentityGenerator: (language: string) => IIdentityGenerator;+declare const CreateIdentityGenerator: (language: string) => IdentityGenerator;/*** Creates a new username email generator. This is used by the .NET Blazor WASM JSinteropdiff --git a/shared/identity-generator/src/factories/IdentityGeneratorFactory.ts b/shared/identity-generator/src/factories/IdentityGeneratorFactory.tsindex 68237cfce..8ad02ebe2 100644--- a/shared/identity-generator/src/factories/IdentityGeneratorFactory.ts+++ b/shared/identity-generator/src/factories/IdentityGeneratorFactory.ts@@ -1,13 +1,13 @@+import { IdentityGenerator } from "src/implementations/base/IdentityGenerator";import { IdentityGeneratorEn } from "src/implementations/IdentityGeneratorEn";import { IdentityGeneratorNl } from "src/implementations/IdentityGeneratorNl";-import { IIdentityGenerator } from "src/interfaces/IIdentityGenerator";/*** Creates a new identity generator based on the language.* @param language - The language to use for generating the identity (e.g. "en", "nl").* @returns A new identity generator instance.*/-export const CreateIdentityGenerator = (language: string): IIdentityGenerator => {+export const CreateIdentityGenerator = (language: string): IdentityGenerator => {switch (language) {case 'en':return new IdentityGeneratorEn();