( pluginsRegistry: MapArrayType<any>, )
| 146 | * `ERR_INVALID_ARG_TYPE: The "path" argument must be of type string`. |
| 147 | */ |
| 148 | const sanitizePluginsForWire = ( |
| 149 | pluginsRegistry: MapArrayType<any>, |
| 150 | ): MapArrayType<any> => { |
| 151 | const out: MapArrayType<any> = {}; |
| 152 | for (const [name, plugin] of Object.entries(pluginsRegistry)) { |
| 153 | const p: any = plugin.package; |
| 154 | out[name] = { |
| 155 | ...plugin, |
| 156 | package: {name: p.name, version: p.version}, |
| 157 | }; |
| 158 | } |
| 159 | return out; |
| 160 | }; |
| 161 | exports.sanitizePluginsForWire = sanitizePluginsForWire; |
| 162 | |
| 163 | stats.gauge('totalUsers', () => getTotalActiveUsers()); |
no outgoing calls
no test coverage detected