豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 5afa91c

Browse files
add credentials test & fix package name
1 parent ea0ef05 commit 5afa91c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

credentials/HasDataApi.credentials.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
IAuthenticateGeneric,
3+
ICredentialTestRequest,
34
ICredentialType,
45
INodeProperties,
56
} from 'n8n-workflow';
@@ -25,4 +26,10 @@ export class HasDataApi implements ICredentialType {
2526
},
2627
},
2728
};
29+
test?: ICredentialTestRequest = {
30+
request: {
31+
method: 'GET',
32+
url: 'https://api.hasdata.com/user/me',
33+
},
34+
}
2835
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "n8n-nodes-hasdata",
2+
"name": "@hasdata/n8n-nodes-hasdata",
33
"version": "0.1.0",
44
"description": "n8n node for HasData APIs",
55
"license": "MIT",
66
"homepage": "https://hasdata.com",
77
"keywords": [
8-
"n8n-community-node-package"
8+
"n8n-community-node-package",
9+
"hasdata"
910
],
1011
"author": {
1112
"name": "HasData",

0 commit comments

Comments
 (0)