mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-28 22:12:26 -05:00
🚨 Autofix node linting
This commit is contained in:
parent
b15212d300
commit
b2b5a97188
3 changed files with 143 additions and 153 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue