@tryghost/admin-api 1.13.5 → 1.13.7
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 +2 -2
- package/package.json +5 -5
package/lib/admin-api.js
CHANGED
|
@@ -226,7 +226,7 @@ module.exports = function GhostAdminAPI(options) {
|
|
|
226
226
|
|
|
227
227
|
queryParams = Object.assign({}, queryParams, data);
|
|
228
228
|
|
|
229
|
-
return makeResourceRequest(resourceType, queryParams,
|
|
229
|
+
return makeResourceRequest(resourceType, queryParams, '', 'GET', urlParams);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
let resourceAPI = {};
|
|
@@ -381,7 +381,7 @@ module.exports = function GhostAdminAPI(options) {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
function makeResourceRequest(resourceType, queryParams = {}, body =
|
|
384
|
+
function makeResourceRequest(resourceType, queryParams = {}, body = '', method = 'GET', urlParams = {}) {
|
|
385
385
|
return makeApiRequest({
|
|
386
386
|
endpoint: endpointFor(resourceType, urlParams),
|
|
387
387
|
method,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/admin-api",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.7",
|
|
4
4
|
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"c8": "7.13.0",
|
|
26
26
|
"mocha": "10.2.0",
|
|
27
27
|
"should": "13.2.3",
|
|
28
|
-
"sinon": "15.0.
|
|
28
|
+
"sinon": "15.0.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"axios": "^0.
|
|
31
|
+
"axios": "^1.0.0",
|
|
32
32
|
"form-data": "^4.0.0",
|
|
33
|
-
"jsonwebtoken": "^
|
|
33
|
+
"jsonwebtoken": "^9.0.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "60ab3c7b73d1d7d92987b7eb3d8e73f920dd6800"
|
|
36
36
|
}
|