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,7 +1,7 @@
|
||||
/* eslint-disable n8n-nodes-base/node-execute-block-wrong-error-thrown */
|
||||
import { pipeline } from 'stream/promises';
|
||||
import { createWriteStream } from 'fs';
|
||||
import { stat } from 'fs/promises';
|
||||
import isbot from 'isbot';
|
||||
import type {
|
||||
IWebhookFunctions,
|
||||
IDataObject,
|
||||
@@ -12,10 +12,9 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { BINARY_ENCODING, NodeOperationError, Node } from 'n8n-workflow';
|
||||
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import isbot from 'isbot';
|
||||
import { pipeline } from 'stream/promises';
|
||||
import { file as tmpFile } from 'tmp-promise';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
import {
|
||||
authenticationProperty,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { INodeProperties, INodeTypeDescription, IWebhookDescription } from 'n8n-workflow';
|
||||
|
||||
import { getResponseCode, getResponseData } from './utils';
|
||||
|
||||
export const defaultWebhookDescription: IWebhookDescription = {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import type { Request } from 'express';
|
||||
import type { IWebhookFunctions } from 'n8n-workflow';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { Webhook } from '../Webhook.node';
|
||||
import type { IWebhookFunctions } from 'n8n-workflow';
|
||||
|
||||
import { testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
||||
|
||||
import { Webhook } from '../Webhook.node';
|
||||
|
||||
const workflows = getWorkflowFilenames(__dirname);
|
||||
|
||||
describe('Test Webhook Node', () => {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import jwt from 'jsonwebtoken';
|
||||
import { ApplicationError, type IWebhookFunctions } from 'n8n-workflow';
|
||||
|
||||
import type { WebhookParameters } from '../utils';
|
||||
import {
|
||||
checkResponseModeConfiguration,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import basicAuth from 'basic-auth';
|
||||
import jwt from 'jsonwebtoken';
|
||||
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
|
||||
import type {
|
||||
IWebhookFunctions,
|
||||
@@ -5,10 +7,9 @@ import type {
|
||||
IDataObject,
|
||||
ICredentialDataDecryptedObject,
|
||||
} from 'n8n-workflow';
|
||||
import basicAuth from 'basic-auth';
|
||||
import jwt from 'jsonwebtoken';
|
||||
import { formatPrivateKey } from '../../utils/utilities';
|
||||
|
||||
import { WebhookAuthorizationError } from './error';
|
||||
import { formatPrivateKey } from '../../utils/utilities';
|
||||
|
||||
export type WebhookParameters = {
|
||||
httpMethod: string | string[];
|
||||
@@ -59,7 +60,7 @@ export const getResponseData = (parameters: WebhookParameters) => {
|
||||
};
|
||||
|
||||
export const configuredOutputs = (parameters: WebhookParameters) => {
|
||||
const httpMethod = parameters.httpMethod as string | string[];
|
||||
const httpMethod = parameters.httpMethod;
|
||||
|
||||
if (!Array.isArray(httpMethod))
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user