🚨 Autofix node linting

This commit is contained in:
brianinoa 2022-06-20 15:22:10 +02:00
commit b2b5a97188
3 changed files with 143 additions and 153 deletions

View file

@ -1,33 +1,33 @@
import { INodeType, INodeTypeDescription } from "n8n-workflow";
import { httpVerbOperations, httpVerbFields } from "./HttpVerbDescriptions";
import { INodeType, INodeTypeDescription } from 'n8n-workflow';
import { httpVerbFields, httpVerbOperations } from './HttpVerbDescriptions';
export class HttpBin implements INodeType {
description: INodeTypeDescription = {
displayName: "HttpBin",
name: "httpbin",
icon: "file:httpbin.svg",
group: ["transform"],
displayName: 'HttpBin',
name: 'httpbin',
icon: 'file:httpbin.svg',
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: "Interact with HttpBin API",
description: 'Interact with HttpBin API',
defaults: {
name: "HttpBin",
color: "#3b4151",
name: 'HttpBin',
color: '#3b4151',
},
inputs: ["main"],
outputs: ["main"],
inputs: ['main'],
outputs: ['main'],
credentials: [
{
name: "httpbinApi",
name: 'httpbinApi',
required: false,
},
],
requestDefaults: {
baseURL: "https://httpbin.org",
url: "",
baseURL: 'https://httpbin.org',
url: '',
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Accept: 'application/json',
'Content-Type': 'application/json',
},
},
/**
@ -44,17 +44,17 @@ export class HttpBin implements INodeType {
*/
properties: [
{
displayName: "Resource",
name: "resource",
type: "options",
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: "HTTP Verbs",
value: "httpverbs",
}
name: 'HTTP Verbs',
value: 'httpverbs',
},
],
default: "httpverbs",
default: 'httpverbs',
},
...httpVerbOperations,