@tryghost/admin-api 1.11.2 → 1.12.0
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/index.js +1 -0
- package/lib/{index.js → admin-api.js} +3 -1
- package/package.json +9 -8
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./lib/admin-api');
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable no-restricted-syntax */
|
|
1
2
|
const axios = require('axios');
|
|
2
3
|
const FormData = require('form-data');
|
|
3
4
|
const fs = require('fs');
|
|
@@ -142,7 +143,8 @@ module.exports = function GhostAdminAPI(options) {
|
|
|
142
143
|
'tags',
|
|
143
144
|
'webhooks',
|
|
144
145
|
'members',
|
|
145
|
-
'users'
|
|
146
|
+
'users',
|
|
147
|
+
'newsletters'
|
|
146
148
|
];
|
|
147
149
|
|
|
148
150
|
if (typeof config.version === 'string' && config.version.startsWith('v2')) {
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/admin-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "
|
|
7
|
+
"main": "index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"LICENSE",
|
|
10
10
|
"README.md",
|
|
11
11
|
"cjs/",
|
|
12
|
-
"lib/"
|
|
12
|
+
"lib/",
|
|
13
|
+
"index.js"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"dev": "echo \"Implement me!\"",
|
|
@@ -21,15 +22,15 @@
|
|
|
21
22
|
"access": "public"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"c8": "7.11.
|
|
25
|
-
"mocha": "
|
|
25
|
+
"c8": "7.11.2",
|
|
26
|
+
"mocha": "10.0.0",
|
|
26
27
|
"should": "13.2.3",
|
|
27
|
-
"sinon": "
|
|
28
|
+
"sinon": "14.0.0"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"axios": "^0.
|
|
31
|
+
"axios": "^0.27.0",
|
|
31
32
|
"form-data": "^4.0.0",
|
|
32
33
|
"jsonwebtoken": "^8.4.0"
|
|
33
34
|
},
|
|
34
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "6f65d13b5d3a238dd07b8928f46987dcb8cfd82a"
|
|
35
36
|
}
|