mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -1,4 +1,3 @@
|
||||
import { URL } from 'url';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IDataObject,
|
||||
@@ -8,6 +7,8 @@ import type {
|
||||
IRequestOptions,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError, jsonParse } from 'n8n-workflow';
|
||||
import { URL } from 'url';
|
||||
|
||||
import type { MispCredentials } from './types';
|
||||
|
||||
export async function mispApiRequest(
|
||||
@@ -17,9 +18,7 @@ export async function mispApiRequest(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const { baseUrl, allowUnauthorizedCerts } = (await this.getCredentials(
|
||||
'mispApi',
|
||||
)) as MispCredentials;
|
||||
const { baseUrl, allowUnauthorizedCerts } = await this.getCredentials<MispCredentials>('mispApi');
|
||||
|
||||
const options: IRequestOptions = {
|
||||
method,
|
||||
|
||||
Reference in New Issue
Block a user