Skip to content

Commit a126781

Browse files
committed
Increment version to 1.0.12 in package.json and add credential test request to GeoScraperApi class for improved API key validation.
1 parent 39e389a commit a126781

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

credentials/GeoScraperApi.credentials.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
1+
import type { ICredentialType, INodeProperties, Icon, ICredentialTestRequest } from 'n8n-workflow';
22

33
export class GeoScraperApi implements ICredentialType {
44
name = 'geoScraperApi';
@@ -19,4 +19,15 @@ export class GeoScraperApi implements ICredentialType {
1919
},
2020
},
2121
];
22+
23+
test: ICredentialTestRequest = {
24+
request: {
25+
method: 'GET',
26+
url: 'http://api.geoscraper.net/test-api-key',
27+
headers: {
28+
'X-Berserker-Token': '={{$credentials.apiToken}}',
29+
'Authorization': 'Bearer {{$credentials.apiToken}}',
30+
},
31+
},
32+
};
2233
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@two02/n8n-nodes-google-maps-scraper",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "n8n custom nodes for GeoScraper API integration.",
55
"keywords": [
66
"n8n-community-node-package",

0 commit comments

Comments
 (0)