n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,6 +1,4 @@
import {
IExecuteFunctions,
} from 'n8n-core';
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
@@ -12,9 +10,7 @@ import {
NodeOperationError,
} from 'n8n-workflow';
import {
twakeApiRequest,
} from './GenericFunctions';
import { twakeApiRequest } from './GenericFunctions';
export class Twake implements INodeType {
description: INodeTypeDescription = {
@@ -93,9 +89,7 @@ export class Twake implements INodeType {
noDataExpression: true,
displayOptions: {
show: {
resource: [
'message',
],
resource: ['message'],
},
},
options: [
@@ -117,13 +111,12 @@ export class Twake implements INodeType {
},
displayOptions: {
show: {
operation: [
'send',
],
operation: ['send'],
},
},
default: '',
description: 'Channel\'s ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Channel\'s ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Content',
@@ -132,9 +125,7 @@ export class Twake implements INodeType {
required: true,
displayOptions: {
show: {
operation: [
'send',
],
operation: ['send'],
},
},
default: '',
@@ -147,9 +138,7 @@ export class Twake implements INodeType {
placeholder: 'Add Field',
displayOptions: {
show: {
operation: [
'send',
],
operation: ['send'],
},
},
default: {},
@@ -203,7 +192,6 @@ export class Twake implements INodeType {
for (let i = 0; i < length; i++) {
if (resource === 'message') {
if (operation === 'send') {
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
const message: IDataObject = {