aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/plugins/plugin-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/plugins/plugin-manager.ts')
-rw-r--r--server/lib/plugins/plugin-manager.ts16
1 files changed, 13 insertions, 3 deletions
diff --git a/server/lib/plugins/plugin-manager.ts b/server/lib/plugins/plugin-manager.ts
index 38336bcc6..f7b84b1ff 100644
--- a/server/lib/plugins/plugin-manager.ts
+++ b/server/lib/plugins/plugin-manager.ts
@@ -106,14 +106,24 @@ export class PluginManager implements ServerHook {
106 106
107 getIdAndPassAuths () { 107 getIdAndPassAuths () {
108 return this.getRegisteredPlugins() 108 return this.getRegisteredPlugins()
109 .map(p => ({ npmName: p.npmName, idAndPassAuths: p.registerHelpersStore.getIdAndPassAuths() })) 109 .map(p => ({
110 npmName: p.npmName,
111 name: p.name,
112 version: p.version,
113 idAndPassAuths: p.registerHelpersStore.getIdAndPassAuths()
114 }))
110 .filter(v => v.idAndPassAuths.length !== 0) 115 .filter(v => v.idAndPassAuths.length !== 0)
111 } 116 }
112 117
113 getExternalAuths () { 118 getExternalAuths () {
114 return this.getRegisteredPlugins() 119 return this.getRegisteredPlugins()
115 .map(p => ({ npmName: p.npmName, externalAuths: p.registerHelpersStore.getExternalAuths() })) 120 .map(p => ({
116 .filter(v => v.externalAuths.length !== 0) 121 npmName: p.npmName,
122 name: p.name,
123 version: p.version,
124 externalAuths: p.registerHelpersStore.getExternalAuths()
125 }))
126 .filter(v => v.externalAuths.length !== 0)
117 } 127 }
118 128
119 getRegisteredSettings (npmName: string) { 129 getRegisteredSettings (npmName: string) {