@tryghost/admin-api
Advanced tools
+4
-1
@@ -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" | ||
| } |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
13531
0.93%285
1.06%