(...parts: readonly string[])
| 221 | }; |
| 222 | |
| 223 | const 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 | |
| 232 | const operationKeyPrefix = (integration: string): string => |
| 233 | `${operationStorageKey(integration, "").split(".").slice(0, 2).join(".")}.%`; |