mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 06:23:38 +00:00
Fix imports/builds
This commit is contained in:
@@ -675,7 +675,7 @@ describe("1Password 1Pux Importer", () => {
|
||||
const result = await importer.parse(jsonString);
|
||||
expect(result != null).toBe(true);
|
||||
const cipher = result.ciphers.shift();
|
||||
expect(cipher.type).toEqual(CipherType.SSHKey);
|
||||
expect(cipher.type).toEqual(CipherType.SshKey);
|
||||
expect(cipher.name).toEqual("Some SSH Key");
|
||||
expect(cipher.notes).toEqual("SSH Key Note");
|
||||
expect(cipher.sshKey.privateKey).toEqual(
|
||||
|
||||
@@ -6,7 +6,7 @@ import { IdentityView } from "@bitwarden/common/vault/models/view/identity.view"
|
||||
import { LoginView } from "@bitwarden/common/vault/models/view/login.view";
|
||||
import { PasswordHistoryView } from "@bitwarden/common/vault/models/view/password-history.view";
|
||||
import { SecureNoteView } from "@bitwarden/common/vault/models/view/secure-note.view";
|
||||
import { SSHKeyView } from "@bitwarden/common/vault/models/view/ssh-key.view";
|
||||
import { SshKeyView } from "@bitwarden/common/vault/models/view/ssh-key.view";
|
||||
|
||||
import { ImportResult } from "../../models/import-result";
|
||||
import { BaseImporter } from "../base-importer";
|
||||
@@ -80,8 +80,8 @@ export class OnePassword1PuxImporter extends BaseImporter implements Importer {
|
||||
cipher.identity = new IdentityView();
|
||||
break;
|
||||
case CategoryEnum.SSH_Key:
|
||||
cipher.type = CipherType.SSHKey;
|
||||
cipher.sshKey = new SSHKeyView();
|
||||
cipher.type = CipherType.SshKey;
|
||||
cipher.sshKey = new SshKeyView();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -319,7 +319,7 @@ export class OnePassword1PuxImporter extends BaseImporter implements Importer {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} else if (cipher.type === CipherType.SSHKey) {
|
||||
} else if (cipher.type === CipherType.SshKey) {
|
||||
if (valueKey === "sshKey") {
|
||||
const { privateKey, metadata } = field.value.sshKey;
|
||||
cipher.sshKey.privateKey = privateKey;
|
||||
|
||||
Reference in New Issue
Block a user