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:
Aaron Delasy
2022-09-02 17:13:17 +03:00
committed by GitHub
parent a3791c22b3
commit 49c85a1df8
69 changed files with 167 additions and 167 deletions

View File

@@ -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

View File

@@ -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>;
}

View File

@@ -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 = {};
}

View File

@@ -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) {

View File

@@ -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)}

View File

@@ -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(
'Cant get data for expression',
{
messageTemplate: `Cant get data for expression under %%PARAMETER%%`,
description: `Could not resolve, proably no pairedItem exists`,
description: `Could not resolve, probably no pairedItem exists`,
},
nodeBeforeLast,
);