@tryghost/admin-api 1.13.6 → 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.
Files changed (2) hide show
  1. package/lib/admin-api.js +2 -2
  2. package/package.json +4 -4
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, {}, 'GET', urlParams);
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 = {}, method = 'GET', urlParams = {}) {
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.6",
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",
@@ -28,9 +28,9 @@
28
28
  "sinon": "15.0.4"
29
29
  },
30
30
  "dependencies": {
31
- "axios": "^0.27.0",
31
+ "axios": "^1.0.0",
32
32
  "form-data": "^4.0.0",
33
- "jsonwebtoken": "^8.4.0"
33
+ "jsonwebtoken": "^9.0.0"
34
34
  },
35
- "gitHead": "fdddca8236ffcf6db746e87140913112facdb382"
35
+ "gitHead": "60ab3c7b73d1d7d92987b7eb3d8e73f920dd6800"
36
36
  }