1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

encrypted import for bitwarden json (#220)

This commit is contained in:
Kyle Spearrin
2020-12-04 21:05:11 -05:00
committed by GitHub
parent 2b8c2c2b3e
commit dcbd09e736
68 changed files with 375 additions and 188 deletions

View File

@@ -98,6 +98,7 @@ export class ExportService implements ExportServiceAbstraction {
return papa.unparse(exportCiphers);
} else {
const jsonDoc: any = {
encrypted: false,
folders: [],
items: [],
};
@@ -130,6 +131,7 @@ export class ExportService implements ExportServiceAbstraction {
const ciphers = await this.cipherService.getAll();
const jsonDoc: any = {
encrypted: true,
folders: [],
items: [],
};
@@ -215,6 +217,7 @@ export class ExportService implements ExportServiceAbstraction {
return papa.unparse(exportCiphers);
} else {
const jsonDoc: any = {
encrypted: false,
collections: [],
items: [],
};
@@ -264,6 +267,7 @@ export class ExportService implements ExportServiceAbstraction {
await Promise.all(promises);
const jsonDoc: any = {
encrypted: true,
collections: [],
items: [],
};