MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / getOrGenerateURL

Function getOrGenerateURL

lib/edge-runtime/apiResponseSimplification.ts:104–111  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

102 }
103
104 function getOrGenerateURL(value: string): string {
105 let id = store[value];
106 if (!id) {
107 id = `URL${++urlIdx}`;
108 store[value] = id;
109 }
110 return id;
111 }
112
113 findAndReplaceURL(removedObj);
114 return { cleanedObject: removedObj, urlStore: store };

Callers 1

findAndReplaceURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected