n8n-nodes-periskop 0.1.0 → 0.1.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.
|
@@ -164,6 +164,8 @@ class Periskop {
|
|
|
164
164
|
async execute() {
|
|
165
165
|
const items = this.getInputData();
|
|
166
166
|
const returnData = [];
|
|
167
|
+
const credentials = await this.getCredentials('periskopApi');
|
|
168
|
+
const baseUrl = String(credentials.baseUrl || 'https://mcp.periskop.ai').replace(/\/+$/, '');
|
|
167
169
|
for (let i = 0; i < items.length; i++) {
|
|
168
170
|
try {
|
|
169
171
|
const operation = this.getNodeParameter('operation', i);
|
|
@@ -214,7 +216,7 @@ class Periskop {
|
|
|
214
216
|
}
|
|
215
217
|
const options = {
|
|
216
218
|
method: 'POST',
|
|
217
|
-
url:
|
|
219
|
+
url: `${baseUrl}/v1/mcp/shopping/discover`,
|
|
218
220
|
body,
|
|
219
221
|
json: true,
|
|
220
222
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-periskop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "n8n community node for Periskop — product discovery for AI agents and workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"homepage": "https://github.com/Periskop-ai/n8n-nodes-periskop#readme",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "Periskop",
|
|
18
|
-
"url": "https://periskop.ai"
|
|
18
|
+
"url": "https://periskop.ai",
|
|
19
|
+
"email": "info@periskop.ai"
|
|
19
20
|
},
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|