mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-14 23:33:19 +00:00
Update jslib (#222)
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 92a65b7b36...448856cc22
@@ -45,7 +45,6 @@ import { StateMigrationService } from "../../services/stateMigration.service";
|
|||||||
|
|
||||||
import { Account } from "../../models/account";
|
import { Account } from "../../models/account";
|
||||||
|
|
||||||
import { GlobalStateFactory } from "jslib-common/factories/globalStateFactory";
|
|
||||||
import { StateFactory } from "jslib-common/factories/stateFactory";
|
import { StateFactory } from "jslib-common/factories/stateFactory";
|
||||||
|
|
||||||
import { GlobalState } from "jslib-common/models/domain/globalState";
|
import { GlobalState } from "jslib-common/models/domain/globalState";
|
||||||
@@ -206,7 +205,7 @@ export function initFactory(
|
|||||||
new StateMigrationService(
|
new StateMigrationService(
|
||||||
storageService,
|
storageService,
|
||||||
secureStorageService,
|
secureStorageService,
|
||||||
new GlobalStateFactory(GlobalState)
|
new StateFactory(GlobalState, Account)
|
||||||
),
|
),
|
||||||
deps: [StorageServiceAbstraction, "SECURE_STORAGE"],
|
deps: [StorageServiceAbstraction, "SECURE_STORAGE"],
|
||||||
},
|
},
|
||||||
@@ -223,7 +222,7 @@ export function initFactory(
|
|||||||
secureStorageService,
|
secureStorageService,
|
||||||
logService,
|
logService,
|
||||||
stateMigrationService,
|
stateMigrationService,
|
||||||
true, // TODO: It seems like we aren't applying this from settings anywhere. Is toggling secure storage working?
|
true,
|
||||||
new StateFactory(GlobalState, Account)
|
new StateFactory(GlobalState, Account)
|
||||||
),
|
),
|
||||||
deps: [
|
deps: [
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export class Main {
|
|||||||
this.stateMigrationService = new StateMigrationService(
|
this.stateMigrationService = new StateMigrationService(
|
||||||
this.storageService,
|
this.storageService,
|
||||||
this.secureStorageService,
|
this.secureStorageService,
|
||||||
new GlobalStateFactory(GlobalState)
|
new StateFactory(GlobalState, Account)
|
||||||
);
|
);
|
||||||
|
|
||||||
this.stateService = new StateService(
|
this.stateService = new StateService(
|
||||||
|
|||||||
@@ -43,14 +43,17 @@ const keys = {
|
|||||||
|
|
||||||
const StoredSecurely = "[STORED SECURELY]";
|
const StoredSecurely = "[STORED SECURELY]";
|
||||||
|
|
||||||
export class StateService extends BaseStateService<Account> implements StateServiceAbstraction {
|
export class StateService
|
||||||
|
extends BaseStateService<GlobalState, Account>
|
||||||
|
implements StateServiceAbstraction
|
||||||
|
{
|
||||||
constructor(
|
constructor(
|
||||||
protected storageService: StorageService,
|
protected storageService: StorageService,
|
||||||
protected secureStorageService: StorageService,
|
protected secureStorageService: StorageService,
|
||||||
protected logService: LogService,
|
protected logService: LogService,
|
||||||
protected stateMigrationService: StateMigrationService,
|
protected stateMigrationService: StateMigrationService,
|
||||||
private useSecureStorageForSecrets = true,
|
private useSecureStorageForSecrets = true,
|
||||||
protected stateFactory: StateFactory<Account, GlobalState>
|
protected stateFactory: StateFactory<GlobalState, Account>
|
||||||
) {
|
) {
|
||||||
super(storageService, secureStorageService, logService, stateMigrationService, stateFactory);
|
super(storageService, secureStorageService, logService, stateMigrationService, stateFactory);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user