mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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
@@ -9,14 +9,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
elasticSecurityApiRequest,
|
||||
getConnector,
|
||||
getVersion,
|
||||
handleListing,
|
||||
throwOnEmptyUpdate,
|
||||
} from './GenericFunctions';
|
||||
|
||||
import {
|
||||
caseCommentFields,
|
||||
caseCommentOperations,
|
||||
@@ -27,7 +19,13 @@ import {
|
||||
connectorFields,
|
||||
connectorOperations,
|
||||
} from './descriptions';
|
||||
|
||||
import {
|
||||
elasticSecurityApiRequest,
|
||||
getConnector,
|
||||
getVersion,
|
||||
handleListing,
|
||||
throwOnEmptyUpdate,
|
||||
} from './GenericFunctions';
|
||||
import type { Connector, ConnectorCreatePayload, ConnectorType } from './types';
|
||||
|
||||
export class ElasticSecurity implements INodeType {
|
||||
|
||||
@@ -21,9 +21,8 @@ export async function elasticSecurityApiRequest(
|
||||
body: IDataObject = {},
|
||||
qs: IDataObject = {},
|
||||
) {
|
||||
const { baseUrl: rawBaseUrl } = (await this.getCredentials(
|
||||
'elasticSecurityApi',
|
||||
)) as ElasticSecurityApiCredentials;
|
||||
const { baseUrl: rawBaseUrl } =
|
||||
await this.getCredentials<ElasticSecurityApiCredentials>('elasticSecurityApi');
|
||||
|
||||
const baseUrl = tolerateTrailingSlash(rawBaseUrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user