@unwarkz/n8n-nodes-outline-wiki 1.0.2 → 1.0.4
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
|
@@ -6,6 +6,7 @@ Provides two nodes: a full-featured **regular workflow node** for all Outline AP
|
|
|
6
6
|
[](https://www.npmjs.com/package/@unwarkz/n8n-nodes-outline-wiki)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
8
|
|
|
9
|
+
_**Please star the repo if you use my nodes - I will know that it is needed to someone except me.**_
|
|
9
10
|
---
|
|
10
11
|
|
|
11
12
|
## Features
|
|
@@ -18,10 +18,9 @@ async function outlineApiRequest(ctx, endpoint, body) {
|
|
|
18
18
|
'Accept': 'application/json',
|
|
19
19
|
},
|
|
20
20
|
body: JSON.stringify(body || {}),
|
|
21
|
-
json: true,
|
|
22
21
|
};
|
|
23
22
|
try {
|
|
24
|
-
return await ctx.helpers.
|
|
23
|
+
return await ctx.helpers.httpRequest(options);
|
|
25
24
|
} catch (error) {
|
|
26
25
|
throw new n8n_workflow_1.NodeApiError(ctx.getNode(), error);
|
|
27
26
|
}
|
|
@@ -39,10 +38,9 @@ async function outlineApiRequestMultipart(ctx, endpoint, formData) {
|
|
|
39
38
|
'Accept': 'application/json',
|
|
40
39
|
},
|
|
41
40
|
formData,
|
|
42
|
-
json: true,
|
|
43
41
|
};
|
|
44
42
|
try {
|
|
45
|
-
return await ctx.helpers.
|
|
43
|
+
return await ctx.helpers.httpRequest(options);
|
|
46
44
|
} catch (error) {
|
|
47
45
|
throw new n8n_workflow_1.NodeApiError(ctx.getNode(), error);
|
|
48
46
|
}
|
|
@@ -1546,11 +1544,10 @@ class Outline {
|
|
|
1546
1544
|
value: buffer,
|
|
1547
1545
|
options: { filename: resolvedFilename, contentType },
|
|
1548
1546
|
};
|
|
1549
|
-
await this.helpers.
|
|
1547
|
+
await this.helpers.httpRequest({
|
|
1550
1548
|
method: 'POST',
|
|
1551
1549
|
url: uploadUrl,
|
|
1552
1550
|
formData: uploadFormData,
|
|
1553
|
-
json: false,
|
|
1554
1551
|
});
|
|
1555
1552
|
|
|
1556
1553
|
responseData = {
|
|
@@ -93,9 +93,8 @@ async function outlinePost(ctx, endpoint, body) {
|
|
|
93
93
|
url: `${baseUrl}/api${endpoint}`,
|
|
94
94
|
headers,
|
|
95
95
|
body: JSON.stringify(body || {}),
|
|
96
|
-
json: true,
|
|
97
96
|
};
|
|
98
|
-
return ctx.helpers.
|
|
97
|
+
return ctx.helpers.httpRequest(options);
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
async function outlinePostMultipart(ctx, endpoint, formData) {
|
|
@@ -108,9 +107,8 @@ async function outlinePostMultipart(ctx, endpoint, formData) {
|
|
|
108
107
|
'Accept': 'application/json',
|
|
109
108
|
},
|
|
110
109
|
formData,
|
|
111
|
-
json: true,
|
|
112
110
|
};
|
|
113
|
-
return ctx.helpers.
|
|
111
|
+
return ctx.helpers.httpRequest(options);
|
|
114
112
|
}
|
|
115
113
|
|
|
116
114
|
// Process-global registry shared across all AI tool modules.
|
|
@@ -1256,11 +1254,10 @@ class OutlineAiTools {
|
|
|
1256
1254
|
options: { filename: resolvedFilename, contentType },
|
|
1257
1255
|
};
|
|
1258
1256
|
|
|
1259
|
-
await self.helpers.
|
|
1257
|
+
await self.helpers.httpRequest({
|
|
1260
1258
|
method: 'POST',
|
|
1261
1259
|
url: uploadUrl,
|
|
1262
1260
|
formData: uploadFormData,
|
|
1263
|
-
json: false,
|
|
1264
1261
|
});
|
|
1265
1262
|
|
|
1266
1263
|
const result = {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unwarkz/n8n-nodes-outline-wiki",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "N8N community node for Outline Wiki - full Outline API coverage with AI Agent tools (documents, collections, comments, attachments, users, shares)",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://github.com/unwarkz/n8n-nodes-
|
|
6
|
+
"homepage": "https://github.com/unwarkz/n8n-nodes-assistant-set#readme",
|
|
7
7
|
"author": {
|
|
8
|
-
"name": "unwarkz"
|
|
8
|
+
"name": "unwarkz <unwarkz@gmail.com>"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/unwarkz/n8n-nodes-
|
|
12
|
+
"url": "git+https://github.com/unwarkz/n8n-nodes-assistant-set.git"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/unwarkz/n8n-nodes-
|
|
15
|
+
"url": "https://github.com/unwarkz/n8n-nodes-assistant-set/issues"
|
|
16
16
|
},
|
|
17
17
|
"main": "index.js",
|
|
18
18
|
"scripts": {
|