mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[deps] Autofill: Update prettier to v3 (#7014)
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
This commit is contained in:
@@ -99,7 +99,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
private importApiService: ImportApiServiceAbstraction,
|
||||
private i18nService: I18nService,
|
||||
private collectionService: CollectionService,
|
||||
private cryptoService: CryptoService
|
||||
private cryptoService: CryptoService,
|
||||
) {}
|
||||
|
||||
getImportOptions(): ImportOption[] {
|
||||
@@ -111,7 +111,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
fileContents: string,
|
||||
organizationId: string = null,
|
||||
selectedImportTarget: string = null,
|
||||
canAccessImportExport: boolean
|
||||
canAccessImportExport: boolean,
|
||||
): Promise<ImportResult> {
|
||||
let importResult: ImportResult;
|
||||
try {
|
||||
@@ -153,7 +153,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
!canAccessImportExport
|
||||
) {
|
||||
const hasUnassignedCollections = importResult.ciphers.some(
|
||||
(c) => !Array.isArray(c.collectionIds) || c.collectionIds.length == 0
|
||||
(c) => !Array.isArray(c.collectionIds) || c.collectionIds.length == 0,
|
||||
);
|
||||
if (hasUnassignedCollections) {
|
||||
throw new Error(this.i18nService.t("importUnassignedItemsError"));
|
||||
@@ -177,7 +177,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
getImporter(
|
||||
format: ImportType | "bitwardenpasswordprotected",
|
||||
promptForPassword_callback: () => Promise<string>,
|
||||
organizationId: string = null
|
||||
organizationId: string = null,
|
||||
): Importer {
|
||||
if (promptForPassword_callback == null) {
|
||||
return null;
|
||||
@@ -193,7 +193,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
|
||||
private getImporterInstance(
|
||||
format: ImportType | "bitwardenpasswordprotected",
|
||||
promptForPassword_callback: () => Promise<string>
|
||||
promptForPassword_callback: () => Promise<string>,
|
||||
) {
|
||||
if (format == null) {
|
||||
return null;
|
||||
@@ -208,7 +208,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
this.cryptoService,
|
||||
this.i18nService,
|
||||
this.cipherService,
|
||||
promptForPassword_callback
|
||||
promptForPassword_callback,
|
||||
);
|
||||
case "lastpasscsv":
|
||||
case "passboltcsv":
|
||||
@@ -346,7 +346,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
}
|
||||
if (importResult.folderRelationships != null) {
|
||||
importResult.folderRelationships.forEach((r) =>
|
||||
request.folderRelationships.push(new KvpRequest(r[0], r[1]))
|
||||
request.folderRelationships.push(new KvpRequest(r[0], r[1])),
|
||||
);
|
||||
}
|
||||
return await this.importApiService.postImportCiphers(request);
|
||||
@@ -368,7 +368,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
}
|
||||
if (importResult.collectionRelationships != null) {
|
||||
importResult.collectionRelationships.forEach((r) =>
|
||||
request.collectionRelationships.push(new KvpRequest(r[0], r[1]))
|
||||
request.collectionRelationships.push(new KvpRequest(r[0], r[1])),
|
||||
);
|
||||
}
|
||||
return await this.importApiService.postImportOrganizationCiphers(organizationId, request);
|
||||
@@ -429,7 +429,7 @@ export class ImportService implements ImportServiceAbstraction {
|
||||
private async setImportTarget(
|
||||
importResult: ImportResult,
|
||||
organizationId: string,
|
||||
importTarget: string
|
||||
importTarget: string,
|
||||
) {
|
||||
if (Utils.isNullOrWhitespace(importTarget)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user