@tryghost/admin-api 1.9.0 → 1.9.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.
Files changed (2) hide show
  1. package/lib/index.js +1 -4
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -33,7 +33,7 @@ const resolveAPIPrefix = (version) => {
33
33
  * @param {Object} options
34
34
  * @param {String} options.url
35
35
  * @param {String} [options.ghostPath]
36
- * @param {String|Boolean} [options.version] - a version string like v3.2, v4.1, v5.8 or boolean 'false' value identifying no Accept-Version header
36
+ * @param {String|Boolean} options.version - a version string like v3.2, v4.1, v5.8 or boolean value identifying presence of Accept-Version header
37
37
  * @param {Function} [options.makeRequest]
38
38
  * @param {Function} [options.generateToken]
39
39
  * @param {String} [options.host] Deprecated
@@ -46,7 +46,6 @@ module.exports = function GhostAdminAPI(options) {
46
46
  const defaultConfig = {
47
47
  ghostPath: 'ghost',
48
48
  generateToken: token,
49
- sendAcceptVersionHeader: true,
50
49
  makeRequest({url, method, data, params = {}, headers = {}}) {
51
50
  return axios({
52
51
  url,
@@ -88,8 +87,6 @@ module.exports = function GhostAdminAPI(options) {
88
87
  }
89
88
 
90
89
  if (typeof config.version === 'boolean') {
91
- config.sendAcceptVersionHeader = config.version;
92
-
93
90
  if (config.version === true) {
94
91
  config.acceptVersionHeader = defaultAcceptVersionHeader;
95
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/admin-api",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -31,5 +31,5 @@
31
31
  "form-data": "^4.0.0",
32
32
  "jsonwebtoken": "^8.4.0"
33
33
  },
34
- "gitHead": "b4c9597d781809903118a07e5fba16a106ec6053"
34
+ "gitHead": "3633e6e946c394c73e53b496477543e98e301aa4"
35
35
  }