mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 15:53:41 +00:00
Update electron to 14.2.0 (#174)
* Pull in jslib and update electron to 14.2.0 * Fix build errors after pulling jslib * Remove space from tslint ignore comment
This commit is contained in:
committed by
GitHub
parent
a96144d6dc
commit
660ee538ce
2
jslib
2
jslib
Submodule jslib updated: f09fb69882...2db9e1ce0d
16
package-lock.json
generated
16
package-lock.json
generated
@@ -131,7 +131,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bitwarden/jslib-common": "file:../common",
|
"@bitwarden/jslib-common": "file:../common",
|
||||||
"@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4",
|
"@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4",
|
||||||
"electron": "14.0.1",
|
"electron": "14.2.0",
|
||||||
"electron-log": "4.4.1",
|
"electron-log": "4.4.1",
|
||||||
"electron-store": "8.0.1",
|
"electron-store": "8.0.1",
|
||||||
"electron-updater": "4.3.9",
|
"electron-updater": "4.3.9",
|
||||||
@@ -4651,9 +4651,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/electron": {
|
"node_modules/electron": {
|
||||||
"version": "14.0.1",
|
"version": "14.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/electron/-/electron-14.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/electron/-/electron-14.2.0.tgz",
|
||||||
"integrity": "sha512-1XILvfE5mQEBz5L/QeNfcwC3PxAIjwMyA3GR8Naw5C0IKAnHl3lAdjczbtGX8nqbcEpOAVo+4TMSpcPD3zxe8Q==",
|
"integrity": "sha512-6CmAv1P0xcwK3FQOSA27fHI36/wctSFVgj46VODn56srXXQWeolkK1VzeAFNE613iAuuH9jJdHvE3gz+c7XkNA==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron/get": "^1.0.1",
|
"@electron/get": "^1.0.1",
|
||||||
@@ -15223,7 +15223,7 @@
|
|||||||
"@bitwarden/jslib-common": "file:../common",
|
"@bitwarden/jslib-common": "file:../common",
|
||||||
"@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4",
|
"@nodert-win10-rs4/windows.security.credentials.ui": "^0.4.4",
|
||||||
"@types/node": "^14.17.1",
|
"@types/node": "^14.17.1",
|
||||||
"electron": "14.0.1",
|
"electron": "14.2.0",
|
||||||
"electron-log": "4.4.1",
|
"electron-log": "4.4.1",
|
||||||
"electron-store": "8.0.1",
|
"electron-store": "8.0.1",
|
||||||
"electron-updater": "4.3.9",
|
"electron-updater": "4.3.9",
|
||||||
@@ -18377,9 +18377,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"electron": {
|
"electron": {
|
||||||
"version": "14.0.1",
|
"version": "14.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/electron/-/electron-14.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/electron/-/electron-14.2.0.tgz",
|
||||||
"integrity": "sha512-1XILvfE5mQEBz5L/QeNfcwC3PxAIjwMyA3GR8Naw5C0IKAnHl3lAdjczbtGX8nqbcEpOAVo+4TMSpcPD3zxe8Q==",
|
"integrity": "sha512-6CmAv1P0xcwK3FQOSA27fHI36/wctSFVgj46VODn56srXXQWeolkK1VzeAFNE613iAuuH9jJdHvE3gz+c7XkNA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@electron/get": "^1.0.1",
|
"@electron/get": "^1.0.1",
|
||||||
"@types/node": "^14.6.2",
|
"@types/node": "^14.6.2",
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ const userService = new UserService(tokenService, storageService);
|
|||||||
const apiKeyService = new ApiKeyService(tokenService, storageService);
|
const apiKeyService = new ApiKeyService(tokenService, storageService);
|
||||||
const containerService = new ContainerService(cryptoService);
|
const containerService = new ContainerService(cryptoService);
|
||||||
const authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService,
|
const authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService,
|
||||||
i18nService, platformUtilsService, messagingService, null, logService, apiKeyService, false);
|
i18nService, platformUtilsService, messagingService, null, logService, apiKeyService, cryptoFunctionService, false);
|
||||||
const configurationService = new ConfigurationService(storageService, secureStorageService);
|
const configurationService = new ConfigurationService(storageService, secureStorageService);
|
||||||
const syncService = new SyncService(configurationService, logService, cryptoFunctionService, apiService,
|
const syncService = new SyncService(configurationService, logService, cryptoFunctionService, apiService,
|
||||||
messagingService, i18nService, environmentService);
|
messagingService, i18nService, environmentService);
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export class Main {
|
|||||||
this.containerService = new ContainerService(this.cryptoService);
|
this.containerService = new ContainerService(this.cryptoService);
|
||||||
this.authService = new AuthService(this.cryptoService, this.apiService, this.userService, this.tokenService,
|
this.authService = new AuthService(this.cryptoService, this.apiService, this.userService, this.tokenService,
|
||||||
this.appIdService, this.i18nService, this.platformUtilsService, this.messagingService, null,
|
this.appIdService, this.i18nService, this.platformUtilsService, this.messagingService, null,
|
||||||
this.logService, this.apiKeyService, false);
|
this.logService, this.apiKeyService, this.cryptoFunctionService, false);
|
||||||
this.configurationService = new ConfigurationService(this.storageService, this.secureStorageService,
|
this.configurationService = new ConfigurationService(this.storageService, this.secureStorageService,
|
||||||
process.env.BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS !== 'true');
|
process.env.BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS !== 'true');
|
||||||
this.syncService = new SyncService(this.configurationService, this.logService, this.cryptoFunctionService,
|
this.syncService = new SyncService(this.configurationService, this.logService, this.cryptoFunctionService,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { ApiService } from 'jslib-common/abstractions/api.service';
|
|||||||
import { ApiKeyService } from 'jslib-common/abstractions/apiKey.service';
|
import { ApiKeyService } from 'jslib-common/abstractions/apiKey.service';
|
||||||
import { AppIdService } from 'jslib-common/abstractions/appId.service';
|
import { AppIdService } from 'jslib-common/abstractions/appId.service';
|
||||||
import { CryptoService } from 'jslib-common/abstractions/crypto.service';
|
import { CryptoService } from 'jslib-common/abstractions/crypto.service';
|
||||||
|
import { CryptoFunctionService } from 'jslib-common/abstractions/cryptoFunction.service';
|
||||||
import { I18nService } from 'jslib-common/abstractions/i18n.service';
|
import { I18nService } from 'jslib-common/abstractions/i18n.service';
|
||||||
import { LogService } from 'jslib-common/abstractions/log.service';
|
import { LogService } from 'jslib-common/abstractions/log.service';
|
||||||
import { MessagingService } from 'jslib-common/abstractions/messaging.service';
|
import { MessagingService } from 'jslib-common/abstractions/messaging.service';
|
||||||
@@ -23,9 +24,9 @@ export class AuthService extends AuthServiceBase {
|
|||||||
tokenService: TokenService, appIdService: AppIdService, i18nService: I18nService,
|
tokenService: TokenService, appIdService: AppIdService, i18nService: I18nService,
|
||||||
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
||||||
vaultTimeoutService: VaultTimeoutService, logService: LogService, private apiKeyService: ApiKeyService,
|
vaultTimeoutService: VaultTimeoutService, logService: LogService, private apiKeyService: ApiKeyService,
|
||||||
setCryptoKeys = true) {
|
cryptoFunctionService: CryptoFunctionService, setCryptoKeys = true) {
|
||||||
super(cryptoService, apiService, userService, tokenService, appIdService, i18nService, platformUtilsService,
|
super(cryptoService, apiService, userService, tokenService, appIdService, i18nService, platformUtilsService,
|
||||||
messagingService, vaultTimeoutService, logService, setCryptoKeys);
|
messagingService, vaultTimeoutService, logService, cryptoFunctionService, setCryptoKeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
async logInApiKey(clientId: string, clientSecret: string): Promise<AuthResult> {
|
async logInApiKey(clientId: string, clientSecret: string): Promise<AuthResult> {
|
||||||
|
|||||||
Reference in New Issue
Block a user