mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 06:23:38 +00:00
Update PR to use SDK
This commit is contained in:
@@ -9,6 +9,7 @@ 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 { import_ssh_key } from "@bitwarden/sdk-internal";
|
||||
|
||||
import { ImportResult } from "../../models/import-result";
|
||||
import { BaseImporter } from "../base-importer";
|
||||
@@ -323,10 +324,11 @@ export class OnePassword1PuxImporter extends BaseImporter implements Importer {
|
||||
}
|
||||
} else if (cipher.type === CipherType.SshKey) {
|
||||
if (valueKey === "sshKey") {
|
||||
const { privateKey, metadata } = field.value.sshKey;
|
||||
cipher.sshKey.privateKey = privateKey;
|
||||
cipher.sshKey.publicKey = metadata.publicKey;
|
||||
cipher.sshKey.keyFingerprint = metadata.fingerprint;
|
||||
const { privateKey } = field.value.sshKey;
|
||||
const sshKey = import_ssh_key(privateKey);
|
||||
cipher.sshKey.privateKey = sshKey.private_key;
|
||||
cipher.sshKey.publicKey = sshKey.public_key;
|
||||
cipher.sshKey.keyFingerprint = sshKey.key_fingerprint;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -24,7 +24,7 @@
|
||||
"@angular/platform-browser": "17.3.12",
|
||||
"@angular/platform-browser-dynamic": "17.3.12",
|
||||
"@angular/router": "17.3.12",
|
||||
"@bitwarden/sdk-internal": "0.2.0-main.38",
|
||||
"@bitwarden/sdk-internal": "0.2.0-main.47",
|
||||
"@electron/fuses": "1.8.0",
|
||||
"@koa/multer": "3.0.2",
|
||||
"@koa/router": "13.1.0",
|
||||
@@ -4298,9 +4298,9 @@
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@bitwarden/sdk-internal": {
|
||||
"version": "0.2.0-main.38",
|
||||
"resolved": "https://registry.npmjs.org/@bitwarden/sdk-internal/-/sdk-internal-0.2.0-main.38.tgz",
|
||||
"integrity": "sha512-bkN+BZC0YA4k0To8QiT33UTZX8peKDXud8Gzq3UHNPlU/vMSkP3Wn8q0GezzmYN3UNNIWXfreNCS0mJ+S51j/Q==",
|
||||
"version": "0.2.0-main.47",
|
||||
"resolved": "https://registry.npmjs.org/@bitwarden/sdk-internal/-/sdk-internal-0.2.0-main.47.tgz",
|
||||
"integrity": "sha512-alISSoMpAEJD/4+vwjv8kwK4/skd+yqA8pXjZJqMlkVSnp1rtT0ZN+6TC91WmHsJTjjjDwt7DrT8YOkCuwmdnQ==",
|
||||
"license": "GPL-3.0"
|
||||
},
|
||||
"node_modules/@bitwarden/vault": {
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
"@angular/platform-browser": "17.3.12",
|
||||
"@angular/platform-browser-dynamic": "17.3.12",
|
||||
"@angular/router": "17.3.12",
|
||||
"@bitwarden/sdk-internal": "0.2.0-main.38",
|
||||
"@bitwarden/sdk-internal": "0.2.0-main.47",
|
||||
"@electron/fuses": "1.8.0",
|
||||
"@koa/multer": "3.0.2",
|
||||
"@koa/router": "13.1.0",
|
||||
|
||||
Reference in New Issue
Block a user