Comparing version 5.2.1 to 5.3.0
@@ -23,5 +23,5 @@ /** | ||
export function readPrivateKeys(options: { binaryKeys: Uint8Array, config?: PartialConfig }): Promise<PrivateKey[]>; | ||
export function generateKey(options: KeyOptions & { format?: 'armored' }): Promise<SerializedKeyPair<string> & { revocationCertificate: string }>; | ||
export function generateKey(options: KeyOptions & { format: 'binary' }): Promise<SerializedKeyPair<Uint8Array> & { revocationCertificate: string }>; | ||
export function generateKey(options: KeyOptions & { format: 'object' }): Promise<KeyPair & { revocationCertificate: string }>; | ||
export function generateKey(options: GenerateKeyOptions & { format?: 'armored' }): Promise<SerializedKeyPair<string> & { revocationCertificate: string }>; | ||
export function generateKey(options: GenerateKeyOptions & { format: 'binary' }): Promise<SerializedKeyPair<Uint8Array> & { revocationCertificate: string }>; | ||
export function generateKey(options: GenerateKeyOptions & { format: 'object' }): Promise<KeyPair & { revocationCertificate: string }>; | ||
export function decryptKey(options: { privateKey: PrivateKey; passphrase?: MaybeArray<string>; config?: PartialConfig }): Promise<PrivateKey>; | ||
@@ -78,7 +78,7 @@ export function encryptKey(options: { privateKey: PrivateKey; passphrase?: MaybeArray<string>; config?: PartialConfig }): Promise<PrivateKey>; | ||
export class PublicKey extends Key { | ||
constructor(packetlist: PacketList<AnyKeyPacket>); | ||
constructor(packetlist: PacketList<AnyPacket>); | ||
} | ||
export class PrivateKey extends PublicKey { | ||
constructor(packetlist: PacketList<AnyKeyPacket>); | ||
constructor(packetlist: PacketList<AnyPacket>); | ||
public revoke(reason?: ReasonForRevocation, date?: Date, config?: Config): Promise<PrivateKey>; | ||
@@ -532,3 +532,8 @@ public isDecrypted(): boolean; | ||
export type AnyPacket = BasePacket; | ||
export class UnparseablePacket { | ||
tag: enums.packet; | ||
write: () => Uint8Array; | ||
} | ||
export type AnyPacket = BasePacket | UnparseablePacket; | ||
export type AnySecretKeyPacket = SecretKeyPacket | SecretSubkeyPacket; | ||
@@ -668,3 +673,3 @@ export type AnyKeyPacket = BasePublicKeyPacket; | ||
interface KeyOptions { | ||
interface GenerateKeyOptions { | ||
userIDs: MaybeArray<UserID>; | ||
@@ -681,2 +686,3 @@ passphrase?: string; | ||
} | ||
export type KeyOptions = GenerateKeyOptions; | ||
@@ -683,0 +689,0 @@ interface SubkeyOptions { |
{ | ||
"name": "openpgp", | ||
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"license": "LGPL-3.0+", | ||
@@ -6,0 +6,0 @@ "homepage": "https://openpgpjs.org/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21923796
207820
1