@tryghost/admin-api
Advanced tools
+23
-10
@@ -77,5 +77,5 @@ const axios = require('axios'); | ||
| 'tags', | ||
| 'webhooks', | ||
| // @NOTE: experimental | ||
| 'users', | ||
| 'webhooks', | ||
| 'subscribers', | ||
@@ -161,11 +161,24 @@ 'members' | ||
| return Object.assign(apiObject, { | ||
| [resourceType]: { | ||
| read, | ||
| browse, | ||
| add, | ||
| edit, | ||
| delete: del | ||
| } | ||
| }); | ||
| let resourceAPI = {}; | ||
| if (resourceType === 'webhooks') { | ||
| resourceAPI = { | ||
| [resourceType]: { | ||
| add, | ||
| edit, | ||
| delete: del | ||
| } | ||
| }; | ||
| } else { | ||
| resourceAPI = { | ||
| [resourceType]: { | ||
| read, | ||
| browse, | ||
| add, | ||
| edit, | ||
| delete: del | ||
| } | ||
| }; | ||
| } | ||
| return Object.assign(apiObject, resourceAPI); | ||
| }, {}); | ||
@@ -172,0 +185,0 @@ |
+3
-3
| { | ||
| "name": "@tryghost/admin-api", | ||
| "version": "1.2.0", | ||
| "version": "1.3.0", | ||
| "repository": "https://github.com/TryGhost/Ghost-SDK/tree/master/packages/admin-api", | ||
@@ -24,3 +24,3 @@ "author": "Ghost Foundation", | ||
| "devDependencies": { | ||
| "mocha": "7.1.1", | ||
| "mocha": "7.2.0", | ||
| "should": "13.2.3", | ||
@@ -34,3 +34,3 @@ "sinon": "9.0.2" | ||
| }, | ||
| "gitHead": "fb7ef9d2bc2575103cebbe44e036538ebf3adad8" | ||
| "gitHead": "1e6e561fa3892c8e0804aae71c14f5bcbd526c67" | ||
| } |
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
14170
2.53%317
3.93%