mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: correct all the spelling typos (#3960)
* Improve code health Fix TS typos in local variables Fix CSS typos in local styles Fix typos in comments Fix typos in strings * Fix order of n8n setup sections in CONTRIBUTING.md
This commit is contained in:
@@ -55,7 +55,7 @@ export class Expression {
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves the paramter value. If it is an expression it will execute it and
|
||||
* Resolves the parameter value. If it is an expression it will execute it and
|
||||
* return the result. For everything simply the supplied value will be returned.
|
||||
*
|
||||
* @param {NodeParameterValue} parameterValue
|
||||
|
||||
@@ -112,7 +112,7 @@ export abstract class ICredentials {
|
||||
}
|
||||
|
||||
// Defines which nodes are allowed to access the credentials and
|
||||
// when that access got grented from which user
|
||||
// when that access got granted from which user
|
||||
export interface ICredentialNodeAccess {
|
||||
nodeType: string;
|
||||
user?: string;
|
||||
@@ -447,7 +447,7 @@ export interface IGetExecuteWebhookFunctions {
|
||||
|
||||
export interface ISourceDataConnections {
|
||||
// Key for each input type and because there can be multiple inputs of the same type it is an array
|
||||
// null is also allowed because if we still need data for a later while executing the workflow set teompoary to null
|
||||
// null is also allowed because if we still need data for a later while executing the workflow set temporary to null
|
||||
// the nodes get as input TaskDataConnections which is identical to this one except that no null is allowed.
|
||||
[key: string]: Array<ISourceData[] | null>;
|
||||
}
|
||||
@@ -1020,7 +1020,7 @@ export interface INodeType {
|
||||
[key: string]: (this: ILoadOptionsFunctions) => Promise<INodePropertyOptions[]>;
|
||||
};
|
||||
credentialTest?: {
|
||||
// Contains a group of functins that test credentials.
|
||||
// Contains a group of functions that test credentials.
|
||||
[functionName: string]: ICredentialTestFunction;
|
||||
};
|
||||
};
|
||||
@@ -1371,10 +1371,10 @@ export interface ISourceData {
|
||||
previousNodeRun?: number; // If undefined "0" gets used
|
||||
}
|
||||
|
||||
// The data for all the different kind of connectons (like main) and all the indexes
|
||||
// The data for all the different kind of connections (like main) and all the indexes
|
||||
export interface ITaskDataConnections {
|
||||
// Key for each input type and because there can be multiple inputs of the same type it is an array
|
||||
// null is also allowed because if we still need data for a later while executing the workflow set teompoary to null
|
||||
// null is also allowed because if we still need data for a later while executing the workflow set temporary to null
|
||||
// the nodes get as input TaskDataConnections which is identical to this one except that no null is allowed.
|
||||
[key: string]: Array<INodeExecutionData[] | null>;
|
||||
}
|
||||
@@ -1390,7 +1390,7 @@ export interface IWaitingForExecution {
|
||||
|
||||
export interface ITaskDataConnectionsSource {
|
||||
// Key for each input type and because there can be multiple inputs of the same type it is an array
|
||||
// null is also allowed because if we still need data for a later while executing the workflow set teompoary to null
|
||||
// null is also allowed because if we still need data for a later while executing the workflow set temporary to null
|
||||
// the nodes get as input TaskDataConnections which is identical to this one except that no null is allowed.
|
||||
[key: string]: Array<ISourceData | null>;
|
||||
}
|
||||
|
||||
@@ -470,7 +470,7 @@ export function getParamterResolveOrder(
|
||||
): number[] {
|
||||
const executionOrder: number[] = [];
|
||||
const indexToResolve = Array.from({ length: nodePropertiesArray.length }, (v, k) => k);
|
||||
const resolvedParamters: string[] = [];
|
||||
const resolvedParameters: string[] = [];
|
||||
|
||||
let index: number;
|
||||
let property: INodeProperties;
|
||||
@@ -489,18 +489,18 @@ export function getParamterResolveOrder(
|
||||
if (parameterDependencies[property.name].length === 0) {
|
||||
// Does not have any dependencies so simply add
|
||||
executionOrder.push(index);
|
||||
resolvedParamters.push(property.name);
|
||||
resolvedParameters.push(property.name);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Parameter has dependencies
|
||||
for (const dependency of parameterDependencies[property.name]) {
|
||||
if (!resolvedParamters.includes(dependency)) {
|
||||
if (!resolvedParameters.includes(dependency)) {
|
||||
if (dependency.charAt(0) === '/') {
|
||||
// Assume that root level depenencies are resolved
|
||||
// Assume that root level dependencies are resolved
|
||||
continue;
|
||||
}
|
||||
// Dependencies for that paramter are still missing so
|
||||
// Dependencies for that parameter are still missing so
|
||||
// try to add again later
|
||||
indexToResolve.push(index);
|
||||
continue;
|
||||
@@ -509,7 +509,7 @@ export function getParamterResolveOrder(
|
||||
|
||||
// All dependencies got found so add
|
||||
executionOrder.push(index);
|
||||
resolvedParamters.push(property.name);
|
||||
resolvedParameters.push(property.name);
|
||||
|
||||
if (indexToResolve.length < lastIndexLength) {
|
||||
lastIndexReduction = iterations;
|
||||
@@ -517,7 +517,7 @@ export function getParamterResolveOrder(
|
||||
|
||||
if (iterations > lastIndexReduction + nodePropertiesArray.length) {
|
||||
throw new Error(
|
||||
'Could not resolve parameter depenencies. Max iterations reached! Hint: If `displayOptions` are specified in any child parameter of a parent `collection` or `fixedCollection`, remove the `displayOptions` from the child parameter.',
|
||||
'Could not resolve parameter dependencies. Max iterations reached! Hint: If `displayOptions` are specified in any child parameter of a parent `collection` or `fixedCollection`, remove the `displayOptions` from the child parameter.',
|
||||
);
|
||||
}
|
||||
lastIndexLength = indexToResolve.length;
|
||||
@@ -889,7 +889,7 @@ export function getNodeWebhooks(
|
||||
workflow: Workflow,
|
||||
node: INode,
|
||||
additionalData: IWorkflowExecuteAdditionalData,
|
||||
ignoreRestartWehbooks = false,
|
||||
ignoreRestartWebhooks = false,
|
||||
): IWebhookData[] {
|
||||
if (node.disabled === true) {
|
||||
// Node is disabled so webhooks will also not be enabled
|
||||
@@ -908,7 +908,7 @@ export function getNodeWebhooks(
|
||||
|
||||
const returnData: IWebhookData[] = [];
|
||||
for (const webhookDescription of nodeType.description.webhooks) {
|
||||
if (ignoreRestartWehbooks && webhookDescription.restartWebhook === true) {
|
||||
if (ignoreRestartWebhooks && webhookDescription.restartWebhook === true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1145,7 +1145,7 @@ export function addToIssuesIfMissing(
|
||||
(nodeProperties.type === 'dateTime' && value === undefined) ||
|
||||
(nodeProperties.type === 'options' && (value === '' || value === undefined))
|
||||
) {
|
||||
// Parameter is requried but empty
|
||||
// Parameter is required but empty
|
||||
if (foundIssues.parameters === undefined) {
|
||||
foundIssues.parameters = {};
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ export function create(
|
||||
// eslint-disable-next-line no-param-reassign, @typescript-eslint/prefer-nullish-coalescing
|
||||
depth = depth || 0;
|
||||
|
||||
// Make all the children of target also observeable
|
||||
// Make all the children of target also observable
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const key in target) {
|
||||
if (typeof target[key] === 'object' && target[key] !== null) {
|
||||
|
||||
@@ -82,7 +82,7 @@ export class Workflow {
|
||||
settings: IWorkflowSettings;
|
||||
|
||||
// To save workflow specific static data like for example
|
||||
// ids of registred webhooks of nodes
|
||||
// ids of registered webhooks of nodes
|
||||
staticData: IDataObject;
|
||||
|
||||
pinData?: IPinData;
|
||||
@@ -134,7 +134,7 @@ export class Workflow {
|
||||
}
|
||||
this.connectionsBySourceNode = parameters.connections;
|
||||
|
||||
// Save also the connections by the destionation nodes
|
||||
// Save also the connections by the destination nodes
|
||||
this.connectionsByDestinationNode = this.__getConnectionsByDestination(parameters.connections);
|
||||
|
||||
this.active = parameters.active || false;
|
||||
@@ -544,7 +544,7 @@ export class Workflow {
|
||||
}
|
||||
}
|
||||
|
||||
// Use the updated connections to create updated connections by destionation nodes
|
||||
// Use the updated connections to create updated connections by destination nodes
|
||||
this.connectionsByDestinationNode = this.__getConnectionsByDestination(
|
||||
this.connectionsBySourceNode,
|
||||
);
|
||||
@@ -951,7 +951,7 @@ export class Workflow {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the start node to start the worfklow from
|
||||
* Returns the start node to start the workflow from
|
||||
*
|
||||
* @param {string} [destinationNode]
|
||||
* @returns {(INode | undefined)}
|
||||
|
||||
@@ -445,7 +445,7 @@ export class WorkflowDataProxy {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a proxt to query data from the workflow
|
||||
* Returns a proxy to query data from the workflow
|
||||
*
|
||||
* @private
|
||||
* @returns
|
||||
@@ -693,12 +693,12 @@ export class WorkflowDataProxy {
|
||||
}
|
||||
|
||||
if (sourceData === null) {
|
||||
// 'Could not resolve, proably no pairedItem exists.'
|
||||
// 'Could not resolve, probably no pairedItem exists.'
|
||||
throw createExpressionError(
|
||||
'Can’t get data for expression',
|
||||
{
|
||||
messageTemplate: `Can’t get data for expression under ‘%%PARAMETER%%’`,
|
||||
description: `Could not resolve, proably no pairedItem exists`,
|
||||
description: `Could not resolve, probably no pairedItem exists`,
|
||||
},
|
||||
nodeBeforeLast,
|
||||
);
|
||||
|
||||
@@ -163,7 +163,7 @@ export function getNodeParameter(
|
||||
): NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[] | object {
|
||||
const nodeType = workflow.nodeTypes.getByNameAndVersion(node.type, node.typeVersion);
|
||||
if (nodeType === undefined) {
|
||||
throw new Error(`Node type "${node.type}" is not known so can not return paramter value!`);
|
||||
throw new Error(`Node type "${node.type}" is not known so can not return parameter value!`);
|
||||
}
|
||||
|
||||
const value = get(node.parameters, parameterName, fallbackValue);
|
||||
@@ -329,7 +329,7 @@ export function getExecuteFunctions(
|
||||
}
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||
console.error(`There was a problem sending messsage to UI: ${error.message}`);
|
||||
console.error(`There was a problem sending message to UI: ${error.message}`);
|
||||
}
|
||||
},
|
||||
async sendResponse(response: IExecuteResponsePromiseData): Promise<void> {
|
||||
|
||||
@@ -2249,7 +2249,7 @@ describe('Workflow', () => {
|
||||
},
|
||||
{
|
||||
description:
|
||||
'One property which is dependeny on two identically named properties of which only one gets displayed with different options. No value set at all.',
|
||||
'One property which is dependency on two identically named properties of which only one gets displayed with different options. No value set at all.',
|
||||
input: {
|
||||
nodePropertiesArray: [
|
||||
{
|
||||
@@ -2360,7 +2360,7 @@ describe('Workflow', () => {
|
||||
},
|
||||
{
|
||||
description:
|
||||
'One property which is dependeny on two identically named properties of which only one gets displayed with different options. No value set at all. Order reversed',
|
||||
'One property which is dependency on two identically named properties of which only one gets displayed with different options. No value set at all. Order reversed',
|
||||
input: {
|
||||
nodePropertiesArray: [
|
||||
{
|
||||
@@ -2471,7 +2471,7 @@ describe('Workflow', () => {
|
||||
},
|
||||
{
|
||||
description:
|
||||
'One property which is dependeny on two identically named properties of which only one gets displayed with different options. No value set at all.',
|
||||
'One property which is dependency on two identically named properties of which only one gets displayed with different options. No value set at all.',
|
||||
input: {
|
||||
nodePropertiesArray: [
|
||||
{
|
||||
|
||||
@@ -167,7 +167,7 @@ describe('RoutingNode', () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
description: 'mutliple parameters, complex example with everything',
|
||||
description: 'multiple parameters, complex example with everything',
|
||||
input: {
|
||||
nodeParameters: {
|
||||
multipleFields: {
|
||||
@@ -967,7 +967,7 @@ describe('RoutingNode', () => {
|
||||
],
|
||||
},
|
||||
{
|
||||
description: 'mutliple parameters, complex example with everything',
|
||||
description: 'multiple parameters, complex example with everything',
|
||||
input: {
|
||||
node: {
|
||||
parameters: {
|
||||
@@ -1573,7 +1573,7 @@ describe('RoutingNode', () => {
|
||||
],
|
||||
},
|
||||
{
|
||||
description: 'single parameter, mutliple postReceive: rootProperty, setKeyValue, sort',
|
||||
description: 'single parameter, multiple postReceive: rootProperty, setKeyValue, sort',
|
||||
input: {
|
||||
nodeType: {
|
||||
requestDefaults: {
|
||||
|
||||
@@ -972,7 +972,7 @@ describe('Workflow', () => {
|
||||
},
|
||||
// TODO: Make that this test does not fail!
|
||||
// {
|
||||
// description: 'return resolved value when short "data" syntax got used in expression on paramter of not active node which got referenced by active one',
|
||||
// description: 'return resolved value when short "data" syntax got used in expression on parameter of not active node which got referenced by active one',
|
||||
// input: {
|
||||
// Node1: {
|
||||
// parameters: {
|
||||
|
||||
Reference in New Issue
Block a user