MCPcopy Index your code
hub / github.com/ether/etherpad / sanitizePluginsForWire

Function sanitizePluginsForWire

src/node/handler/PadMessageHandler.ts:148–160  ·  view source on GitHub ↗
(
  pluginsRegistry: MapArrayType<any>,
)

Source from the content-addressed store, hash-verified

146 * `ERR_INVALID_ARG_TYPE: The "path" argument must be of type string`.
147 */
148const 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};
161exports.sanitizePluginsForWire = sanitizePluginsForWire;
162
163stats.gauge('totalUsers', () => getTotalActiveUsers());

Callers 2

handleClientReadyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected