Update checked-in dependencies

This commit is contained in:
github-actions[bot]
2025-08-26 06:39:21 +00:00
parent 88b121290c
commit 2b18179b02
37 changed files with 265 additions and 218 deletions

View File

@@ -8,7 +8,7 @@ This package contains type definitions for node-forge (https://github.com/digita
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-forge.
### Additional Details
* Last updated: Fri, 11 Jul 2025 22:02:30 GMT
* Last updated: Wed, 20 Aug 2025 18:41:19 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits

View File

@@ -278,10 +278,6 @@ declare module "node-forge" {
}
var oids: oids;
interface MDSigner {
sign(md: md.MessageDigest): Bytes;
}
namespace rsa {
type EncryptionScheme = "RSAES-PKCS1-V1_5" | "RSA-OAEP" | "RAW" | "NONE" | null;
type SignatureScheme = "RSASSA-PKCS1-V1_5" | pss.PSS | "NONE" | null;
@@ -476,10 +472,10 @@ declare module "node-forge" {
/**
* Signs this certificate using the given private key.
*
* @param signer the signer used to sign this csr
* @param key the private key to sign with.
* @param md the message digest object to use (defaults to forge.md.sha1).
*/
sign(signer: MDSigner, md?: md.MessageDigest): void;
sign(key: pki.rsa.PrivateKey, md?: md.MessageDigest): void;
/**
* Attempts verify the signature on the passed certificate using this
* certificate's public key.
@@ -571,10 +567,10 @@ declare module "node-forge" {
/**
* Signs this csr using the given private key.
*
* @param signer the signer used to sign this csr
* @param key the private key to sign with.
* @param md the message digest object to use (defaults to forge.md.sha1).
*/
sign(signer: MDSigner, md?: md.MessageDigest): void;
sign(key: pki.rsa.PrivateKey, md?: md.MessageDigest): void;
/**
* Attempts verify the signature on this csr using this
* csr's public key.
@@ -768,23 +764,23 @@ declare module "node-forge" {
/**
* @description Encodes a private RSA key as an OpenSSH file
*/
function privateKeyToOpenSSH(privateKey: pki.PrivateKey, passphrase?: string): string;
function privateKeyToOpenSSH(privateKey: pki.rsa.PrivateKey, passphrase?: string): string;
/**
* @description Encodes (and optionally encrypts) a private RSA key as a Putty PPK file
*/
function privateKeyToPutty(privateKey: pki.PrivateKey, passphrase?: string, comment?: string): string;
function privateKeyToPutty(privateKey: pki.rsa.PrivateKey, passphrase?: string, comment?: string): string;
/**
* @description Encodes a public RSA key as an OpenSSH file
*/
function publicKeyToOpenSSH(publicKey: pki.PublicKey, comment?: string): string | pki.PEM;
function publicKeyToOpenSSH(publicKey: pki.rsa.PublicKey, comment?: string): string | pki.PEM;
/**
* @description Gets the SSH fingerprint for the given public key
*/
function getPublicKeyFingerprint(
publicKey: pki.PublicKey,
publicKey: pki.rsa.PublicKey,
options?: FingerprintOptions,
): util.ByteStringBuffer | Hex | string;
}
@@ -970,7 +966,7 @@ declare module "node-forge" {
interface Bag {
type: string;
attributes: any;
key?: pki.PrivateKey | undefined;
key?: pki.rsa.PrivateKey | undefined;
cert?: pki.Certificate | undefined;
asn1: asn1.Asn1;
}
@@ -994,7 +990,7 @@ declare module "node-forge" {
function pkcs12FromAsn1(obj: any, password?: string): Pkcs12Pfx;
function toPkcs12Asn1(
key: pki.PrivateKey | null,
key: pki.rsa.PrivateKey | null,
cert: pki.Certificate | pki.Certificate[],
password: string | null,
options?: {

View File

@@ -1,6 +1,6 @@
{
"name": "@types/node-forge",
"version": "1.3.13",
"version": "1.3.14",
"description": "TypeScript definitions for node-forge",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-forge",
"license": "MIT",
@@ -103,6 +103,6 @@
"@types/node": "*"
},
"peerDependencies": {},
"typesPublisherContentHash": "56b42ecfae2f4c537aaaa1a3ab130728f8103591da86c8109c434a334859b1fe",
"typeScriptVersion": "5.1"
"typesPublisherContentHash": "3850fefa5749c4445206076acefb67e5fa8dc76a45e03c7a668914788eb1d9af",
"typeScriptVersion": "5.2"
}