@tryghost/admin-api
Advanced tools
+1
-4
@@ -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" | ||
| } |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
17990
-0.54%404
-0.49%