build(deps): bump openpgp from 5.0.0-2 to 5.0.0-3 (#1734)

This commit is contained in:
TheCatLady
2021-06-14 23:16:33 -04:00
committed by GitHub
parent 6789b8701c
commit 71641d35c4
3 changed files with 9 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ class PGPEncryptor extends Transform {
const validPublicKeys = await Promise.all(
this._encryptionKeys.map((armoredKey) => openpgp.readKey({ armoredKey }))
);
let privateKey: openpgp.Key | undefined;
let privateKey: openpgp.PrivateKey | undefined;
// Just return the message if there is no one to encrypt for
if (!validPublicKeys.length) {
@@ -51,7 +51,7 @@ class PGPEncryptor extends Transform {
// Only sign the message if private key and password exist
if (this._signingKey && this._password) {
privateKey = await openpgp.readKey({
privateKey = await openpgp.readPrivateKey({
armoredKey: this._signingKey,
});
@@ -135,8 +135,8 @@ class PGPEncryptor extends Transform {
emailPartDelimiter +
messageParts.join(emailPartDelimiter),
}),
publicKeys: validPublicKeys,
privateKeys: privateKey,
encryptionKeys: validPublicKeys,
signingKeys: privateKey,
});
const body =