1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 03:23:50 +00:00

refactor utils service to utils

This commit is contained in:
Kyle Spearrin
2018-04-23 13:03:47 -04:00
parent 5e7115f78d
commit 0fa9fc58eb
16 changed files with 168 additions and 250 deletions

View File

@@ -30,4 +30,5 @@ export abstract class CryptoService {
decrypt: (cipherString: CipherString, key?: SymmetricCryptoKey) => Promise<ArrayBuffer>;
decryptToUtf8: (cipherString: CipherString, key?: SymmetricCryptoKey) => Promise<string>;
decryptFromBytes: (encBuf: ArrayBuffer, key: SymmetricCryptoKey) => Promise<ArrayBuffer>;
randomNumber: (min: number, max: number) => Promise<number>;
}

View File

@@ -21,4 +21,3 @@ export { SyncService } from './sync.service';
export { TokenService } from './token.service';
export { TotpService } from './totp.service';
export { UserService } from './user.service';
export { UtilsService } from './utils.service';

View File

@@ -1,7 +1,7 @@
import { PasswordHistory } from '../models/domain/passwordHistory';
export abstract class PasswordGenerationService {
generatePassword: (options: any) => string;
generatePassword: (options: any) => Promise<string>;
getOptions: () => any;
saveOptions: (options: any) => Promise<any>;
getHistory: () => Promise<PasswordHistory[]>;

View File

@@ -1,5 +0,0 @@
export abstract class UtilsService {
copyToClipboard: (text: string, doc?: Document) => void;
getHostname: (uriString: string) => string;
getHost: (uriString: string) => string;
}