1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

Client & Version headers (#226)

This commit is contained in:
Oscar Hinton
2022-02-08 15:28:19 +01:00
committed by GitHub
parent 1146c8f5bf
commit 3be1f2eac6
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import * as fs from "fs";
import * as path from "path";
import { ClientType } from "jslib-common/enums/clientType";
import { LogLevelType } from "jslib-common/enums/logLevelType";
import { AuthService } from "./services/auth.service";
@@ -110,7 +111,10 @@ export class Main {
const plaintextSecrets = process.env.BITWARDENCLI_CONNECTOR_PLAINTEXT_SECRETS === "true";
this.i18nService = new I18nService("en", "./locales");
this.platformUtilsService = new CliPlatformUtilsService("connector", packageJson);
this.platformUtilsService = new CliPlatformUtilsService(
ClientType.DirectoryConnector,
packageJson
);
this.logService = new ConsoleLogService(
this.platformUtilsService.isDev(),
(level) => process.env.BITWARDENCLI_CONNECTOR_DEBUG !== "true" && level <= LogLevelType.Info