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
11
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.0.0
to
1.0.1
+4
-1
lib/index.js

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

}
if (config.key && !/[0-9a-f]{24}:[0-9a-f]{64}/.test(config.key)) {
if (!config.key) {
throw new Error('GhostAdminAPI Config Invalid: @tryghost/admin-api requires a "key" to be supplied');
}
if (!/[0-9a-f]{24}:[0-9a-f]{64}/.test(config.key)) {
throw new Error('GhostAdminAPI Config Invalid: @tryghost/admin-api requires a "key" in following format {A}:{B}, where A is 24 hex characters and B is 64 hex characters');

@@ -66,0 +69,0 @@ }

+2
-2
{
"name": "@tryghost/admin-api",
"version": "1.0.0",
"version": "1.0.1",
"repository": "https://github.com/TryGhost/Ghost-SDKs/tree/master/packages/admin-api",

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

},
"gitHead": "02755909b019f6ebe2f519aa01bf8a6e87ca762c"
"gitHead": "6ab36a2887b325f857a528871d4eea670634aa46"
}