mirror of
https://github.com/bitwarden/cli
synced 2025-12-06 04:23:19 +00:00
[chore] Update jslib (#459)
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: e372bf242b...92a65b7b36
11
src/bw.ts
11
src/bw.ts
@@ -50,7 +50,11 @@ import { Program } from "./program";
|
|||||||
import { SendProgram } from "./send.program";
|
import { SendProgram } from "./send.program";
|
||||||
import { VaultProgram } from "./vault.program";
|
import { VaultProgram } from "./vault.program";
|
||||||
|
|
||||||
import { Account, AccountFactory } from "jslib-common/models/domain/account";
|
import { Account } from "jslib-common/models/domain/account";
|
||||||
|
import { GlobalState } from "jslib-common/models/domain/globalState";
|
||||||
|
|
||||||
|
import { GlobalStateFactory } from "jslib-common/factories/globalStateFactory";
|
||||||
|
import { StateFactory } from "jslib-common/factories/stateFactory";
|
||||||
|
|
||||||
// Polyfills
|
// Polyfills
|
||||||
(global as any).DOMParser = new jsdom.JSDOM().window.DOMParser;
|
(global as any).DOMParser = new jsdom.JSDOM().window.DOMParser;
|
||||||
@@ -131,7 +135,8 @@ export class Main {
|
|||||||
|
|
||||||
this.stateMigrationService = new StateMigrationService(
|
this.stateMigrationService = new StateMigrationService(
|
||||||
this.storageService,
|
this.storageService,
|
||||||
this.secureStorageService
|
this.secureStorageService,
|
||||||
|
new GlobalStateFactory(GlobalState)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.stateService = new StateService(
|
this.stateService = new StateService(
|
||||||
@@ -139,7 +144,7 @@ export class Main {
|
|||||||
this.secureStorageService,
|
this.secureStorageService,
|
||||||
this.logService,
|
this.logService,
|
||||||
this.stateMigrationService,
|
this.stateMigrationService,
|
||||||
new AccountFactory(Account)
|
new StateFactory(GlobalState, Account)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.cryptoService = new CryptoService(
|
this.cryptoService = new CryptoService(
|
||||||
|
|||||||
Reference in New Issue
Block a user