mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
build(deps): bump openpgp from 5.0.0-2 to 5.0.0-3 (#1734)
This commit is contained in:
@@ -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 =
|
||||
|
Reference in New Issue
Block a user