Page MenuHomeSealhub

No OneTemporary

diff --git a/credentials/HttpBinApi.credentials.ts b/credentials/HttpBinApi.credentials.ts
index b47ad79..a2294d8 100644
--- a/credentials/HttpBinApi.credentials.ts
+++ b/credentials/HttpBinApi.credentials.ts
@@ -1,47 +1,47 @@
import {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class HttpBinApi implements ICredentialType {
name = 'httpbinApi';
displayName = 'HttpBin API';
- documentationUrl = 'http://httpbin.org/#/Auth/get_bearer';
+ documentationUrl = 'https://httpbin.org/#/Auth/get_bearer';
properties: INodeProperties[] = [
{
displayName: 'Token',
name: 'token',
type: 'string',
default: '',
},
{
displayName: 'Domain',
name: 'domain',
type: 'string',
default: 'https://httpbin.org',
},
];
// This allows the credential to be used by other parts of n8n
// stating how this credential is injected as part of the request
// An example is the Http Request node that can make generic calls
// reusing this credential
authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{"Bearer " + $credentials.token}}',
},
},
} as IAuthenticateGeneric;
// The block below tells how this credential can be tested
test: ICredentialTestRequest = {
request: {
baseURL: '={{$credentials?.domain}}',
url: '/bearer',
},
};
}
diff --git a/package.json b/package.json
index ccf505b..a2ec57f 100644
--- a/package.json
+++ b/package.json
@@ -1,52 +1,53 @@
{
"name": "n8n-nodes-starter",
"version": "0.1.0",
"description": "Example starter module for custom n8n nodes.",
"keywords": [
"n8n-community-node-package"
],
"license": "MIT",
"homepage": "https://n8n.io",
"author": {
"name": "Jan Oberhauser",
"email": "jan@n8n.io"
},
"repository": {
"type": "git",
"url": "git+https://github.com/n8n-io/n8n-nodes-starter.git"
},
"main": "index.js",
"scripts": {
"build": "tsc && gulp build:icons",
"dev": "tsc --watch",
"format": "prettier nodes credentials --write",
"lint": "tslint -p tsconfig.json -c tslint.json; eslint nodes credentials package.json",
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json; eslint nodes credentials package.json --fix",
"prepare": "npm run build && npm run lint"
},
"files": [
"dist"
],
"n8n": {
+ "n8nNodesApiVersion": 1,
"credentials": [
"dist/credentials/ExampleCredentials.credentials.js",
"dist/credentials/HttpBinApi.credentials.js"
],
"nodes": [
"dist/nodes/ExampleNode/ExampleNode.node.js",
"dist/nodes/HttpBin/HttpBin.node.js"
]
},
"devDependencies": {
"@types/express": "^4.17.6",
"@types/request-promise-native": "~1.0.15",
"@typescript-eslint/parser": "^5.29.0",
"eslint-plugin-n8n-nodes-base": "^1.2.0",
"gulp": "^4.0.2",
"n8n-core": "^0.125.0",
"n8n-workflow": "^0.107.0",
"prettier": "^2.7.1",
"tslint": "^6.1.2",
"typescript": "~4.6.0"
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 8, 14:22 (7 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1034664
Default Alt Text
(3 KB)

Event Timeline