Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@tryghost/admin-api

Package Overview
Dependencies
Maintainers
21
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/admin-api - npm Package Compare versions

Comparing version
1.9.0
to
1.9.1
+1
-4
lib/index.js

@@ -36,3 +36,3 @@ const axios = require('axios');

* @param {String} [options.ghostPath]
* @param {String|Boolean} [options.version] - a version string like v3.2, v4.1, v5.8 or boolean 'false' value identifying no Accept-Version header
* @param {String|Boolean} options.version - a version string like v3.2, v4.1, v5.8 or boolean value identifying presence of Accept-Version header
* @param {Function} [options.makeRequest]

@@ -50,3 +50,2 @@ * @param {Function} [options.generateToken]

generateToken: token,
sendAcceptVersionHeader: true,
makeRequest({url, method, data, params = {}, headers = {}}) {

@@ -93,4 +92,2 @@ return axios({

if (typeof config.version === 'boolean') {
config.sendAcceptVersionHeader = config.version;
if (config.version === true) {

@@ -97,0 +94,0 @@ config.acceptVersionHeader = defaultAcceptVersionHeader;

+2
-2
{
"name": "@tryghost/admin-api",
"version": "1.9.0",
"version": "1.9.1",
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/admin-api",

@@ -34,3 +34,3 @@ "author": "Ghost Foundation",

},
"gitHead": "b4c9597d781809903118a07e5fba16a106ec6053"
"gitHead": "3633e6e946c394c73e53b496477543e98e301aa4"
}