@repo-toolkit/confluence 0.14.0 → 0.14.1
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/cli.js +3 -3
- package/index.js +3 -3
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -51,7 +51,8 @@ var STATUS_CODES = {
|
|
|
51
51
|
};
|
|
52
52
|
var ConfluenceApiError = class extends Error {
|
|
53
53
|
constructor(message, status, endpoint, responseBody) {
|
|
54
|
-
|
|
54
|
+
const responseBodySuffix = responseBody === "" ? "" : `, responseBody=${responseBody}`;
|
|
55
|
+
super(`${message} (status=${status}, endpoint=${endpoint}${responseBodySuffix})`);
|
|
55
56
|
this.name = "ConfluenceApiError";
|
|
56
57
|
this.status = status;
|
|
57
58
|
this.endpoint = endpoint;
|
|
@@ -93,8 +94,7 @@ var ConfluenceClient = class {
|
|
|
93
94
|
const visited = /* @__PURE__ */ new Set();
|
|
94
95
|
let pageCount = 0;
|
|
95
96
|
const startUrl = this.v2Url(
|
|
96
|
-
`/pages?${new URLSearchParams({
|
|
97
|
-
"space-id": spaceId,
|
|
97
|
+
`/spaces/${encodeURIComponent(spaceId)}/pages?${new URLSearchParams({
|
|
98
98
|
title,
|
|
99
99
|
limit: String(MAX_LIMIT),
|
|
100
100
|
"body-format": "storage"
|
package/index.js
CHANGED
|
@@ -37,7 +37,8 @@ var STATUS_CODES = {
|
|
|
37
37
|
};
|
|
38
38
|
var ConfluenceApiError = class extends Error {
|
|
39
39
|
constructor(message, status, endpoint, responseBody) {
|
|
40
|
-
|
|
40
|
+
const responseBodySuffix = responseBody === "" ? "" : `, responseBody=${responseBody}`;
|
|
41
|
+
super(`${message} (status=${status}, endpoint=${endpoint}${responseBodySuffix})`);
|
|
41
42
|
this.name = "ConfluenceApiError";
|
|
42
43
|
this.status = status;
|
|
43
44
|
this.endpoint = endpoint;
|
|
@@ -79,8 +80,7 @@ var ConfluenceClient = class {
|
|
|
79
80
|
const visited = /* @__PURE__ */ new Set();
|
|
80
81
|
let pageCount = 0;
|
|
81
82
|
const startUrl = this.v2Url(
|
|
82
|
-
`/pages?${new URLSearchParams({
|
|
83
|
-
"space-id": spaceId,
|
|
83
|
+
`/spaces/${encodeURIComponent(spaceId)}/pages?${new URLSearchParams({
|
|
84
84
|
title,
|
|
85
85
|
limit: String(MAX_LIMIT),
|
|
86
86
|
"body-format": "storage"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repo-toolkit/confluence",
|
|
3
3
|
"description": "Sync a folder of markdown docs to Confluence pages and attachments (GitHub Action compatible)",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"keywords": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"node": ">=20"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@repo-toolkit/publish-package": "0.14.
|
|
30
|
+
"@repo-toolkit/publish-package": "0.14.1"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"**/*",
|