refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-12-19 18:46:14 +01:00
committed by GitHub
parent 8c635993bd
commit bafac73eb5
1120 changed files with 2677 additions and 2827 deletions

View File

@@ -1,4 +1,5 @@
import type { Readable } from 'stream';
import jwt from 'jsonwebtoken';
import set from 'lodash/set';
import type {
IDataObject,
IExecuteFunctions,
@@ -18,8 +19,8 @@ import {
CHAT_TRIGGER_NODE_TYPE,
WAIT_NODE_TYPE,
} from 'n8n-workflow';
import set from 'lodash/set';
import jwt from 'jsonwebtoken';
import type { Readable } from 'stream';
import { formatPrivateKey, generatePairedItemData } from '../../utils/utilities';
export class RespondToWebhook implements INodeType {
@@ -355,14 +356,12 @@ export class RespondToWebhook implements INodeType {
}
} else if (respondWith === 'jwt') {
try {
const { keyType, secret, algorithm, privateKey } = (await this.getCredentials(
'jwtAuth',
)) as {
const { keyType, secret, algorithm, privateKey } = await this.getCredentials<{
keyType: 'passphrase' | 'pemKey';
privateKey: string;
secret: string;
algorithm: jwt.Algorithm;
};
}>('jwtAuth');
let secretOrPrivateKey;