Skip to content

Commit 9f145c8

Browse files
committed
Change credentials test request to use header instead of url path
1 parent 3f20dc4 commit 9f145c8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

credentials/PirateWeatherApi.credentials.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export class PirateWeatherApi implements ICredentialType {
3636
test: ICredentialTestRequest = {
3737
request: {
3838
baseURL: 'https://api.pirateweather.net',
39-
url: '/forecast/{{$credentials.apiKey}}/37.8267,-122.4233',
39+
headers: {
40+
'ApiKey': '={{$credentials.apiKey}}',
41+
},
42+
url: '/forecast/dummy/37.8267,-122.4233',
4043
},
4144
};
4245
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-nodes-pirate-weather",
3-
"version": "0.9.1",
3+
"version": "1.0.0",
44
"description": "n8n node for Pirate Weather API - A free weather API alternative",
55
"keywords": [
66
"n8n-community-node-package",
@@ -26,7 +26,6 @@
2626
"main": "index.js",
2727
"scripts": {
2828
"build": "tsc && gulp build:icons",
29-
"dev": "tsc --watch",
3029
"format": "prettier nodes credentials --write",
3130
"lint": "eslint nodes credentials package.json",
3231
"lintfix": "eslint nodes credentials package.json --fix",

0 commit comments

Comments
 (0)