MCPcopy Create free account
hub / github.com/Ray-D-Song/lexe / calculateEndpointCacheKey

Function calculateEndpointCacheKey

build.mjs:268–278  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

266})[0];
267
268function calculateEndpointCacheKey(obj) {
269 let str = "";
270 for (const key in obj) {
271 if (obj[key] === true) {
272 str += ENDPOINT_CACHE_KEY_LOOKUP[key];
273 } else if (typeof obj[key] === "string") {
274 str += obj[key];
275 }
276 }
277 return str;
278}
279
280function codeToRegex(fn, includeSignature = false) {
281 return new RegExp(

Callers 1

defaultEndpointResolverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected