chore: Lintfix nodes-base (#16877)

This commit is contained in:
Iván Ovejero
2025-07-01 15:05:40 +02:00
committed by GitHub
parent 38c2e6184c
commit 422aa82524
56 changed files with 64 additions and 88 deletions

View File

@@ -32,14 +32,14 @@ export type SnowflakeCredential = Pick<
);
const extractPrivateKey = (credential: { privateKey: string; passphrase?: string }) => {
const key = formatPrivateKey(credential.privateKey as string);
const key = formatPrivateKey(credential.privateKey);
if (!credential.passphrase) return key;
const privateKeyObject = createPrivateKey({
key,
format: 'pem',
passphrase: credential.passphrase as string,
passphrase: credential.passphrase,
});
return privateKeyObject.export({