mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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,
|
||||
|
||||
@@ -8,15 +8,6 @@ import {
|
||||
NodeConnectionType,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
mispApiRequest,
|
||||
mispApiRequestAllItems,
|
||||
mispApiRestSearch,
|
||||
throwOnEmptyUpdate,
|
||||
throwOnInvalidUrl,
|
||||
throwOnMissingSharingGroup,
|
||||
} from './GenericFunctions';
|
||||
|
||||
import {
|
||||
attributeFields,
|
||||
attributeOperations,
|
||||
@@ -41,7 +32,14 @@ import {
|
||||
warninglistFields,
|
||||
warninglistOperations,
|
||||
} from './descriptions';
|
||||
|
||||
import {
|
||||
mispApiRequest,
|
||||
mispApiRequestAllItems,
|
||||
mispApiRestSearch,
|
||||
throwOnEmptyUpdate,
|
||||
throwOnInvalidUrl,
|
||||
throwOnMissingSharingGroup,
|
||||
} from './GenericFunctions';
|
||||
import type { LoadedOrgs, LoadedSharingGroups, LoadedTags, LoadedUsers } from './types';
|
||||
|
||||
export class Misp implements INodeType {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
|
||||
import { searchProperties } from './common.descriptions';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
|
||||
const searchDisplayOptions = {
|
||||
show: {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
|
||||
import { searchProperties } from './common.descriptions';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
|
||||
const searchDisplayOptions = {
|
||||
show: {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
|
||||
import { searchProperties } from './common.descriptions';
|
||||
import { updateDisplayOptions } from '../../../utils/utilities';
|
||||
|
||||
const searchDisplayOptions = {
|
||||
show: {
|
||||
|
||||
Reference in New Issue
Block a user