MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stableId

Function stableId

scripts/migration/service-split-postgres-cli.ts:223–230  ·  view source on GitHub ↗
(...parts: readonly string[])

Source from the content-addressed store, hash-verified

221};
222
223const stableId = (...parts: readonly string[]): string => {
224 const text = parts.join("\u0000");
225 let hash = 0;
226 for (let index = 0; index < text.length; index += 1) {
227 hash = (hash * 31 + text.charCodeAt(index)) >>> 0;
228 }
229 return `service_split_${hash.toString(36)}`;
230};
231
232const operationKeyPrefix = (integration: string): string =>
233 `${operationStorageKey(integration, "").split(".").slice(0, 2).join(".")}.%`;

Callers 1

applyOrgFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected