From 7733b95a714190096406deb16f28e02345560011 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 23 Sep 2020 11:59:30 -0400 Subject: [PATCH] update jslib --- jslib | 2 +- src/commands/login.command.ts | 5 +++-- src/program.ts | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jslib b/jslib index 5e0a2d1d99..5cb3e9c965 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 5e0a2d1d998b5d36b093f3eff032453421680a41 +Subproject commit 5cb3e9c965269a7e442536fa1b6ba00add2c7153 diff --git a/src/commands/login.command.ts b/src/commands/login.command.ts index 8efb9faf7a..0300926cd8 100644 --- a/src/commands/login.command.ts +++ b/src/commands/login.command.ts @@ -6,6 +6,7 @@ import { CryptoFunctionService } from 'jslib/abstractions/cryptoFunction.service import { EnvironmentService } from 'jslib/abstractions/environment.service'; import { I18nService } from 'jslib/abstractions/i18n.service'; import { PasswordGenerationService } from 'jslib/abstractions/passwordGeneration.service'; +import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { SyncService } from 'jslib/abstractions/sync.service'; import { MessageResponse } from 'jslib/cli/models/response/messageResponse'; @@ -20,9 +21,9 @@ export class LoginCommand extends BaseLoginCommand { constructor(authService: AuthService, apiService: ApiService, cryptoFunctionService: CryptoFunctionService, syncService: SyncService, i18nService: I18nService, environmentService: EnvironmentService, - passwordGenerationService: PasswordGenerationService) { + passwordGenerationService: PasswordGenerationService, platformUtilsService: PlatformUtilsService) { super(authService, apiService, i18nService, environmentService, passwordGenerationService, - cryptoFunctionService, 'cli'); + cryptoFunctionService, platformUtilsService, 'cli'); this.validatedParams = async () => { const key = await cryptoFunctionService.randomBytes(64); process.env.BW_SESSION = Utils.fromBufferToB64(key); diff --git a/src/program.ts b/src/program.ts index d8b9023878..d34a79eb12 100644 --- a/src/program.ts +++ b/src/program.ts @@ -136,7 +136,8 @@ export class Program extends BaseProgram { await this.exitIfAuthed(); const command = new LoginCommand(this.main.authService, this.main.apiService, this.main.cryptoFunctionService, this.main.syncService, this.main.i18nService, - this.main.environmentService, this.main.passwordGenerationService); + this.main.environmentService, this.main.passwordGenerationService, + this.main.platformUtilsService); const response = await command.run(email, password, cmd); this.processResponse(response); }