confluence.js 1.7.0 → 1.7.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/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### 1.7.0
|
|
4
4
|
|
|
5
|
-
- `apiPrefix` added to code for allowing to use custom API prefix for all clients. Thanks to [Petr Plenkov](https://github.com/ThePlenkov) for pull request.
|
|
5
|
+
- `apiPrefix` was added to the code for allowing to use of custom API prefix for all clients. Thanks to [Petr Plenkov](https://github.com/ThePlenkov) for the pull request.
|
|
6
6
|
|
|
7
7
|
### 1.6.3
|
|
8
8
|
|
|
@@ -25,6 +25,9 @@ class ContentChildrenAndDescendants {
|
|
|
25
25
|
const config = {
|
|
26
26
|
url: `/api/content/${pageId}/move/${parameters.position}/${parameters.targetId}`,
|
|
27
27
|
method: 'PUT',
|
|
28
|
+
headers: {
|
|
29
|
+
'Content-Type': 'application/json',
|
|
30
|
+
},
|
|
28
31
|
};
|
|
29
32
|
return this.client.sendRequest(config, callback);
|
|
30
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentChildrenAndDescendants.js","sourceRoot":"","sources":["../../src/api/contentChildrenAndDescendants.ts"],"names":[],"mappings":";;;;AAMA,MAAa,6BAA6B;IACxC,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA8ChC,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,QAAQ;gBAC1C,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,aAAa,EAAE,UAAU,CAAC,aAAa;iBACxC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC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.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
|
|
5
5
|
"author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"prepublishOnly": "npm run build && npm run test && npm run lint",
|
|
14
|
-
"test": "npm run test:unit && npm run test:
|
|
14
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
15
15
|
"prettier": "prettier --write src",
|
|
16
16
|
"doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg",
|
|
17
17
|
"lint": "eslint src tests --ext .ts",
|
|
18
18
|
"lint:fix": "npm run lint -- --fix",
|
|
19
19
|
"test:unit": "ava tests/unit",
|
|
20
|
-
"test:
|
|
20
|
+
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts"
|
|
21
21
|
},
|
|
22
22
|
"ava": {
|
|
23
23
|
"extensions": [
|
|
@@ -42,32 +42,32 @@
|
|
|
42
42
|
"atlassian"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@swc-node/register": "^1.6.
|
|
46
|
-
"@swc/helpers": "^0.5.
|
|
47
|
-
"@types/express": "^4.17.
|
|
48
|
-
"@types/oauth": "^0.9.
|
|
49
|
-
"@types/sinon": "^10.0.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
51
|
-
"@typescript-eslint/parser": "^
|
|
52
|
-
"ava": "^5.3.
|
|
53
|
-
"dotenv": "^16.1
|
|
54
|
-
"eslint": "^8.
|
|
45
|
+
"@swc-node/register": "^1.6.8",
|
|
46
|
+
"@swc/helpers": "^0.5.3",
|
|
47
|
+
"@types/express": "^4.17.20",
|
|
48
|
+
"@types/oauth": "^0.9.3",
|
|
49
|
+
"@types/sinon": "^10.0.20",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
51
|
+
"@typescript-eslint/parser": "^6.9.0",
|
|
52
|
+
"ava": "^5.3.1",
|
|
53
|
+
"dotenv": "^16.3.1",
|
|
54
|
+
"eslint": "^8.52.0",
|
|
55
55
|
"eslint-config-airbnb": "^19.0.4",
|
|
56
|
-
"eslint-config-airbnb-typescript": "^17.
|
|
57
|
-
"eslint-import-resolver-typescript": "^3.
|
|
58
|
-
"eslint-plugin-import": "^2.
|
|
59
|
-
"prettier": "^
|
|
60
|
-
"prettier-plugin-jsdoc": "^
|
|
61
|
-
"sinon": "^
|
|
62
|
-
"typedoc": "^0.
|
|
63
|
-
"typedoc-plugin-extras": "^
|
|
64
|
-
"typescript": "^5.
|
|
56
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
57
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
58
|
+
"eslint-plugin-import": "^2.29.0",
|
|
59
|
+
"prettier": "^3.0.3",
|
|
60
|
+
"prettier-plugin-jsdoc": "^1.1.1",
|
|
61
|
+
"sinon": "^17.0.0",
|
|
62
|
+
"typedoc": "^0.25.2",
|
|
63
|
+
"typedoc-plugin-extras": "^3.0.0",
|
|
64
|
+
"typescript": "^5.2.2"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"atlassian-jwt": "^2.0.2",
|
|
68
|
-
"axios": "^1.
|
|
68
|
+
"axios": "^1.6.0",
|
|
69
69
|
"form-data": "^4.0.0",
|
|
70
70
|
"oauth": "^0.10.0",
|
|
71
|
-
"tslib": "^2.
|
|
71
|
+
"tslib": "^2.6.2"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -97,6 +97,9 @@ export class ContentChildrenAndDescendants {
|
|
|
97
97
|
const config: RequestConfig = {
|
|
98
98
|
url: `/api/content/${pageId}/move/${parameters.position}/${parameters.targetId}`,
|
|
99
99
|
method: 'PUT',
|
|
100
|
+
headers: {
|
|
101
|
+
'Content-Type': 'application/json',
|
|
102
|
+
},
|
|
100
103
|
};
|
|
101
104
|
|
|
102
105
|
return this.client.sendRequest(config, callback);
|