@tryghost/admin-api 1.11.4 → 1.12.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/lib/admin-api.js +3 -2
- package/package.json +3 -3
package/lib/admin-api.js
CHANGED
|
@@ -8,7 +8,7 @@ const packageInfo = require('../package.json');
|
|
|
8
8
|
const packageVersion = packageInfo.version;
|
|
9
9
|
|
|
10
10
|
// NOTE: bump this default when Ghost v5 is released
|
|
11
|
-
const defaultAcceptVersionHeader = '
|
|
11
|
+
const defaultAcceptVersionHeader = 'v5.0';
|
|
12
12
|
const supportedVersions = ['v2', 'v3', 'v4', 'v5', 'canary'];
|
|
13
13
|
const packageName = '@tryghost/admin-api';
|
|
14
14
|
|
|
@@ -143,7 +143,8 @@ module.exports = function GhostAdminAPI(options) {
|
|
|
143
143
|
'tags',
|
|
144
144
|
'webhooks',
|
|
145
145
|
'members',
|
|
146
|
-
'users'
|
|
146
|
+
'users',
|
|
147
|
+
'newsletters'
|
|
147
148
|
];
|
|
148
149
|
|
|
149
150
|
if (typeof config.version === 'string' && config.version.startsWith('v2')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/admin-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"c8": "7.11.
|
|
25
|
+
"c8": "7.11.3",
|
|
26
26
|
"mocha": "10.0.0",
|
|
27
27
|
"should": "13.2.3",
|
|
28
28
|
"sinon": "14.0.0"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"form-data": "^4.0.0",
|
|
33
33
|
"jsonwebtoken": "^8.4.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ce790579ad1f191b24c05733d8a0a56f0b9f96d2"
|
|
36
36
|
}
|