n8n-nodes-test-node 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install n8n-nodes-test-node
|
|
|
15
15
|
## What was generated
|
|
16
16
|
|
|
17
17
|
- 12 resource(s), 60 operation(s).
|
|
18
|
-
- Credential type **remoteChromiumCDPAutomationAPIApi**, with an editable **Base URL** field
|
|
18
|
+
- Credential type **remoteChromiumCDPAutomationAPIApi**, with an editable **Base URL** field plus API Key / Bearer token field(s) per the spec's security scheme.
|
|
19
19
|
- Default Base URL: `https://api.example.com/v1` (override it in the credential's "Base URL" field to point at a different environment)
|
|
20
20
|
|
|
21
21
|
## Limitations
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare class RemoteChromiumCDPAutomationAPIApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
documentationUrl: string;
|
|
6
6
|
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
7
8
|
test: ICredentialTestRequest;
|
|
8
9
|
}
|
|
@@ -15,7 +15,24 @@ class RemoteChromiumCDPAutomationAPIApi {
|
|
|
15
15
|
required: true,
|
|
16
16
|
description: 'Base URL every request is sent to. Change this to point the node at a different environment (staging, self-hosted, etc.).',
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'X-API-Key (API Key)',
|
|
20
|
+
name: 'xAPIKey',
|
|
21
|
+
type: 'string',
|
|
22
|
+
typeOptions: { password: true },
|
|
23
|
+
default: '',
|
|
24
|
+
required: true,
|
|
25
|
+
description: 'Sent as the "X-API-Key" header on every request.',
|
|
26
|
+
},
|
|
18
27
|
];
|
|
28
|
+
this.authenticate = {
|
|
29
|
+
type: 'generic',
|
|
30
|
+
properties: {
|
|
31
|
+
headers: {
|
|
32
|
+
'X-API-Key': '={{$credentials.xAPIKey}}',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
19
36
|
this.test = {
|
|
20
37
|
request: {
|
|
21
38
|
baseURL: '={{$credentials.baseUrl}}',
|