mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 14:12:24 -05:00
🎨 Apply Prettier
This commit is contained in:
parent
57751f3fe5
commit
f2731eaa55
4 changed files with 7 additions and 23 deletions
|
|
@ -1,8 +1,4 @@
|
||||||
import {
|
import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
||||||
ICredentialType,
|
|
||||||
NodePropertyTypes,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
|
|
||||||
export class ExampleCredentials implements ICredentialType {
|
export class ExampleCredentials implements ICredentialType {
|
||||||
name = 'exampleCredentials';
|
name = 'exampleCredentials';
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,5 @@
|
||||||
import { IExecuteFunctions } from 'n8n-core';
|
import { IExecuteFunctions } from 'n8n-core';
|
||||||
import {
|
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||||
INodeExecutionData,
|
|
||||||
INodeType,
|
|
||||||
INodeTypeDescription,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
|
|
||||||
|
|
||||||
export class ExampleNode implements INodeType {
|
export class ExampleNode implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
|
|
@ -33,9 +28,7 @@ export class ExampleNode implements INodeType {
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
|
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
|
|
||||||
let item: INodeExecutionData;
|
let item: INodeExecutionData;
|
||||||
|
|
@ -52,6 +45,5 @@ export class ExampleNode implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.prepareOutputData(items);
|
return this.prepareOutputData(items);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,7 @@
|
||||||
"node": "n8n-nodes-base.httpbin",
|
"node": "n8n-nodes-base.httpbin",
|
||||||
"nodeVersion": "1.0",
|
"nodeVersion": "1.0",
|
||||||
"codexVersion": "1.0",
|
"codexVersion": "1.0",
|
||||||
"categories": [
|
"categories": ["Development", "Developer Tools"],
|
||||||
"Development",
|
|
||||||
"Developer Tools"
|
|
||||||
],
|
|
||||||
"resources": {
|
"resources": {
|
||||||
"credentialDocumentation": [
|
"credentialDocumentation": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ const getOperation: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'arguments',
|
name: 'arguments',
|
||||||
default: {},
|
default: {},
|
||||||
description: 'The request\'s query parameters',
|
description: "The request's query parameters",
|
||||||
displayName: 'Query Parameters',
|
displayName: 'Query Parameters',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
|
@ -115,8 +115,7 @@ const deleteOperation: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'typeofData',
|
name: 'typeofData',
|
||||||
default: 'queryParameter',
|
default: 'queryParameter',
|
||||||
description:
|
description: 'Select type of data to send [Query Parameter Arguments, JSON-Body]',
|
||||||
'Select type of data to send [Query Parameter Arguments, JSON-Body]',
|
|
||||||
displayName: 'Type of Data',
|
displayName: 'Type of Data',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
|
@ -140,7 +139,7 @@ const deleteOperation: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'arguments',
|
name: 'arguments',
|
||||||
default: {},
|
default: {},
|
||||||
description: 'The request\'s query parameters',
|
description: "The request's query parameters",
|
||||||
displayName: 'Query Parameters',
|
displayName: 'Query Parameters',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
|
@ -187,7 +186,7 @@ const deleteOperation: INodeProperties[] = [
|
||||||
{
|
{
|
||||||
name: 'arguments',
|
name: 'arguments',
|
||||||
default: {},
|
default: {},
|
||||||
description: 'The request\'s JSON properties',
|
description: "The request's JSON properties",
|
||||||
displayName: 'JSON Object',
|
displayName: 'JSON Object',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue