Skip to content

Commit 49218ad

Browse files
committed
More minor fixes
1 parent cfc8b59 commit 49218ad

File tree

5 files changed

+8
-706
lines changed

5 files changed

+8
-706
lines changed

credentials/SearchApi.credentials.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
IAuthenticateGeneric,
3+
Icon,
34
ICredentialTestRequest,
45
ICredentialType,
56
INodeProperties,
@@ -8,10 +9,11 @@ import {
89
export class SearchApi implements ICredentialType {
910
name = 'searchApi';
1011
displayName = 'SearchApi API';
11-
12+
1213
// Uses the link to this tutorial as an example
1314
// Replace with your own docs links when building your own nodes
1415
documentationUrl = 'https://www.searchapi.io/docs/google';
16+
icon: Icon = 'file:../nodes/SearchApi/searchApi.svg';
1517
properties: INodeProperties[] = [
1618
{
1719
displayName: 'API Key',
@@ -41,4 +43,4 @@ export class SearchApi implements ICredentialType {
4143
}
4244
}
4345
}
44-
}
46+
}

nodes/SearchApi/SearchApi.node.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"resources": {
77
"credentialDocumentation": [
88
{
9-
"url": "http://httpbin.org/#/Auth/get_bearer"
9+
"url": "https://www.searchapi.io/"
1010
}
1111
],
1212
"primaryDocumentation": [
1313
{
14-
"url": "http://httpbin.org/"
14+
"url": "https://www.searchapi.io/docs/google"
1515
}
1616
]
1717
}
18-
}
18+
}

nodes/SearchApi/SearchApi.node.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ export class SearchApi implements INodeType {
2525
method: 'GET',
2626
url: '/search',
2727
headers: { Accept: 'application/json' },
28-
qs: {
29-
api_key: '={{ $credentials.apiKey }}', // generic-auth pattern :contentReference[oaicite:3]{index=3}
30-
},
3128
},
3229
hints: [
3330
{

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@searchapi/n8n-nodes-searchapi",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "SearchApi.io nodes for n8n",
55
"keywords": [
66
"n8n-community-node-package"
@@ -47,11 +47,7 @@
4747
"eslint": "^8.56.0",
4848
"eslint-plugin-n8n-nodes-base": "^1.16.3",
4949
"gulp": "^4.0.2",
50-
"n8n-workflow": "^1.70.0",
5150
"prettier": "^3.3.2",
5251
"typescript": "^5.5.3"
53-
},
54-
"peerDependencies": {
55-
"n8n-workflow": "*"
5652
}
5753
}

0 commit comments

Comments
 (0)