mirror of
https://github.com/bitwarden/cli
synced 2025-12-11 13:53:25 +00:00
[chore] Update jslib
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: cc285e5ea7...54c6a4b3c3
@@ -50,6 +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";
|
||||||
|
|
||||||
// Polyfills
|
// Polyfills
|
||||||
(global as any).DOMParser = new jsdom.JSDOM().window.DOMParser;
|
(global as any).DOMParser = new jsdom.JSDOM().window.DOMParser;
|
||||||
|
|
||||||
@@ -136,7 +141,8 @@ export class Main {
|
|||||||
this.storageService,
|
this.storageService,
|
||||||
this.secureStorageService,
|
this.secureStorageService,
|
||||||
this.logService,
|
this.logService,
|
||||||
this.stateMigrationService
|
this.stateMigrationService,
|
||||||
|
new AccountFactory(Account),
|
||||||
);
|
);
|
||||||
|
|
||||||
this.cryptoService = new CryptoService(
|
this.cryptoService = new CryptoService(
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import { PasswordGenerationService } from "jslib-common/abstractions/passwordGen
|
|||||||
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
||||||
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
||||||
import { StateService } from "jslib-common/abstractions/state.service";
|
import { StateService } from "jslib-common/abstractions/state.service";
|
||||||
import { SyncService } from "jslib-common/abstractions/sync.service";
|
|
||||||
|
|
||||||
import { MessageResponse } from "jslib-node/cli/models/response/messageResponse";
|
import { MessageResponse } from "jslib-node/cli/models/response/messageResponse";
|
||||||
|
|
||||||
@@ -27,7 +26,6 @@ export class LoginCommand extends BaseLoginCommand {
|
|||||||
authService: AuthService,
|
authService: AuthService,
|
||||||
apiService: ApiService,
|
apiService: ApiService,
|
||||||
cryptoFunctionService: CryptoFunctionService,
|
cryptoFunctionService: CryptoFunctionService,
|
||||||
syncService: SyncService,
|
|
||||||
i18nService: I18nService,
|
i18nService: I18nService,
|
||||||
environmentService: EnvironmentService,
|
environmentService: EnvironmentService,
|
||||||
passwordGenerationService: PasswordGenerationService,
|
passwordGenerationService: PasswordGenerationService,
|
||||||
@@ -35,7 +33,7 @@ export class LoginCommand extends BaseLoginCommand {
|
|||||||
stateService: StateService,
|
stateService: StateService,
|
||||||
cryptoService: CryptoService,
|
cryptoService: CryptoService,
|
||||||
policyService: PolicyService,
|
policyService: PolicyService,
|
||||||
keyConnectorService: KeyConnectorService,
|
private keyConnectorService: KeyConnectorService,
|
||||||
private logoutCallback: () => Promise<void>
|
private logoutCallback: () => Promise<void>
|
||||||
) {
|
) {
|
||||||
super(
|
super(
|
||||||
@@ -50,8 +48,6 @@ export class LoginCommand extends BaseLoginCommand {
|
|||||||
cryptoService,
|
cryptoService,
|
||||||
policyService,
|
policyService,
|
||||||
"cli",
|
"cli",
|
||||||
syncService,
|
|
||||||
keyConnectorService
|
|
||||||
);
|
);
|
||||||
this.logout = this.logoutCallback;
|
this.logout = this.logoutCallback;
|
||||||
this.validatedParams = async () => {
|
this.validatedParams = async () => {
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ export class Program extends BaseProgram {
|
|||||||
this.main.authService,
|
this.main.authService,
|
||||||
this.main.apiService,
|
this.main.apiService,
|
||||||
this.main.cryptoFunctionService,
|
this.main.cryptoFunctionService,
|
||||||
this.main.syncService,
|
|
||||||
this.main.i18nService,
|
this.main.i18nService,
|
||||||
this.main.environmentService,
|
this.main.environmentService,
|
||||||
this.main.passwordGenerationService,
|
this.main.passwordGenerationService,
|
||||||
|
|||||||
Reference in New Issue
Block a user