MCPcopy Create free account
hub / github.com/CommE2E/comm / conversionFunction

Function conversionFunction

lib/utils/conversion-utils.js:24–30  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

22 data: T,
23): T {
24 const conversionFunction = (id: string) => {
25 if (id.indexOf('|') !== -1) {
26 console.warn(`Server id '${id}' already has a prefix`);
27 return id;
28 }
29 return convertIDToNewSchema(id, serverPrefixID);
30 };
31
32 return convertObject(outputValidator, data, [tID], conversionFunction);
33}

Callers 1

convertObjectFunction · 0.85

Calls 4

convertIDToNewSchemaFunction · 0.90
parsePendingThreadIDFunction · 0.90
getPendingThreadIDFunction · 0.90
addMethod · 0.65

Tested by

no test coverage detected